diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2020-07-23 23:50:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-23 23:50:12 +0000 |
| commit | 3d69cea1c9724210c31467bde5204c2649a23992 (patch) | |
| tree | a73e7b774b0f5a7e074dedbc62ba4bf555bd3222 /MediaBrowser.Model/Notifications/NotificationOption.cs | |
| parent | 5f67ba4d7087d7a0cad37fc9e2db212340076d12 (diff) | |
| parent | 845ee21ddce8ed91d8c3c1463d0d7a06bb769635 (diff) | |
Merge branch 'master' into displaypreferences-efcore
Diffstat (limited to 'MediaBrowser.Model/Notifications/NotificationOption.cs')
| -rw-r--r-- | MediaBrowser.Model/Notifications/NotificationOption.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Notifications/NotificationOption.cs b/MediaBrowser.Model/Notifications/NotificationOption.cs index ea363d9b1..58aecb3d3 100644 --- a/MediaBrowser.Model/Notifications/NotificationOption.cs +++ b/MediaBrowser.Model/Notifications/NotificationOption.cs @@ -1,3 +1,4 @@ +#pragma warning disable CA1819 // Properties should not return arrays #pragma warning disable CS1591 using System; @@ -9,21 +10,27 @@ namespace MediaBrowser.Model.Notifications public NotificationOption(string type) { Type = type; + DisabledServices = Array.Empty<string>(); + DisabledMonitorUsers = Array.Empty<string>(); + SendToUsers = Array.Empty<string>(); + } + public NotificationOption() + { DisabledServices = Array.Empty<string>(); DisabledMonitorUsers = Array.Empty<string>(); SendToUsers = Array.Empty<string>(); } - public string Type { get; set; } + public string? Type { get; set; } /// <summary> - /// User Ids to not monitor (it's opt out). + /// Gets or sets user Ids to not monitor (it's opt out). /// </summary> public string[] DisabledMonitorUsers { get; set; } /// <summary> - /// User Ids to send to (if SendToUserMode == Custom) + /// Gets or sets user Ids to send to (if SendToUserMode == Custom). /// </summary> public string[] SendToUsers { get; set; } |
