소스 검색

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>