This commit is contained in:
@@ -16,14 +16,15 @@ namespace AyaNova.Models
|
||||
|
||||
[Required]
|
||||
public DateTime Created { get; set; }
|
||||
public AyaType? AyaType { get; set; }
|
||||
public long? ObjectId { get; set; }
|
||||
public AyaType AyaType { get; set; }
|
||||
public long ObjectId { get; set; }
|
||||
[Required]
|
||||
public NotifyEventType EventType { get; set; }
|
||||
[Required]
|
||||
public long SubscriptionId { get; set; }//source subscription that triggered this event to be created
|
||||
public long? IdValue { get; set; }
|
||||
public decimal? DecValue { get; set; }
|
||||
[Required]
|
||||
public long IdValue { get; set; }
|
||||
public decimal DecValue { get; set; }
|
||||
public DateTime? EventDate { get; set; }//date of the event actually occuring, e.g. WarrantyExpiry date. Duped with delivery date as source of truth in case edit to advance setting in subscription changes delivery date
|
||||
public DateTime? DeliverDate { get; set; }//date user wants the event notification delivered, usually same as event date but could be set earlier if Advance setting in effect. This is the date consulted for delivery only.
|
||||
public string Message { get; set; }
|
||||
@@ -32,6 +33,10 @@ namespace AyaNova.Models
|
||||
public NotifyEvent()
|
||||
{
|
||||
Created = DateTime.UtcNow;
|
||||
IdValue = 0;
|
||||
DecValue = 0;
|
||||
AyaType=AyaType.NoType;
|
||||
ObjectId=0;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
||||
Reference in New Issue
Block a user