update cinema mode on/off setting

This commit is contained in:
Luke Pulverenti 2015-11-19 00:19:54 -05:00
parent 252dde1722
commit b28be7e986
4 changed files with 14 additions and 0 deletions

View file

@ -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))

View file

@ -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; }

View file

@ -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>

View file

@ -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);