NotificationRequest.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 List<string> 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 List<string> ExcludeUserIds { get; set; }
  20. public NotificationRequest()
  21. {
  22. UserIds = new List<string>();
  23. Date = DateTime.UtcNow;
  24. Variables = new Dictionary<string, string>();
  25. ExcludeUserIds = new List<string>();
  26. }
  27. }
  28. }