2
0
Эх сурвалжийг харах

update cinema mode on/off setting

Luke Pulverenti 9 жил өмнө
parent
commit
b28be7e986

+ 5 - 0
MediaBrowser.Model/ApiClient/ServerCredentials.cs

@@ -42,6 +42,11 @@ namespace MediaBrowser.Model.ApiClient
                     existing.DateLastAccessed = server.DateLastAccessed;
                 }
 
+                if (server.DateLastLocalConnection > existing.DateLastLocalConnection)
+                {
+                    existing.DateLastLocalConnection = server.DateLastLocalConnection;
+                }
+                
                 existing.UserLinkType = server.UserLinkType;
 
                 if (!string.IsNullOrEmpty(server.AccessToken))

+ 1 - 0
MediaBrowser.Model/ApiClient/ServerInfo.cs

@@ -19,6 +19,7 @@ namespace MediaBrowser.Model.ApiClient
         public 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; }

+ 6 - 0
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>

+ 2 - 0
MediaBrowser.Server.Implementations/Dto/DtoService.cs

@@ -356,6 +356,8 @@ namespace MediaBrowser.Server.Implementations.Dto
             var collectionFolder = item as ICollectionFolder;
             if (collectionFolder != null)
             {
+                dto.OriginalCollectionType = collectionFolder.CollectionType;
+
                 dto.CollectionType = user == null ?
                     collectionFolder.CollectionType :
                     collectionFolder.GetViewType(user);