diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-07-24 09:40:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 09:40:44 +0200 |
| commit | 3ff110984a0a003ab8323482e94557d26f3fec85 (patch) | |
| tree | 8aa4f30696598c4c158bd9286a403d6017b7e612 /MediaBrowser.Model/Notifications/NotificationOption.cs | |
| parent | a23292f363c0bae2e9d4dbbf1359234feedd3799 (diff) | |
| parent | f5a3cc654fc8646e633489919b4a8b9e7d3c48fe (diff) | |
Merge branch 'master' into readonlyspan
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; } |
