using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GreenTree.Nachtragsmanagement.Core.Domain.Misc { public class MailNotification : BaseEntity { #region Fields /// /// Invoices related to the appendix /// private ICollection _users; #endregion /// /// Id of the corresponding NotificationEventType /// public int? NotificationEventTypeId { get; set; } /// /// Corresponding NotificationEventType /// public NotificationEventType NotificationEventType { get; set; } /// /// The cron expression if the notification will be sent by time /// public string CronExpression { get; set; } /// /// Id of the corresponding NotificationEvent /// public int? NotificationEventId { get; set; } /// /// Corresponding NotificationEvent /// public NotificationEvent NotificationEvent { get; set; } /// /// The logic by which the notification is generated /// public string NotificationLogicType { get; set; } /// /// Determines if data is daily summarized before notificated /// public bool IsDailySummary { get; set; } /// /// Determines if data is weekly summarized before notificated /// public bool IsWeeklySummary { get; set; } /// /// Determines if data is monthly summarized before notificated /// public bool IsMonthlySummary { get; set; } /// /// Users assigned to the notification /// public virtual ICollection Users { get { return _users ?? ( _users = new List()); } protected set { _users = value; } } } }