mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 23:06:31 +01:00
sync updates
This commit is contained in:
@@ -7,13 +7,13 @@ namespace MediaBrowser.Model.Connect
|
||||
public string UserName { get; set; }
|
||||
public string ImageUrl { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string[] ExcludedLibraries { get; set; }
|
||||
public string[] EnabledLibraries { get; set; }
|
||||
public bool EnableLiveTv { get; set; }
|
||||
public string[] EnabledChannels { get; set; }
|
||||
|
||||
public ConnectAuthorization()
|
||||
{
|
||||
ExcludedLibraries = new string[] { };
|
||||
EnabledLibraries = new string[] { };
|
||||
EnabledChannels = new string[] { };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@ namespace MediaBrowser.Model.Connect
|
||||
{
|
||||
public string SendingUserId { get; set; }
|
||||
public string ConnectUserName { get; set; }
|
||||
public string[] ExcludedLibraries { get; set; }
|
||||
public string[] EnabledLibraries { get; set; }
|
||||
public bool EnableLiveTv { get; set; }
|
||||
public string[] EnabledChannels { get; set; }
|
||||
|
||||
public ConnectAuthorizationRequest()
|
||||
{
|
||||
ExcludedLibraries = new string[] { };
|
||||
EnabledLibraries = new string[] { };
|
||||
EnabledChannels = new string[] { };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Devices
|
||||
/// Gets or sets a value indicating whether [supports unique identifier].
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [supports unique identifier] contains no value, <c>true</c> if [supports unique identifier]; otherwise, <c>false</c>.</value>
|
||||
public bool? SupportsUniqueIdentifier { get; set; }
|
||||
public bool? SupportsPersistentIdentifier { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports synchronize].
|
||||
/// </summary>
|
||||
|
||||
@@ -14,16 +14,21 @@ namespace MediaBrowser.Model.Session
|
||||
public string MessageCallbackUrl { get; set; }
|
||||
|
||||
public bool SupportsContentUploading { get; set; }
|
||||
public bool SupportsUniqueIdentifier { get; set; }
|
||||
public bool SupportsPersistentIdentifier { get; set; }
|
||||
public bool SupportsSync { get; set; }
|
||||
|
||||
public DeviceProfile DeviceProfile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Usage should be migrated to SupportsPersistentIdentifier. Keeping this to preserve data.
|
||||
/// </summary>
|
||||
public bool? SupportsUniqueIdentifier { get; set; }
|
||||
|
||||
public ClientCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = new List<string>();
|
||||
SupportedCommands = new List<string>();
|
||||
SupportsUniqueIdentifier = true;
|
||||
SupportsPersistentIdentifier = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,9 @@ namespace MediaBrowser.Model.Users
|
||||
|
||||
public string[] EnabledChannels { get; set; }
|
||||
public bool EnableAllChannels { get; set; }
|
||||
|
||||
public string[] EnabledFolders { get; set; }
|
||||
public bool EnableAllFolders { get; set; }
|
||||
|
||||
public UserPolicy()
|
||||
{
|
||||
@@ -62,9 +65,6 @@ namespace MediaBrowser.Model.Users
|
||||
EnableLiveTvAccess = true;
|
||||
EnableSharedDeviceControl = true;
|
||||
|
||||
EnabledChannels = new string[] { };
|
||||
|
||||
BlockedMediaFolders = new string[] { };
|
||||
BlockedTags = new string[] { };
|
||||
BlockUnratedItems = new UnratedItem[] { };
|
||||
|
||||
@@ -72,6 +72,12 @@ namespace MediaBrowser.Model.Users
|
||||
|
||||
AccessSchedules = new AccessSchedule[] { };
|
||||
|
||||
EnableAllChannels = true;
|
||||
EnabledChannels = new string[] { };
|
||||
|
||||
EnableAllFolders = true;
|
||||
EnabledFolders = new string[] { };
|
||||
|
||||
EnabledDevices = new string[] { };
|
||||
EnableAllDevices = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user