MailNotification.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace GreenTree.Nachtragsmanagement.Core.Domain.Misc
  7. {
  8. public class MailNotification : BaseEntity
  9. {
  10. #region Fields
  11. /// <summary>
  12. /// Invoices related to the appendix
  13. /// </summary>
  14. private ICollection<User.User> _users;
  15. #endregion
  16. /// <summary>
  17. /// Id of the corresponding NotificationEventType
  18. /// </summary>
  19. public int? NotificationEventTypeId { get; set; }
  20. /// <summary>
  21. /// Corresponding NotificationEventType
  22. /// </summary>
  23. public NotificationEventType NotificationEventType { get; set; }
  24. /// <summary>
  25. /// The cron expression if the notification will be sent by time
  26. /// </summary>
  27. public string CronExpression { get; set; }
  28. /// <summary>
  29. /// Id of the corresponding NotificationEvent
  30. /// </summary>
  31. public int? NotificationEventId { get; set; }
  32. /// <summary>
  33. /// Corresponding NotificationEvent
  34. /// </summary>
  35. public NotificationEvent NotificationEvent { get; set; }
  36. /// <summary>
  37. /// The logic by which the notification is generated
  38. /// </summary>
  39. public string NotificationLogicType { get; set; }
  40. /// <summary>
  41. /// Determines if data is daily summarized before notificated
  42. /// </summary>
  43. public bool IsDailySummary { get; set; }
  44. /// <summary>
  45. /// Determines if data is weekly summarized before notificated
  46. /// </summary>
  47. public bool IsWeeklySummary { get; set; }
  48. /// <summary>
  49. /// Determines if data is monthly summarized before notificated
  50. /// </summary>
  51. public bool IsMonthlySummary { get; set; }
  52. /// <summary>
  53. /// Users assigned to the notification
  54. /// </summary>
  55. public virtual ICollection<User.User> Users
  56. {
  57. get { return _users ?? ( _users = new List<User.User>()); }
  58. protected set { _users = value; }
  59. }
  60. }
  61. }