aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels van Velzen <nielsvanvelzen@users.noreply.github.com>2024-03-27 22:36:30 +0100
committerGitHub <noreply@github.com>2024-03-27 15:36:30 -0600
commit8d02c45e6c679814d1f61577dc0d78688cc0ed45 (patch)
tree9e2fb0e8b4027941fdccf07811bd59e0d3cb99e7
parent81c24cb9a8dcfaf07261cb57c4de16acbe78bdad (diff)
Fix default values missing in ClientCapabilities(Dto) (#11232)
-rw-r--r--Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs4
-rw-r--r--MediaBrowser.Model/Session/ClientCapabilities.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs b/Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs
index 12ce19368..b72dcff88 100644
--- a/Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs
+++ b/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>
diff --git a/MediaBrowser.Model/Session/ClientCapabilities.cs b/MediaBrowser.Model/Session/ClientCapabilities.cs
index 5f51fb21c..fc1f24ae1 100644
--- a/MediaBrowser.Model/Session/ClientCapabilities.cs
+++ b/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;
}
}