MailNotification.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /// Users related to the notification
  13. /// </summary>
  14. private ICollection<User.User> _users;
  15. #endregion
  16. /// <summary>
  17. /// The cron expression if the notification will be sent by time
  18. /// </summary>
  19. public string CronExpression { get; set; }
  20. /// <summary>
  21. /// The system name of the corresponding plugin generating the notification
  22. /// </summary>
  23. public string NotificationPluginSystemName { get; set; }
  24. /// <summary>
  25. /// Determines if data is daily summarized before notificated
  26. /// </summary>
  27. public bool IsDailySummary { get; set; }
  28. /// <summary>
  29. /// Determines if data is weekly summarized before notificated
  30. /// </summary>
  31. public bool IsWeeklySummary { get; set; }
  32. /// <summary>
  33. /// Determines if data is monthly summarized before notificated
  34. /// </summary>
  35. public bool IsMonthlySummary { get; set; }
  36. /// <summary>
  37. /// Users assigned to the notification
  38. /// </summary>
  39. public virtual ICollection<User.User> Users
  40. {
  41. get { return _users ?? ( _users = new List<User.User>()); }
  42. protected set { _users = value; }
  43. }
  44. }
  45. }