NotificationOption.cs 1.7 KB

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