2
0

NotificationRequest.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Configuration;
  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 List<string> 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 Dictionary<string, string> Variables { get; set; }
  19. public SendToUserType? SendToUserMode { get; set; }
  20. public List<string> ExcludeUserIds { get; set; }
  21. public NotificationRequest()
  22. {
  23. UserIds = new List<string>();
  24. Date = DateTime.UtcNow;
  25. Variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  26. ExcludeUserIds = new List<string>();
  27. }
  28. }
  29. }