소스 검색

Fix default values missing in ClientCapabilities(Dto) (#11232)

Niels van Velzen 1 년 전
부모
커밋
8d02c45e6c
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs
  2. 2 2
      MediaBrowser.Model/Session/ClientCapabilities.cs

+ 2 - 2
Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs

@@ -55,12 +55,12 @@ public class ClientCapabilitiesDto
     // TODO: Remove after 10.9
     [Obsolete("Unused")]
     [DefaultValue(false)]
-    public bool? SupportsContentUploading { get; set; }
+    public bool? SupportsContentUploading { get; set; } = false;
 
     // TODO: Remove after 10.9
     [Obsolete("Unused")]
     [DefaultValue(false)]
-    public bool? SupportsSync { get; set; }
+    public bool? SupportsSync { get; set; } = false;
 #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
 
     /// <summary>

+ 2 - 2
MediaBrowser.Model/Session/ClientCapabilities.cs

@@ -35,11 +35,11 @@ namespace MediaBrowser.Model.Session
         // TODO: Remove after 10.9
         [Obsolete("Unused")]
         [DefaultValue(false)]
-        public bool? SupportsContentUploading { get; set; }
+        public bool? SupportsContentUploading { get; set; } = false;
 
         // TODO: Remove after 10.9
         [Obsolete("Unused")]
         [DefaultValue(false)]
-        public bool? SupportsSync { get; set; }
+        public bool? SupportsSync { get; set; } = false;
     }
 }