NotificationOption.cs 1.6 KB

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