NotificationOption.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. namespace MediaBrowser.Model.Notifications
  2. {
  3. public class NotificationOption
  4. {
  5. public string Type { get; set; }
  6. /// <summary>
  7. /// User Ids to not monitor (it's opt out)
  8. /// </summary>
  9. public string[] DisabledMonitorUsers { get; set; }
  10. /// <summary>
  11. /// User Ids to send to (if SendToUserMode == Custom)
  12. /// </summary>
  13. public string[] SendToUsers { get; set; }
  14. /// <summary>
  15. /// Gets or sets a value indicating whether this <see cref="NotificationOption"/> is enabled.
  16. /// </summary>
  17. /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
  18. public bool Enabled { get; set; }
  19. /// <summary>
  20. /// Gets or sets the title format string.
  21. /// </summary>
  22. /// <value>The title format string.</value>
  23. public string Title { get; set; }
  24. /// <summary>
  25. /// Gets or sets the description.
  26. /// </summary>
  27. /// <value>The description.</value>
  28. public string Description { get; set; }
  29. /// <summary>
  30. /// Gets or sets the disabled services.
  31. /// </summary>
  32. /// <value>The disabled services.</value>
  33. public string[] DisabledServices { get; set; }
  34. /// <summary>
  35. /// Gets or sets the send to user mode.
  36. /// </summary>
  37. /// <value>The send to user mode.</value>
  38. public SendToUserType SendToUserMode { get; set; }
  39. public NotificationOption()
  40. {
  41. DisabledServices = new string[] { };
  42. DisabledMonitorUsers = new string[] { };
  43. SendToUsers = new string[] { };
  44. }
  45. }
  46. }