diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
| commit | 30ce346f343ca61f921ec7d6faf2f06311c04e71 (patch) | |
| tree | 009b45907371f10fe4c3195708287f4b464df7dd /MediaBrowser.Model/Notifications/NotificationOption.cs | |
| parent | 29539174a3de47c151cc7c7fd192100e6fbe48d7 (diff) | |
Enable nullabe reference types for MediaBrowser.Model
Diffstat (limited to 'MediaBrowser.Model/Notifications/NotificationOption.cs')
| -rw-r--r-- | MediaBrowser.Model/Notifications/NotificationOption.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/MediaBrowser.Model/Notifications/NotificationOption.cs b/MediaBrowser.Model/Notifications/NotificationOption.cs index 4fb724515..144949a3b 100644 --- a/MediaBrowser.Model/Notifications/NotificationOption.cs +++ b/MediaBrowser.Model/Notifications/NotificationOption.cs @@ -6,6 +6,15 @@ namespace MediaBrowser.Model.Notifications { public class NotificationOption { + public NotificationOption(string type) + { + Type = type; + + DisabledServices = Array.Empty<string>(); + DisabledMonitorUsers = Array.Empty<string>(); + SendToUsers = Array.Empty<string>(); + } + public string Type { get; set; } /// <summary> @@ -35,12 +44,5 @@ namespace MediaBrowser.Model.Notifications /// </summary> /// <value>The send to user mode.</value> public SendToUserType SendToUserMode { get; set; } - - public NotificationOption() - { - DisabledServices = Array.Empty<string>(); - DisabledMonitorUsers = Array.Empty<string>(); - SendToUsers = Array.Empty<string>(); - } } } |
