The Free Software Media System - Server Backend & API
update cinema mode on/off setting
Luke Pulverentib28be7e98612
diff --git a/MediaBrowser.Model/ApiClient/ServerCredentials.cs b/MediaBrowser.Model/ApiClient/ServerCredentials.csindex b5a1a7b499..f9af0fa4ef 100644--- a/MediaBrowser.Model/ApiClient/ServerCredentials.cs+++ b/MediaBrowser.Model/ApiClient/ServerCredentials.cs@@ -42,6 +42,11 @@ namespace MediaBrowser.Model.ApiClientexisting.DateLastAccessed = server.DateLastAccessed;}+ if (server.DateLastLocalConnection > existing.DateLastLocalConnection)+ {+ existing.DateLastLocalConnection = server.DateLastLocalConnection;+ }+existing.UserLinkType = server.UserLinkType;if (!string.IsNullOrEmpty(server.AccessToken))diff --git a/MediaBrowser.Model/ApiClient/ServerInfo.cs b/MediaBrowser.Model/ApiClient/ServerInfo.csindex e1fa581d7b..53ae5be528 100644--- a/MediaBrowser.Model/ApiClient/ServerInfo.cs+++ b/MediaBrowser.Model/ApiClient/ServerInfo.cs@@ -19,6 +19,7 @@ namespace MediaBrowser.Model.ApiClientpublic String AccessToken { get; set; }public List<WakeOnLanInfo> WakeOnLanInfos { get; set; }public DateTime DateLastAccessed { get; set; }+ public DateTime DateLastLocalConnection { get; set; }public String ExchangeToken { get; set; }public UserLinkType? UserLinkType { get; set; }public ConnectionMode? LastConnectionMode { get; set; }diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.csindex 91beba7268..935d280cd2 100644--- a/MediaBrowser.Model/Dto/BaseItemDto.cs+++ b/MediaBrowser.Model/Dto/BaseItemDto.cs@@ -554,6 +554,12 @@ namespace MediaBrowser.Model.Dto/// <value>The type of the collection.</value>public string CollectionType { get; set; }+ /// <summary>+ /// Gets or sets the type of the original collection.+ /// </summary>+ /// <value>The type of the original collection.</value>+ public string OriginalCollectionType { get; set; }+/// <summary>/// Gets or sets the display order./// </summary>diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.csindex 86857b296d..ccca6414a7 100644--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs@@ -356,6 +356,8 @@ namespace MediaBrowser.Server.Implementations.Dtovar collectionFolder = item as ICollectionFolder;if (collectionFolder != null){+ dto.OriginalCollectionType = collectionFolder.CollectionType;+dto.CollectionType = user == null ?collectionFolder.CollectionType :collectionFolder.GetViewType(user);