This commit is contained in:
2020-07-20 19:05:28 +00:00
parent 0842ce025e
commit ab65e15d99
7 changed files with 69 additions and 26 deletions

View File

@@ -23,13 +23,14 @@ namespace AyaNova.Models
[Required]
public long UserId { get; set; }
[Required]
public long SubscriptionId { get; set; }//source subscription that triggered this event to be created
public long NotifySubscriptionId { get; set; }//source subscription that triggered this event to be created
[Required]
public long IdValue { get; set; }
[Required]
public decimal DecValue { get; set; }
[Required]
public TimeSpan AgeValue { get; set; }
// [Required]// public TimeSpan AgeValue { get; set; }
//date of the event actually occuring, e.g. WarrantyExpiry date. Compared with subscription to determine if deliverable or not
public DateTime? EventDate { get; set; }
//NO: Delivery code consults subscription instead of this
@@ -42,7 +43,7 @@ namespace AyaNova.Models
Created = DateTime.UtcNow;
IdValue = 0;
DecValue = 0;
AgeValue = new TimeSpan(0, 0, 0);
// AgeValue = new TimeSpan(0, 0, 0);
AyaType = AyaType.NoType;
ObjectId = 0;
}
@@ -52,6 +53,9 @@ namespace AyaNova.Models
return JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.None);
}
//linked entity
public NotifySubscription NotifySubscription { get; set; }
}//eoc
}//eons