MailNotification.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #endregion
  12. /// <summary>
  13. /// Id of the corresponding NotificationEventType
  14. /// </summary>
  15. public int NotificationEventTypeId { get; set; }
  16. /// <summary>
  17. /// Corresponding NotificationEventType
  18. /// </summary>
  19. public NotificationEventType EventType { get; set; }
  20. /// <summary>
  21. /// Id of the corresponding User
  22. /// </summary>
  23. public int UserId { get; set; }
  24. /// <summary>
  25. /// Corresponding User
  26. /// </summary>
  27. public User.User User { get; set; }
  28. /// <summary>
  29. /// The cron expression if the notification will be sent by time
  30. /// </summary>
  31. public string CronExpression { get; set; }
  32. /// <summary>
  33. /// Id of the corresponding NotificationEvent
  34. /// </summary>
  35. public int NotificationEventId { get; set; }
  36. /// <summary>
  37. /// Corresponding NotificationEvent
  38. /// </summary>
  39. public NotificationEvent NotificationEvent { 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. }
  53. }