NotificationRequest.cs 866 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  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 Dictionary<string, string> Variables { get; set; }
  18. public SendToUserType? SendToUserMode { get; set; }
  19. public NotificationRequest()
  20. {
  21. UserIds = Array.Empty<Guid>();
  22. Date = DateTime.UtcNow;
  23. }
  24. }
  25. }