NotificationOption.cs 1.4 KB

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