IMiscService.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GreenTree.Nachtragsmanagement.Core.Domain.Misc;
  7. namespace GreenTree.Nachtragsmanagement.Services.Misc
  8. {
  9. public interface IMiscService
  10. {
  11. #region MailNotification
  12. /// <summary>
  13. /// Gets all mailNotifications
  14. /// </summary>
  15. IList<MailNotification> GetAllMailNotifications();
  16. /// <summary>
  17. /// Gets a mailNotification by specified Id
  18. /// </summary>
  19. /// <param name="id">MailNotification identifier.</param>
  20. MailNotification GetMailNotificationById(int id);
  21. /// <summary>
  22. /// Gets all mailNotifications to the specified ids
  23. /// </summary>
  24. IList<MailNotification> GetMailNotificationsByIds(int[] ids);
  25. /// <summary>
  26. /// Insert a mailNotification
  27. /// </summary>
  28. /// <param name="mailNotification">MailNotification.</param>
  29. void InsertMailNotification(MailNotification mailNotification);
  30. /// <summary>
  31. /// Update a mailNotification
  32. /// </summary>
  33. /// <param name="mailNotification">MailNotification.</param>
  34. void UpdateMailNotification(MailNotification mailNotification);
  35. /// <summary>
  36. /// Delete a mailNotification
  37. /// </summary>
  38. /// <param name="mailNotification">MailNotification.</param>
  39. void DeleteMailNotification(MailNotification mailNotification);
  40. #endregion
  41. #region NotificationEvent
  42. /// <summary>
  43. /// Gets all notificationEvents
  44. /// </summary>
  45. IList<NotificationEvent> GetAllNotificationEvents();
  46. /// <summary>
  47. /// Gets a notificationEvent by specified Id
  48. /// </summary>
  49. /// <param name="id">NotificationEvent identifier.</param>
  50. NotificationEvent GetNotificationEventById(int id);
  51. /// <summary>
  52. /// Gets all notificationEvents to the specified ids
  53. /// </summary>
  54. IList<NotificationEvent> GetNotificationEventsByIds(int[] ids);
  55. /// <summary>
  56. /// Insert a notificationEvent
  57. /// </summary>
  58. /// <param name="notificationEvent">NotificationEvent.</param>
  59. void InsertNotificationEvent(NotificationEvent notificationEvent);
  60. /// <summary>
  61. /// Update a notificationEvent
  62. /// </summary>
  63. /// <param name="notificationEvent">NotificationEvent.</param>
  64. void UpdateNotificationEvent(NotificationEvent notificationEvent);
  65. /// <summary>
  66. /// Delete a notificationEvent
  67. /// </summary>
  68. /// <param name="notificationEvent">NotificationEvent.</param>
  69. void DeleteNotificationEvent(NotificationEvent notificationEvent);
  70. #endregion
  71. #region NotificationEventType
  72. /// <summary>
  73. /// Gets all notificationEventTypes
  74. /// </summary>
  75. IList<NotificationEventType> GetAllNotificationEventTypes();
  76. /// <summary>
  77. /// Gets a notificationEventType by specified Id
  78. /// </summary>
  79. /// <param name="id">NotificationEventType identifier.</param>
  80. NotificationEventType GetNotificationEventTypeById(int id);
  81. /// <summary>
  82. /// Gets all notificationEventTypes to the specified ids
  83. /// </summary>
  84. IList<NotificationEventType> GetNotificationEventTypesByIds(int[] ids);
  85. /// <summary>
  86. /// Insert a notificationEventType
  87. /// </summary>
  88. /// <param name="notificationEventType">NotificationEventType.</param>
  89. void InsertNotificationEventType(NotificationEventType notificationEventType);
  90. /// <summary>
  91. /// Update a notificationEventType
  92. /// </summary>
  93. /// <param name="notificationEventType">NotificationEventType.</param>
  94. void UpdateNotificationEventType(NotificationEventType notificationEventType);
  95. /// <summary>
  96. /// Delete a notificationEventType
  97. /// </summary>
  98. /// <param name="notificationEventType">NotificationEventType.</param>
  99. void DeleteNotificationEventType(NotificationEventType notificationEventType);
  100. #endregion
  101. }
  102. }