NotificationRequest.cs 794 B

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