NotificationOption.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  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 disabled services.
  22. /// </summary>
  23. /// <value>The disabled services.</value>
  24. public string[] DisabledServices { get; set; }
  25. /// <summary>
  26. /// Gets or sets the send to user mode.
  27. /// </summary>
  28. /// <value>The send to user mode.</value>
  29. public SendToUserType SendToUserMode { get; set; }
  30. public NotificationOption()
  31. {
  32. DisabledServices = Array.Empty<string>();
  33. DisabledMonitorUsers = Array.Empty<string>();
  34. SendToUsers = Array.Empty<string>();
  35. }
  36. }
  37. }