NotificationRequest.cs 929 B

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