浏览代码

Update NotificationOption.cs

Fixes serialisation bug
BaronGreenback 5 年之前
父节点
当前提交
12478c7196
共有 1 个文件被更改,包括 8 次插入0 次删除
  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>