v1.2.3.2
This commit is contained in:
@@ -25,16 +25,16 @@ namespace Saxonite.Net.Standard.Base.Consoles
|
||||
public class IndexContext
|
||||
{
|
||||
// ToDo Include Localiser.
|
||||
public IndexContext (SysId userAccountId)
|
||||
public IndexContext(SysId userAccountId)
|
||||
{
|
||||
UserAccountId = userAccountId;
|
||||
}
|
||||
public SysId UserAccountId { get; }
|
||||
public List<SysId> SportIds { get; } = new List<SysId>();
|
||||
public List<SysId> RegionIds { get; } = new List<SysId>();
|
||||
// Default period is ~12 months ago up to ~3 months in the future.
|
||||
public DateTime EffectiveFrom { get; } = DateUtil.IncrementDate(DateTime.Today, -365);
|
||||
public DateTime EffectiveTo { get; } = DateUtil.IncrementDate(DateTime.Today, 30);
|
||||
// Todo: Default period is ~12 months ago up to ~3 months in the future.
|
||||
public DateTime EffectiveFrom { get; set; } = DateUtil.IncrementDate(DateTime.Today, -365);
|
||||
public DateTime EffectiveTo { get; set; } = DateUtil.IncrementDate(DateTime.Today, 30);
|
||||
public bool IsValid()
|
||||
{
|
||||
// Context must contain at least a sport, a region and a valid effective period.
|
||||
|
||||
Reference in New Issue
Block a user