This commit is contained in:
2020-07-09 21:42:15 +00:00
parent 217cc57a0a
commit dc5945d308
4 changed files with 44 additions and 25 deletions

View File

@@ -8,35 +8,31 @@ namespace AyaNova.Models
{
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal,
//otherwise the server will call it an invalid record if the field isn't sent from client
public class NotifySubscription : ICoreBizObjectModel
public class NotifySubscription
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long SubscriberId { get; set; }
[Required]
public long SubscriberAyaType { get; set; }
[Required]
public string Name { get; set; }
public bool Active { get; set; }
public string Notes { get; set; }
public string Wiki {get;set;}
public string CustomFields { get; set; }
public List<string> Tags { get; set; }
[Required]
public long UserId { get; set; }
public AyaType? AyaType { get; set; }
[Required]
public NotifyEventType EventType { get; set; }
public TimeSpan? AdvanceNotice { get; set; } //Note: I've been doing nullable wrong sort of: https://stackoverflow.com/a/29149207/8939
public long? IdValue { get; set; }
public decimal? DecValue { get; set; }
[Required]
public NotifyDeliveryMethod DeliveryMethod { get; set; }
public string DeliveryAddress { get; set; }
public long? AttachReportId { get; set; }
public List<string> InTags { get; set; }
public List<string> OutTags { get; set; }
public NotifySubscription()
{
Tags = new List<string>();
InTags = new List<string>();
OutTags = new List<string>();
}
}//eoc