NotificationOption.cs 1.4 KB

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