NotificationOption.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 string Type { get; set; }
  15. /// <summary>
  16. /// User Ids to not monitor (it's opt out).
  17. /// </summary>
  18. public string[] DisabledMonitorUsers { get; set; }
  19. /// <summary>
  20. /// User Ids to send to (if SendToUserMode == Custom)
  21. /// </summary>
  22. public string[] SendToUsers { get; set; }
  23. /// <summary>
  24. /// Gets or sets a value indicating whether this <see cref="NotificationOption"/> is enabled.
  25. /// </summary>
  26. /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
  27. public bool Enabled { get; set; }
  28. /// <summary>
  29. /// Gets or sets the disabled services.
  30. /// </summary>
  31. /// <value>The disabled services.</value>
  32. public string[] DisabledServices { get; set; }
  33. /// <summary>
  34. /// Gets or sets the send to user mode.
  35. /// </summary>
  36. /// <value>The send to user mode.</value>
  37. public SendToUserType SendToUserMode { get; set; }
  38. }
  39. }