NotificationRequest.cs 812 B

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