2
0

NotificationRequest.cs 762 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace MediaBrowser.Model.Notifications
  3. {
  4. public class NotificationRequest
  5. {
  6. public string Name { get; set; }
  7. public string Description { get; set; }
  8. public string Url { get; set; }
  9. public NotificationLevel Level { get; set; }
  10. public Guid[] UserIds { get; set; }
  11. public DateTime Date { get; set; }
  12. /// <summary>
  13. /// The corresponding type name used in configuration. Not for display.
  14. /// </summary>
  15. public string NotificationType { get; set; }
  16. public SendToUserType? SendToUserMode { get; set; }
  17. public NotificationRequest()
  18. {
  19. UserIds = Array.Empty<Guid>();
  20. Date = DateTime.UtcNow;
  21. }
  22. }
  23. }