Browse Source

Update NotificationOption.cs

Fixes serialisation bug
BaronGreenback 5 years ago
parent
commit
12478c7196
1 changed files with 8 additions and 0 deletions
  1. 8 0
      MediaBrowser.Model/Notifications/NotificationOption.cs

+ 8 - 0
MediaBrowser.Model/Notifications/NotificationOption.cs

@@ -15,6 +15,14 @@ namespace MediaBrowser.Model.Notifications
             SendToUsers = Array.Empty<string>();
         }
 
+        public NotificationOption()
+        {
+            Type = string.Empty;
+            DisabledServices = Array.Empty<string>();
+            DisabledMonitorUsers = Array.Empty<string>();
+            SendToUsers = Array.Empty<string>();
+        }
+
         public string Type { get; set; }
 
         /// <summary>