ソースを参照

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>();
             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; }
         public string Type { get; set; }
 
 
         /// <summary>
         /// <summary>