mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Renamed Dto objects
Updated Fody Renamed Dto objects
This commit is contained in:
parent
fbf963b68f
commit
ec621df5f6
@ -3,7 +3,7 @@ using MediaBrowser.Controller;
|
|||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.Connectivity;
|
using MediaBrowser.Model.Connectivity;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -14,13 +14,13 @@ namespace MediaBrowser.Api.HttpHandlers
|
|||||||
/// Provides a handler to set played status for an item
|
/// Provides a handler to set played status for an item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Export(typeof(IHttpServerHandler))]
|
[Export(typeof(IHttpServerHandler))]
|
||||||
public class PlaybackCheckInHandler : BaseSerializationHandler<Kernel, DtoUserItemData>
|
public class PlaybackCheckInHandler : BaseSerializationHandler<Kernel, UserItemDataDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the object to serialize.
|
/// Gets the object to serialize.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Task{DtoUserItemData}.</returns>
|
/// <returns>Task{DtoUserItemData}.</returns>
|
||||||
protected override async Task<DtoUserItemData> GetObjectToSerialize()
|
protected override async Task<UserItemDataDto> GetObjectToSerialize()
|
||||||
{
|
{
|
||||||
// Get the user
|
// Get the user
|
||||||
var user = await this.GetCurrentUser().ConfigureAwait(false);
|
var user = await this.GetCurrentUser().ConfigureAwait(false);
|
||||||
|
@ -3,7 +3,7 @@ using MediaBrowser.Common.Net;
|
|||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
@ -38,7 +38,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetPerson
|
/// Class GetPerson
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Library/Persons/{Name}", "GET")]
|
[Route("/Library/Persons/{Name}", "GET")]
|
||||||
public class GetPerson : IReturn<DtoBaseItem>
|
public class GetPerson : IReturn<BaseItemDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
||||||
@ -51,7 +51,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetStudio
|
/// Class GetStudio
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Library/Studios/{Name}", "GET")]
|
[Route("/Library/Studios/{Name}", "GET")]
|
||||||
public class GetStudio : IReturn<DtoBaseItem>
|
public class GetStudio : IReturn<BaseItemDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
||||||
@ -64,7 +64,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetGenre
|
/// Class GetGenre
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Library/Genres/{Name}", "GET")]
|
[Route("/Library/Genres/{Name}", "GET")]
|
||||||
public class GetGenre : IReturn<DtoBaseItem>
|
public class GetGenre : IReturn<BaseItemDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
||||||
@ -77,7 +77,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetYear
|
/// Class GetYear
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Library/Years/{Year}", "GET")]
|
[Route("/Library/Years/{Year}", "GET")]
|
||||||
public class GetYear : IReturn<DtoBaseItem>
|
public class GetYear : IReturn<BaseItemDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the year.
|
/// Gets or sets the year.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using MediaBrowser.Common.Net.Handlers;
|
using MediaBrowser.Common.Net.Handlers;
|
||||||
using MediaBrowser.Controller.Entities.Audio;
|
using MediaBrowser.Controller.Entities.Audio;
|
||||||
using MediaBrowser.Controller.Resolvers;
|
using MediaBrowser.Controller.Resolvers;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
|
@ -7,7 +7,7 @@ using MediaBrowser.Controller.Entities;
|
|||||||
using MediaBrowser.Controller.Entities.Audio;
|
using MediaBrowser.Controller.Entities.Audio;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.Drawing;
|
using MediaBrowser.Model.Drawing;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using MediaBrowser.Common.Net.Handlers;
|
using MediaBrowser.Common.Net.Handlers;
|
||||||
using MediaBrowser.Controller.Entities.Audio;
|
using MediaBrowser.Controller.Entities.Audio;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
@ -100,7 +100,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <param name="fields">The fields.</param>
|
/// <param name="fields">The fields.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{DtoBaseItem}.</returns>
|
||||||
private async Task<DtoBaseItem> GetDto(Tuple<string, Func<int>> stub, User user, List<ItemFields> fields)
|
private async Task<BaseItemDto> GetDto(Tuple<string, Func<int>> stub, User user, List<ItemFields> fields)
|
||||||
{
|
{
|
||||||
BaseItem item;
|
BaseItem item;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ using MediaBrowser.Controller;
|
|||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Entities.Audio;
|
using MediaBrowser.Controller.Entities.Audio;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
|
@ -4,7 +4,7 @@ using MediaBrowser.Controller;
|
|||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Entities.Movies;
|
using MediaBrowser.Controller.Entities.Movies;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
@ -22,7 +22,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Users/{UserId}/Items/{Id}", "GET")]
|
[Route("/Users/{UserId}/Items/{Id}", "GET")]
|
||||||
[Route("/Users/{UserId}/Items/Root", "GET")]
|
[Route("/Users/{UserId}/Items/Root", "GET")]
|
||||||
public class GetItem : IReturn<DtoBaseItem>
|
public class GetItem : IReturn<BaseItemDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the user id.
|
/// Gets or sets the user id.
|
||||||
@ -217,7 +217,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Users/{UserId}/Items/{Id}/LocalTrailers", "GET")]
|
[Route("/Users/{UserId}/Items/{Id}/LocalTrailers", "GET")]
|
||||||
public class GetLocalTrailers : IReturn<List<DtoBaseItem>>
|
public class GetLocalTrailers : IReturn<List<BaseItemDto>>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the user id.
|
/// Gets or sets the user id.
|
||||||
@ -233,7 +233,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Users/{UserId}/Items/{Id}/SpecialFeatures", "GET")]
|
[Route("/Users/{UserId}/Items/{Id}/SpecialFeatures", "GET")]
|
||||||
public class GetSpecialFeatures : IReturn<List<DtoBaseItem>>
|
public class GetSpecialFeatures : IReturn<List<BaseItemDto>>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the user id.
|
/// Gets or sets the user id.
|
||||||
|
@ -3,7 +3,7 @@ using MediaBrowser.Common.Net;
|
|||||||
using MediaBrowser.Common.Serialization;
|
using MediaBrowser.Common.Serialization;
|
||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -19,7 +19,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetUsers
|
/// Class GetUsers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Users", "GET")]
|
[Route("/Users", "GET")]
|
||||||
public class GetUsers : IReturn<List<DtoUser>>
|
public class GetUsers : IReturn<List<UserDto>>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class GetUser
|
/// Class GetUser
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Users/{Id}", "GET")]
|
[Route("/Users/{Id}", "GET")]
|
||||||
public class GetUser : IReturn<DtoUser>
|
public class GetUser : IReturn<UserDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the id.
|
/// Gets or sets the id.
|
||||||
@ -122,7 +122,7 @@ namespace MediaBrowser.Api
|
|||||||
/// Class CreateUser
|
/// Class CreateUser
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("/Users", "POST")]
|
[Route("/Users", "POST")]
|
||||||
public class CreateUser : IRequiresRequestStream, IReturn<DtoUser>
|
public class CreateUser : IRequiresRequestStream, IReturn<UserDto>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The raw Http Request Input Stream
|
/// The raw Http Request Input Stream
|
||||||
@ -265,7 +265,7 @@ namespace MediaBrowser.Api
|
|||||||
|
|
||||||
var kernel = (Kernel)Kernel;
|
var kernel = (Kernel)Kernel;
|
||||||
|
|
||||||
var dtoUser = JsonSerializer.DeserializeFromStream<DtoUser>(request.RequestStream);
|
var dtoUser = JsonSerializer.DeserializeFromStream<UserDto>(request.RequestStream);
|
||||||
|
|
||||||
var user = kernel.GetUserById(id);
|
var user = kernel.GetUserById(id);
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ namespace MediaBrowser.Api
|
|||||||
{
|
{
|
||||||
var kernel = (Kernel)Kernel;
|
var kernel = (Kernel)Kernel;
|
||||||
|
|
||||||
var dtoUser = JsonSerializer.DeserializeFromStream<DtoUser>(request.RequestStream);
|
var dtoUser = JsonSerializer.DeserializeFromStream<UserDto>(request.RequestStream);
|
||||||
|
|
||||||
var newUser = kernel.UserManager.CreateUser(dtoUser.Name).Result;
|
var newUser = kernel.UserManager.CreateUser(dtoUser.Name).Result;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Model.Configuration;
|
using MediaBrowser.Model.Configuration;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Globalization;
|
using MediaBrowser.Model.Globalization;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
@ -75,9 +75,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">The id.</param>
|
/// <param name="id">The id.</param>
|
||||||
/// <param name="userId">The user id.</param>
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">id</exception>
|
/// <exception cref="System.ArgumentNullException">id</exception>
|
||||||
public async Task<DtoBaseItem> GetItemAsync(string id, Guid userId)
|
public async Task<BaseItemDto> GetItemAsync(string id, Guid userId)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(id))
|
if (string.IsNullOrEmpty(id))
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,9 +128,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a BaseItem
|
/// Gets a BaseItem
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userId">The user id.</param>
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem> GetRootFolderAsync(Guid userId)
|
public async Task<BaseItemDto> GetRootFolderAsync(Guid userId)
|
||||||
{
|
{
|
||||||
if (userId == Guid.Empty)
|
if (userId == Guid.Empty)
|
||||||
{
|
{
|
||||||
@ -141,21 +141,21 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets all Users
|
/// Gets all Users
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Task{DtoUser[]}.</returns>
|
/// <returns>Task{UserDto[]}.</returns>
|
||||||
public async Task<DtoUser[]> GetAllUsersAsync()
|
public async Task<UserDto[]> GetAllUsersAsync()
|
||||||
{
|
{
|
||||||
var url = GetApiUrl("Users");
|
var url = GetApiUrl("Users");
|
||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoUser[]>(stream);
|
return DeserializeFromStream<UserDto[]>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,9 +233,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a studio
|
/// Gets a studio
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem> GetStudioAsync(string name)
|
public async Task<BaseItemDto> GetStudioAsync(string name)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(name))
|
if (string.IsNullOrEmpty(name))
|
||||||
{
|
{
|
||||||
@ -246,7 +246,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,9 +254,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a genre
|
/// Gets a genre
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem> GetGenreAsync(string name)
|
public async Task<BaseItemDto> GetGenreAsync(string name)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(name))
|
if (string.IsNullOrEmpty(name))
|
||||||
{
|
{
|
||||||
@ -267,7 +267,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,9 +302,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a person
|
/// Gets a person
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem> GetPersonAsync(string name)
|
public async Task<BaseItemDto> GetPersonAsync(string name)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(name))
|
if (string.IsNullOrEmpty(name))
|
||||||
{
|
{
|
||||||
@ -315,7 +315,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -323,15 +323,15 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a year
|
/// Gets a year
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="year">The year.</param>
|
/// <param name="year">The year.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem> GetYearAsync(int year)
|
public async Task<BaseItemDto> GetYearAsync(int year)
|
||||||
{
|
{
|
||||||
var url = GetApiUrl("Library/Years/" + year);
|
var url = GetApiUrl("Library/Years/" + year);
|
||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem>(stream);
|
return DeserializeFromStream<BaseItemDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -438,9 +438,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// Gets a user by id
|
/// Gets a user by id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">The id.</param>
|
/// <param name="id">The id.</param>
|
||||||
/// <returns>Task{DtoUser}.</returns>
|
/// <returns>Task{UserDto}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">id</exception>
|
/// <exception cref="System.ArgumentNullException">id</exception>
|
||||||
public async Task<DtoUser> GetUserAsync(Guid id)
|
public async Task<UserDto> GetUserAsync(Guid id)
|
||||||
{
|
{
|
||||||
if (id == Guid.Empty)
|
if (id == Guid.Empty)
|
||||||
{
|
{
|
||||||
@ -451,7 +451,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoUser>(stream);
|
return DeserializeFromStream<UserDto>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -517,7 +517,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="itemId">The item id.</param>
|
/// <param name="itemId">The item id.</param>
|
||||||
/// <returns>Task{ItemsResult}.</returns>
|
/// <returns>Task{ItemsResult}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">query</exception>
|
/// <exception cref="System.ArgumentNullException">query</exception>
|
||||||
public async Task<DtoBaseItem[]> GetLocalTrailersAsync(Guid userId, string itemId)
|
public async Task<BaseItemDto[]> GetLocalTrailersAsync(Guid userId, string itemId)
|
||||||
{
|
{
|
||||||
if (userId == Guid.Empty)
|
if (userId == Guid.Empty)
|
||||||
{
|
{
|
||||||
@ -532,7 +532,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem[]>(stream);
|
return DeserializeFromStream<BaseItemDto[]>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -541,9 +541,9 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userId">The user id.</param>
|
/// <param name="userId">The user id.</param>
|
||||||
/// <param name="itemId">The item id.</param>
|
/// <param name="itemId">The item id.</param>
|
||||||
/// <returns>Task{DtoBaseItem[]}.</returns>
|
/// <returns>Task{BaseItemDto[]}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">userId</exception>
|
/// <exception cref="System.ArgumentNullException">userId</exception>
|
||||||
public async Task<DtoBaseItem[]> GetSpecialFeaturesAsync(Guid userId, string itemId)
|
public async Task<BaseItemDto[]> GetSpecialFeaturesAsync(Guid userId, string itemId)
|
||||||
{
|
{
|
||||||
if (userId == Guid.Empty)
|
if (userId == Guid.Empty)
|
||||||
{
|
{
|
||||||
@ -558,7 +558,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
return DeserializeFromStream<DtoBaseItem[]>(stream);
|
return DeserializeFromStream<BaseItemDto[]>(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -658,7 +658,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="userId">The user id.</param>
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{DtoUserItemData}.</returns>
|
/// <returns>Task{DtoUserItemData}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
||||||
public Task<DtoUserItemData> ReportPlaybackStartAsync(string itemId, Guid userId)
|
public Task<UserItemDataDto> ReportPlaybackStartAsync(string itemId, Guid userId)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(itemId))
|
if (string.IsNullOrEmpty(itemId))
|
||||||
{
|
{
|
||||||
@ -677,7 +677,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
var url = GetApiUrl("playbackcheckin", dict);
|
var url = GetApiUrl("playbackcheckin", dict);
|
||||||
|
|
||||||
return PostAsync<DtoUserItemData>(url, new Dictionary<string, string>());
|
return PostAsync<UserItemDataDto>(url, new Dictionary<string, string>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -688,7 +688,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="positionTicks">The position ticks.</param>
|
/// <param name="positionTicks">The position ticks.</param>
|
||||||
/// <returns>Task{DtoUserItemData}.</returns>
|
/// <returns>Task{DtoUserItemData}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
||||||
public Task<DtoUserItemData> ReportPlaybackProgressAsync(string itemId, Guid userId, long? positionTicks)
|
public Task<UserItemDataDto> ReportPlaybackProgressAsync(string itemId, Guid userId, long? positionTicks)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(itemId))
|
if (string.IsNullOrEmpty(itemId))
|
||||||
{
|
{
|
||||||
@ -709,7 +709,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
var url = GetApiUrl("playbackcheckin", dict);
|
var url = GetApiUrl("playbackcheckin", dict);
|
||||||
|
|
||||||
return PostAsync<DtoUserItemData>(url, new Dictionary<string, string>());
|
return PostAsync<UserItemDataDto>(url, new Dictionary<string, string>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -720,7 +720,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="positionTicks">The position ticks.</param>
|
/// <param name="positionTicks">The position ticks.</param>
|
||||||
/// <returns>Task{DtoUserItemData}.</returns>
|
/// <returns>Task{DtoUserItemData}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
||||||
public Task<DtoUserItemData> ReportPlaybackStoppedAsync(string itemId, Guid userId, long? positionTicks)
|
public Task<UserItemDataDto> ReportPlaybackStoppedAsync(string itemId, Guid userId, long? positionTicks)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(itemId))
|
if (string.IsNullOrEmpty(itemId))
|
||||||
{
|
{
|
||||||
@ -741,7 +741,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
var url = GetApiUrl("playbackcheckin", dict);
|
var url = GetApiUrl("playbackcheckin", dict);
|
||||||
|
|
||||||
return PostAsync<DtoUserItemData>(url, new Dictionary<string, string>());
|
return PostAsync<UserItemDataDto>(url, new Dictionary<string, string>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -776,7 +776,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="likes">if set to <c>true</c> [likes].</param>
|
/// <param name="likes">if set to <c>true</c> [likes].</param>
|
||||||
/// <returns>Task{DtoUserItemData}.</returns>
|
/// <returns>Task{DtoUserItemData}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
/// <exception cref="System.ArgumentNullException">itemId</exception>
|
||||||
public Task<DtoUserItemData> UpdateUserItemRatingAsync(string itemId, Guid userId, bool likes)
|
public Task<UserItemDataDto> UpdateUserItemRatingAsync(string itemId, Guid userId, bool likes)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(itemId))
|
if (string.IsNullOrEmpty(itemId))
|
||||||
{
|
{
|
||||||
@ -794,7 +794,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
|
|
||||||
var url = GetApiUrl("Users/" + userId + "/Items/" + itemId + "/Rating", dict);
|
var url = GetApiUrl("Users/" + userId + "/Items/" + itemId + "/Rating", dict);
|
||||||
|
|
||||||
return PostAsync<DtoUserItemData>(url, new Dictionary<string, string>());
|
return PostAsync<UserItemDataDto>(url, new Dictionary<string, string>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Model.Connectivity;
|
using MediaBrowser.Model.Connectivity;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
using MediaBrowser.Model.Web;
|
using MediaBrowser.Model.Web;
|
||||||
@ -275,7 +275,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -331,7 +331,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">user</exception>
|
/// <exception cref="System.ArgumentNullException">user</exception>
|
||||||
public string GetUserImageUrl(DtoUser user, ImageOptions options)
|
public string GetUserImageUrl(UserDto user, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
@ -398,7 +398,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetPersonImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetPersonImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -441,7 +441,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetYearImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetYearImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -478,7 +478,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetGenreImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetGenreImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -521,7 +521,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetStudioImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetStudioImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -564,7 +564,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String[][].</returns>
|
/// <returns>System.String[][].</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string[] GetBackdropImageUrls(DtoBaseItem item, ImageOptions options)
|
public string[] GetBackdropImageUrls(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -617,7 +617,7 @@ namespace MediaBrowser.ApiInteraction
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public string GetLogoImageUrl(DtoBaseItem item, ImageOptions options)
|
public string GetLogoImageUrl(BaseItemDto item, ImageOptions options)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using MediaBrowser.Controller.Entities.Audio;
|
|||||||
using MediaBrowser.Controller.Entities.Movies;
|
using MediaBrowser.Controller.Entities.Movies;
|
||||||
using MediaBrowser.Controller.Entities.TV;
|
using MediaBrowser.Controller.Entities.TV;
|
||||||
using MediaBrowser.Model.Drawing;
|
using MediaBrowser.Model.Drawing;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
using System;
|
using System;
|
||||||
@ -34,7 +34,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="fields">The fields.</param>
|
/// <param name="fields">The fields.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{DtoBaseItem}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">item</exception>
|
/// <exception cref="System.ArgumentNullException">item</exception>
|
||||||
public async static Task<DtoBaseItem> GetDtoBaseItem(BaseItem item, List<ItemFields> fields)
|
public async static Task<BaseItemDto> GetDtoBaseItem(BaseItem item, List<ItemFields> fields)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
throw new ArgumentNullException("fields");
|
throw new ArgumentNullException("fields");
|
||||||
}
|
}
|
||||||
|
|
||||||
var dto = new DtoBaseItem();
|
var dto = new BaseItemDto();
|
||||||
|
|
||||||
var tasks = new List<Task>();
|
var tasks = new List<Task>();
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="fields">The fields.</param>
|
/// <param name="fields">The fields.</param>
|
||||||
/// <returns>Task{DtoBaseItem}.</returns>
|
/// <returns>Task{DtoBaseItem}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException"></exception>
|
/// <exception cref="System.ArgumentNullException"></exception>
|
||||||
public async static Task<DtoBaseItem> GetDtoBaseItem(BaseItem item, User user, List<ItemFields> fields)
|
public async static Task<BaseItemDto> GetDtoBaseItem(BaseItem item, User user, List<ItemFields> fields)
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -106,7 +106,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
throw new ArgumentNullException("fields");
|
throw new ArgumentNullException("fields");
|
||||||
}
|
}
|
||||||
|
|
||||||
var dto = new DtoBaseItem();
|
var dto = new BaseItemDto();
|
||||||
|
|
||||||
var tasks = new List<Task>();
|
var tasks = new List<Task>();
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <param name="fields">The fields.</param>
|
/// <param name="fields">The fields.</param>
|
||||||
private static void AttachUserSpecificInfo(DtoBaseItem dto, BaseItem item, User user, List<ItemFields> fields)
|
private static void AttachUserSpecificInfo(BaseItemDto dto, BaseItem item, User user, List<ItemFields> fields)
|
||||||
{
|
{
|
||||||
dto.IsNew = item.IsRecentlyAdded(user);
|
dto.IsNew = item.IsRecentlyAdded(user);
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="dto">The dto.</param>
|
/// <param name="dto">The dto.</param>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
private static async Task AttachPrimaryImageAspectRatio(DtoBaseItem dto, BaseItem item)
|
private static async Task AttachPrimaryImageAspectRatio(BaseItemDto dto, BaseItem item)
|
||||||
{
|
{
|
||||||
var path = item.PrimaryImagePath;
|
var path = item.PrimaryImagePath;
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="dto">The dto.</param>
|
/// <param name="dto">The dto.</param>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <param name="fields">The fields.</param>
|
/// <param name="fields">The fields.</param>
|
||||||
private static void AttachBasicFields(DtoBaseItem dto, BaseItem item, List<ItemFields> fields)
|
private static void AttachBasicFields(BaseItemDto dto, BaseItem item, List<ItemFields> fields)
|
||||||
{
|
{
|
||||||
if (fields.Contains(ItemFields.DateCreated))
|
if (fields.Contains(ItemFields.DateCreated))
|
||||||
{
|
{
|
||||||
@ -467,7 +467,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="folder">The folder.</param>
|
/// <param name="folder">The folder.</param>
|
||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <param name="dto">The dto.</param>
|
/// <param name="dto">The dto.</param>
|
||||||
private static void SetSpecialCounts(Folder folder, User user, DtoBaseItem dto)
|
private static void SetSpecialCounts(Folder folder, User user, BaseItemDto dto)
|
||||||
{
|
{
|
||||||
var utcNow = DateTime.UtcNow;
|
var utcNow = DateTime.UtcNow;
|
||||||
|
|
||||||
@ -555,7 +555,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="dto">The dto.</param>
|
/// <param name="dto">The dto.</param>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
private static async Task AttachPeople(DtoBaseItem dto, BaseItem item)
|
private static async Task AttachPeople(BaseItemDto dto, BaseItem item)
|
||||||
{
|
{
|
||||||
if (item.People == null)
|
if (item.People == null)
|
||||||
{
|
{
|
||||||
@ -675,14 +675,14 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="data">The data.</param>
|
/// <param name="data">The data.</param>
|
||||||
/// <returns>DtoUserItemData.</returns>
|
/// <returns>DtoUserItemData.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException"></exception>
|
/// <exception cref="System.ArgumentNullException"></exception>
|
||||||
public static DtoUserItemData GetDtoUserItemData(UserItemData data)
|
public static UserItemDataDto GetDtoUserItemData(UserItemData data)
|
||||||
{
|
{
|
||||||
if (data == null)
|
if (data == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException();
|
throw new ArgumentNullException();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new DtoUserItemData
|
return new UserItemDataDto
|
||||||
{
|
{
|
||||||
IsFavorite = data.IsFavorite,
|
IsFavorite = data.IsFavorite,
|
||||||
Likes = data.Likes,
|
Likes = data.Likes,
|
||||||
@ -786,14 +786,14 @@ namespace MediaBrowser.Controller.Library
|
|||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <returns>DtoUser.</returns>
|
/// <returns>DtoUser.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">user</exception>
|
/// <exception cref="System.ArgumentNullException">user</exception>
|
||||||
public static DtoUser GetDtoUser(User user)
|
public static UserDto GetDtoUser(User user)
|
||||||
{
|
{
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("user");
|
throw new ArgumentNullException("user");
|
||||||
}
|
}
|
||||||
|
|
||||||
var dto = new DtoUser
|
var dto = new UserDto
|
||||||
{
|
{
|
||||||
Id = user.Id,
|
Id = user.Id,
|
||||||
Name = user.Name,
|
Name = user.Name,
|
||||||
|
@ -5,14 +5,14 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is strictly used as a data transfer object from the api layer.
|
/// This is strictly used as a data transfer object from the api layer.
|
||||||
/// This holds information about a BaseItem in a format that is convenient for the client.
|
/// This holds information about a BaseItem in a format that is convenient for the client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ProtoContract]
|
[ProtoContract]
|
||||||
public class DtoBaseItem : IHasProviderIds, INotifyPropertyChanged
|
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
||||||
@ -229,7 +229,7 @@ namespace MediaBrowser.Model.DTO
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The user data.</value>
|
/// <value>The user data.</value>
|
||||||
[ProtoMember(36)]
|
[ProtoMember(36)]
|
||||||
public DtoUserItemData UserData { get; set; }
|
public UserItemDataDto UserData { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether this instance is new.
|
/// Gets or sets a value indicating whether this instance is new.
|
@ -3,7 +3,7 @@ using System;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is used by the api to get information about a Person within a BaseItem
|
/// This is used by the api to get information about a Person within a BaseItem
|
||||||
|
@ -3,7 +3,7 @@ using System;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class ChapterInfo
|
/// Class ChapterInfo
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class ImageOptions
|
/// Class ImageOptions
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to control the data that gets attached to DtoBaseItems
|
/// Used to control the data that gets attached to DtoBaseItems
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enum ItemFilter
|
/// Enum ItemFilter
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains all the possible parameters that can be used to query for items
|
/// Contains all the possible parameters that can be used to query for items
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enum ItemSortBy
|
/// Enum ItemSortBy
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the result of a query for items
|
/// Represents the result of a query for items
|
||||||
@ -13,7 +13,7 @@ namespace MediaBrowser.Model.DTO
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The items.</value>
|
/// <value>The items.</value>
|
||||||
[ProtoMember(1)]
|
[ProtoMember(1)]
|
||||||
public DtoBaseItem[] Items { get; set; }
|
public BaseItemDto[] Items { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The total number of records available
|
/// The total number of records available
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enum MediaType
|
/// Enum MediaType
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class VideoStreamOptions
|
/// Class VideoStreamOptions
|
||||||
|
@ -4,13 +4,13 @@ using ProtoBuf;
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class DtoUser
|
/// Class UserDto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ProtoContract]
|
[ProtoContract]
|
||||||
public class DtoUser : INotifyPropertyChanged
|
public class UserDto : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
@ -1,13 +1,13 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class DtoUserItemData
|
/// Class DtoUserItemData
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ProtoContract]
|
[ProtoContract]
|
||||||
public class DtoUserItemData : INotifyPropertyChanged
|
public class UserItemDataDto : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the rating.
|
/// Gets or sets the rating.
|
||||||
@ -38,14 +38,14 @@ namespace MediaBrowser.Model.DTO
|
|||||||
public bool IsFavorite { get; set; }
|
public bool IsFavorite { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether this <see cref="DtoUserItemData" /> is likes.
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
|
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
|
||||||
[ProtoMember(5)]
|
[ProtoMember(5)]
|
||||||
public bool? Likes { get; set; }
|
public bool? Likes { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether this <see cref="DtoUserItemData" /> is played.
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
|
||||||
[ProtoMember(6)]
|
[ProtoMember(6)]
|
@ -76,11 +76,11 @@
|
|||||||
<Compile Include="Entities\RequestResult.cs" />
|
<Compile Include="Entities\RequestResult.cs" />
|
||||||
<Compile Include="Configuration\UserConfiguration.cs" />
|
<Compile Include="Configuration\UserConfiguration.cs" />
|
||||||
<Compile Include="Drawing\DrawingUtils.cs" />
|
<Compile Include="Drawing\DrawingUtils.cs" />
|
||||||
<Compile Include="DTO\DtoUserItemData.cs" />
|
<Compile Include="DTO\UserItemDataDto.cs" />
|
||||||
<Compile Include="DTO\ItemFields.cs" />
|
<Compile Include="DTO\ItemFields.cs" />
|
||||||
<Compile Include="DTO\ItemSortBy.cs" />
|
<Compile Include="DTO\ItemSortBy.cs" />
|
||||||
<Compile Include="DTO\DtoBaseItem.cs" />
|
<Compile Include="DTO\BaseItemDto.cs" />
|
||||||
<Compile Include="DTO\DtoUser.cs" />
|
<Compile Include="DTO\UserDto.cs" />
|
||||||
<Compile Include="DTO\ItemsResult.cs" />
|
<Compile Include="DTO\ItemsResult.cs" />
|
||||||
<Compile Include="Entities\DisplayPreferences.cs" />
|
<Compile Include="Entities\DisplayPreferences.cs" />
|
||||||
<Compile Include="Entities\ImageType.cs" />
|
<Compile Include="Entities\ImageType.cs" />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
@ -28,7 +28,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls
|
|||||||
/// Gets the item.
|
/// Gets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
private DtoBaseItem Item
|
private BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return ViewModel.Item; }
|
get { return ViewModel.Item; }
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
|
|
||||||
namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
||||||
@ -19,12 +19,12 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _item
|
/// The _item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _item;
|
private BaseItemDto _item;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the item.
|
/// Gets or sets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
public DtoBaseItem Item
|
public BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return _item; }
|
get { return _item; }
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
using MediaBrowser.UI.Playback;
|
using MediaBrowser.UI.Playback;
|
||||||
@ -35,7 +35,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
|
|
||||||
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
||||||
{
|
{
|
||||||
Items = new List<DtoBaseItem> { Item },
|
Items = new List<BaseItemDto> { Item },
|
||||||
StartPositionTicks = chapterViewModel.Chapter.StartPositionTicks
|
StartPositionTicks = chapterViewModel.Chapter.StartPositionTicks
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
@ -101,7 +101,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>List{System.String}.</returns>
|
/// <returns>List{System.String}.</returns>
|
||||||
internal static List<string> GetImages(DtoBaseItem item)
|
internal static List<string> GetImages(BaseItemDto item)
|
||||||
{
|
{
|
||||||
var images = new List<string> { };
|
var images = new List<string> { };
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
using MediaBrowser.UI.ViewModels;
|
using MediaBrowser.UI.ViewModels;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
@ -36,7 +36,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
|
|
||||||
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
||||||
{
|
{
|
||||||
Items = new List<DtoBaseItem> { viewModel.Item }
|
Items = new List<BaseItemDto> { viewModel.Item }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected override async void OnItemChanged()
|
protected override async void OnItemChanged()
|
||||||
{
|
{
|
||||||
DtoBaseItem[] result;
|
BaseItemDto[] result;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultItems = result ?? new DtoBaseItem[] { };
|
var resultItems = result ?? new BaseItemDto[] { };
|
||||||
|
|
||||||
const int height = 297;
|
const int height = 297;
|
||||||
var aspectRatio = DtoBaseItemViewModel.GetAveragePrimaryImageAspectRatio(resultItems);
|
var aspectRatio = DtoBaseItemViewModel.GetAveragePrimaryImageAspectRatio(resultItems);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
@ -36,7 +36,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
|
|
||||||
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
||||||
{
|
{
|
||||||
Items = new List<DtoBaseItem> { viewModel.Item }
|
Items = new List<BaseItemDto> { viewModel.Item }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected override async void OnItemChanged()
|
protected override async void OnItemChanged()
|
||||||
{
|
{
|
||||||
DtoBaseItem[] result;
|
BaseItemDto[] result;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultItems = result ?? new DtoBaseItem[] { };
|
var resultItems = result ?? new BaseItemDto[] { };
|
||||||
|
|
||||||
const int height = 297;
|
const int height = 297;
|
||||||
var aspectRatio = DtoBaseItemViewModel.GetAveragePrimaryImageAspectRatio(resultItems);
|
var aspectRatio = DtoBaseItemViewModel.GetAveragePrimaryImageAspectRatio(resultItems);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
@ -27,7 +27,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls
|
|||||||
/// Gets the item.
|
/// Gets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
private DtoBaseItem Item
|
private BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return ViewModel.Item; }
|
get { return ViewModel.Item; }
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
@ -179,7 +179,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Uri.</returns>
|
/// <returns>Uri.</returns>
|
||||||
private string GetImageSource(DtoBaseItem item)
|
private string GetImageSource(BaseItemDto item)
|
||||||
{
|
{
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.Plugins.DefaultTheme.Controls.Details;
|
using MediaBrowser.Plugins.DefaultTheme.Controls.Details;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.Plugins.DefaultTheme.Resources;
|
using MediaBrowser.Plugins.DefaultTheme.Resources;
|
||||||
@ -192,7 +192,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetResumableItems(new DtoBaseItem[] { });
|
SetResumableItems(new BaseItemDto[] { });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recently Added Items
|
// Recently Added Items
|
||||||
@ -202,7 +202,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetRecentlyAddedItems(new DtoBaseItem[] { });
|
SetRecentlyAddedItems(new BaseItemDto[] { });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recently Played Items
|
// Recently Played Items
|
||||||
@ -212,7 +212,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetRecentlyPlayedItems(new DtoBaseItem[] { });
|
SetRecentlyPlayedItems(new BaseItemDto[] { });
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.Add(RefreshTopPicksAsync());
|
tasks.Add(RefreshTopPicksAsync());
|
||||||
@ -407,7 +407,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
/// Sets the favorite items.
|
/// Sets the favorite items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
private void SetFavoriteItems(DtoBaseItem[] items)
|
private void SetFavoriteItems(BaseItemDto[] items)
|
||||||
{
|
{
|
||||||
FavoriteItems = new ItemCollectionViewModel { Items = items, Name = "Favorites" };
|
FavoriteItems = new ItemCollectionViewModel { Items = items, Name = "Favorites" };
|
||||||
}
|
}
|
||||||
@ -416,7 +416,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
/// Sets the resumable items.
|
/// Sets the resumable items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
private void SetResumableItems(DtoBaseItem[] items)
|
private void SetResumableItems(BaseItemDto[] items)
|
||||||
{
|
{
|
||||||
ResumableItems = new ItemCollectionViewModel { Items = items, Name = "Resume" };
|
ResumableItems = new ItemCollectionViewModel { Items = items, Name = "Resume" };
|
||||||
}
|
}
|
||||||
@ -425,7 +425,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
/// Sets the recently played items.
|
/// Sets the recently played items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
private void SetRecentlyPlayedItems(DtoBaseItem[] items)
|
private void SetRecentlyPlayedItems(BaseItemDto[] items)
|
||||||
{
|
{
|
||||||
RecentlyPlayedItems = new ItemCollectionViewModel { Items = items, Name = "Recently Played" };
|
RecentlyPlayedItems = new ItemCollectionViewModel { Items = items, Name = "Recently Played" };
|
||||||
}
|
}
|
||||||
@ -434,7 +434,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Pages
|
|||||||
/// Sets the recently added items.
|
/// Sets the recently added items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
private void SetRecentlyAddedItems(DtoBaseItem[] items)
|
private void SetRecentlyAddedItems(BaseItemDto[] items)
|
||||||
{
|
{
|
||||||
RecentlyAddedItems = new ItemCollectionViewModel { Items = items, Name = "Recently Added" };
|
RecentlyAddedItems = new ItemCollectionViewModel { Items = items, Name = "Recently Added" };
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
@ -162,7 +162,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Resources
|
|||||||
/// Sets the page title.
|
/// Sets the page title.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
public async Task SetPageTitle(DtoBaseItem item)
|
public async Task SetPageTitle(BaseItemDto item)
|
||||||
{
|
{
|
||||||
if (item.HasLogo || !string.IsNullOrEmpty(item.ParentLogoItemId))
|
if (item.HasLogo || !string.IsNullOrEmpty(item.ParentLogoItemId))
|
||||||
{
|
{
|
||||||
@ -193,7 +193,7 @@ namespace MediaBrowser.Plugins.DefaultTheme.Resources
|
|||||||
/// Sets the page title text.
|
/// Sets the page title text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
private void SetPageTitleText(DtoBaseItem item)
|
private void SetPageTitleText(BaseItemDto item)
|
||||||
{
|
{
|
||||||
SetPageTitle(item.SeriesName ?? item.Album ?? item.Name);
|
SetPageTitle(item.SeriesName ?? item.Album ?? item.Name);
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:themeconverters="clr-namespace:MediaBrowser.Plugins.DefaultTheme.Converters"
|
xmlns:themeconverters="clr-namespace:MediaBrowser.Plugins.DefaultTheme.Converters"
|
||||||
xmlns:DTO="clr-namespace:MediaBrowser.Model.DTO;assembly=MediaBrowser.Model"
|
|
||||||
xmlns:themecontrols="clr-namespace:MediaBrowser.Plugins.DefaultTheme.Controls"
|
xmlns:themecontrols="clr-namespace:MediaBrowser.Plugins.DefaultTheme.Controls"
|
||||||
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
|
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
|
||||||
xmlns:ViewModels="clr-namespace:MediaBrowser.UI.ViewModels;assembly=MediaBrowser.UI"
|
xmlns:ViewModels="clr-namespace:MediaBrowser.UI.ViewModels;assembly=MediaBrowser.UI"
|
||||||
xmlns:controls="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI.Controls"
|
xmlns:controls="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI.Controls"
|
||||||
|
xmlns:dto="clr-namespace:MediaBrowser.Model.Dto;assembly=MediaBrowser.Model"
|
||||||
x:Class="MediaBrowser.Plugins.DefaultTheme.Resources.AppResources">
|
x:Class="MediaBrowser.Plugins.DefaultTheme.Resources.AppResources">
|
||||||
|
|
||||||
<themeconverters:WeatherImageConverter x:Key="WeatherImageConverter"></themeconverters:WeatherImageConverter>
|
<themeconverters:WeatherImageConverter x:Key="WeatherImageConverter"></themeconverters:WeatherImageConverter>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<!--Default font for h2 headers. Themes should override these as needed-->
|
<!--Default font for h2 headers. Themes should override these as needed-->
|
||||||
<Brush x:Key="Heading2Foreground">#ffffff</Brush>
|
<Brush x:Key="Heading2Foreground">#ffffff</Brush>
|
||||||
|
|
||||||
<DataTemplate DataType="{x:Type DTO:DtoUser}">
|
<DataTemplate DataType="{x:Type dto:UserDto}">
|
||||||
<Grid HorizontalAlignment="Left">
|
<Grid HorizontalAlignment="Left">
|
||||||
<Border Background="{Binding Converter={StaticResource MetroTileBackgroundConverter},Mode=OneWay}">
|
<Border Background="{Binding Converter={StaticResource MetroTileBackgroundConverter},Mode=OneWay}">
|
||||||
<Image Stretch="Uniform" Width="330" Height="330">
|
<Image Stretch="Uniform" Width="330" Height="330">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Plugins.DefaultTheme.Pages;
|
using MediaBrowser.Plugins.DefaultTheme.Pages;
|
||||||
using MediaBrowser.Plugins.DefaultTheme.Resources;
|
using MediaBrowser.Plugins.DefaultTheme.Resources;
|
||||||
using MediaBrowser.UI;
|
using MediaBrowser.UI;
|
||||||
@ -21,7 +21,7 @@ namespace MediaBrowser.Plugins.DefaultTheme
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Page.</returns>
|
/// <returns>Page.</returns>
|
||||||
public override Page GetDetailPage(DtoBaseItem item)
|
public override Page GetDetailPage(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return new DetailPage(item.Id);
|
return new DetailPage(item.Id);
|
||||||
}
|
}
|
||||||
@ -31,7 +31,7 @@ namespace MediaBrowser.Plugins.DefaultTheme
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Page.</returns>
|
/// <returns>Page.</returns>
|
||||||
public override Page GetListPage(DtoBaseItem item)
|
public override Page GetListPage(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return new ListPage(item.Id);
|
return new ListPage(item.Id);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
@ -122,7 +122,7 @@ namespace MediaBrowser.Plugins.MpcHc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
||||||
public override bool CanPlay(DtoBaseItem item)
|
public override bool CanPlay(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return item.IsVideo || item.IsAudio;
|
return item.IsVideo || item.IsAudio;
|
||||||
}
|
}
|
||||||
@ -134,7 +134,7 @@ namespace MediaBrowser.Plugins.MpcHc
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected override string GetCommandArguments(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected override string GetCommandArguments(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
var formatString = "{0} /play /fullscreen /close";
|
var formatString = "{0} /play /fullscreen /close";
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ namespace MediaBrowser.Plugins.MpcHc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected override string GetPathForCommandLine(DtoBaseItem item)
|
protected override string GetPathForCommandLine(BaseItemDto item)
|
||||||
{
|
{
|
||||||
var path = base.GetPathForCommandLine(item);
|
var path = base.GetPathForCommandLine(item);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using MediaBrowser.Common.IO;
|
using MediaBrowser.Common.IO;
|
||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using MediaBrowser.UI.Playback;
|
using MediaBrowser.UI.Playback;
|
||||||
using MediaBrowser.UI.Playback.ExternalPlayer;
|
using MediaBrowser.UI.Playback.ExternalPlayer;
|
||||||
@ -124,7 +124,7 @@ namespace MediaBrowser.Plugins.Tmt5
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
||||||
public override bool CanPlay(DtoBaseItem item)
|
public override bool CanPlay(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return item.IsVideo || item.IsAudio;
|
return item.IsVideo || item.IsAudio;
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ namespace MediaBrowser.Plugins.Tmt5
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected override string GetCommandArguments(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected override string GetCommandArguments(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
return "\"" + items[0].Path + "\"";
|
return "\"" + items[0].Path + "\"";
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ using MediaBrowser.Common.Logging;
|
|||||||
using MediaBrowser.Common.UI;
|
using MediaBrowser.Common.UI;
|
||||||
using MediaBrowser.IsoMounter;
|
using MediaBrowser.IsoMounter;
|
||||||
using MediaBrowser.Model.Configuration;
|
using MediaBrowser.Model.Configuration;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.Model.Weather;
|
using MediaBrowser.Model.Weather;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
@ -114,12 +114,12 @@ namespace MediaBrowser.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _current user
|
/// The _current user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoUser _currentUser;
|
private UserDto _currentUser;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the current user.
|
/// Gets or sets the current user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The current user.</value>
|
/// <value>The current user.</value>
|
||||||
public DtoUser CurrentUser
|
public UserDto CurrentUser
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -545,7 +545,7 @@ namespace MediaBrowser.UI
|
|||||||
/// Navigates to item.
|
/// Navigates to item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
public void NavigateToItem(DtoBaseItem item)
|
public void NavigateToItem(BaseItemDto item)
|
||||||
{
|
{
|
||||||
if (item.IsRoot.HasValue && item.IsRoot.Value)
|
if (item.IsRoot.HasValue && item.IsRoot.Value)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -22,13 +22,13 @@ namespace MediaBrowser.UI.Controller
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Page.</returns>
|
/// <returns>Page.</returns>
|
||||||
public abstract Page GetListPage(DtoBaseItem item);
|
public abstract Page GetListPage(BaseItemDto item);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the detail page.
|
/// Gets the detail page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>Page.</returns>
|
/// <returns>Page.</returns>
|
||||||
public abstract Page GetDetailPage(DtoBaseItem item);
|
public abstract Page GetDetailPage(BaseItemDto item);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the home page.
|
/// Gets the home page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -21,7 +21,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
/// <returns>A converted value. If the method returns null, the valid null value is used.</returns>
|
/// <returns>A converted value. If the method returns null, the valid null value is used.</returns>
|
||||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||||
{
|
{
|
||||||
var item = value as DtoBaseItem;
|
var item = value as BaseItemDto;
|
||||||
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
/// <param name="type">The type.</param>
|
/// <param name="type">The type.</param>
|
||||||
/// <param name="reverse">if set to <c>true</c> [reverse].</param>
|
/// <param name="reverse">if set to <c>true</c> [reverse].</param>
|
||||||
/// <returns>Visibility.</returns>
|
/// <returns>Visibility.</returns>
|
||||||
private Visibility GetVisibility(DtoBaseItem item, ImageType type, bool reverse)
|
private Visibility GetVisibility(BaseItemDto item, ImageType type, bool reverse)
|
||||||
{
|
{
|
||||||
var hasImageVisibility = reverse ? Visibility.Collapsed : Visibility.Visible;
|
var hasImageVisibility = reverse ? Visibility.Collapsed : Visibility.Visible;
|
||||||
var hasNoImageVisibility = reverse ? Visibility.Visible : Visibility.Collapsed;
|
var hasNoImageVisibility = reverse ? Visibility.Visible : Visibility.Collapsed;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
@ -9,7 +9,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var user = value as DtoUser;
|
var user = value as UserDto;
|
||||||
|
|
||||||
if (user != null)
|
if (user != null)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
@ -21,7 +21,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
/// <returns>A converted value. If the method returns null, the valid null value is used.</returns>
|
/// <returns>A converted value. If the method returns null, the valid null value is used.</returns>
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var user = value as DtoUser;
|
var user = value as UserDto;
|
||||||
|
|
||||||
if (user != null && user.HasPrimaryImage)
|
if (user != null && user.HasPrimaryImage)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -10,7 +10,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var item = value as DtoBaseItem;
|
var item = value as BaseItemDto;
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var item = value as DtoBaseItem;
|
var item = value as BaseItemDto;
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var item = value as DtoBaseItem;
|
var item = value as BaseItemDto;
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@ namespace MediaBrowser.UI.Converters
|
|||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
var item = value as DtoBaseItem;
|
var item = value as BaseItemDto;
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using MediaBrowser.Common.Extensions;
|
using MediaBrowser.Common.Extensions;
|
||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
@ -197,10 +197,10 @@ namespace MediaBrowser.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the backdrop based on a DtoBaseItem
|
/// Sets the backdrop based on a BaseItemDto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
public void SetBackdrops(DtoBaseItem item)
|
public void SetBackdrops(BaseItemDto item)
|
||||||
{
|
{
|
||||||
var urls = App.Instance.ApiClient.GetBackdropImageUrls(item, new ImageOptions
|
var urls = App.Instance.ApiClient.GetBackdropImageUrls(item, new ImageOptions
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.Controller;
|
using MediaBrowser.UI.Controller;
|
||||||
using MediaBrowser.UI.Playback;
|
using MediaBrowser.UI.Playback;
|
||||||
@ -33,12 +33,12 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _item
|
/// The _item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _item;
|
private BaseItemDto _item;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the item.
|
/// Gets or sets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
public DtoBaseItem Item
|
public BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return _item; }
|
get { return _item; }
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
{
|
{
|
||||||
await UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
await UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
||||||
{
|
{
|
||||||
Items = new List<DtoBaseItem> { Item }
|
Items = new List<BaseItemDto> { Item }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
{
|
{
|
||||||
await UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
await UIKernel.Instance.PlaybackManager.Play(new PlayOptions
|
||||||
{
|
{
|
||||||
Items = new List<DtoBaseItem> { Item },
|
Items = new List<BaseItemDto> { Item },
|
||||||
Resume = true
|
Resume = true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.ViewModels;
|
using MediaBrowser.UI.ViewModels;
|
||||||
@ -83,12 +83,12 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _folder
|
/// The _folder
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _folder;
|
private BaseItemDto _folder;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the Folder being displayed
|
/// Gets or sets the Folder being displayed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The folder.</value>
|
/// <value>The folder.</value>
|
||||||
public DtoBaseItem Folder
|
public BaseItemDto Folder
|
||||||
{
|
{
|
||||||
get { return _folder; }
|
get { return _folder; }
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
using MediaBrowser.UI.ViewModels;
|
using MediaBrowser.UI.ViewModels;
|
||||||
@ -49,12 +49,12 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _current item
|
/// The _current item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _currentItem;
|
private BaseItemDto _currentItem;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the current selected item
|
/// Gets or sets the current selected item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The current item.</value>
|
/// <value>The current item.</value>
|
||||||
public DtoBaseItem CurrentItem
|
public BaseItemDto CurrentItem
|
||||||
{
|
{
|
||||||
get { return _currentItem; }
|
get { return _currentItem; }
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// Updates the current item index based on the current selection
|
/// Updates the current item index based on the current selection
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="value">The value.</param>
|
/// <param name="value">The value.</param>
|
||||||
private void UpdateCurrentItemIndex(DtoBaseItem value)
|
private void UpdateCurrentItemIndex(BaseItemDto value)
|
||||||
{
|
{
|
||||||
if (value == null)
|
if (value == null)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.Controls;
|
using MediaBrowser.UI.Controls;
|
||||||
using System;
|
using System;
|
||||||
@ -14,12 +14,12 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _users
|
/// The _users
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoUser[] _users;
|
private UserDto[] _users;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the users.
|
/// Gets or sets the users.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The users.</value>
|
/// <value>The users.</value>
|
||||||
public DtoUser[] Users
|
public UserDto[] Users
|
||||||
{
|
{
|
||||||
get { return _users; }
|
get { return _users; }
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <param name="e">The e.</param>
|
/// <param name="e">The e.</param>
|
||||||
async void ItemsList_ItemInvoked(object sender, ItemEventArgs<object> e)
|
async void ItemsList_ItemInvoked(object sender, ItemEventArgs<object> e)
|
||||||
{
|
{
|
||||||
var user = (DtoUser)e.Argument;
|
var user = (UserDto)e.Argument;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <param name="password">The password.</param>
|
/// <param name="password">The password.</param>
|
||||||
/// <returns>Task{AuthenticationResult}.</returns>
|
/// <returns>Task{AuthenticationResult}.</returns>
|
||||||
protected async Task LoginUser(DtoUser user, string password)
|
protected async Task LoginUser(UserDto user, string password)
|
||||||
{
|
{
|
||||||
await App.Instance.ApiClient.AuthenticateUserAsync(user.Id, password);
|
await App.Instance.ApiClient.AuthenticateUserAsync(user.Id, password);
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ namespace MediaBrowser.UI.Pages
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The user.</param>
|
/// <param name="user">The user.</param>
|
||||||
/// <returns>Task{AuthenticationResult}.</returns>
|
/// <returns>Task{AuthenticationResult}.</returns>
|
||||||
protected Task LoginUser(DtoUser user)
|
protected Task LoginUser(UserDto user)
|
||||||
{
|
{
|
||||||
return LoginUser(user, null);
|
return LoginUser(user, null);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -53,9 +53,9 @@ namespace MediaBrowser.UI.Pages
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the backdrop based on a DtoBaseItem
|
/// Sets the backdrop based on a BaseItemDto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SetBackdrops(DtoBaseItem item)
|
public void SetBackdrops(BaseItemDto item)
|
||||||
{
|
{
|
||||||
App.Instance.ApplicationWindow.SetBackdrops(item);
|
App.Instance.ApplicationWindow.SetBackdrops(item);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using MediaBrowser.Common.Events;
|
using MediaBrowser.Common.Events;
|
||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
@ -60,7 +60,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The currently playing items
|
/// The currently playing items
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<DtoBaseItem> Playlist = new List<DtoBaseItem>();
|
public List<BaseItemDto> Playlist = new List<BaseItemDto>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _play state
|
/// The _play state
|
||||||
@ -135,7 +135,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
||||||
public abstract bool CanPlay(DtoBaseItem item);
|
public abstract bool CanPlay(BaseItemDto item);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether this instance can change volume.
|
/// Gets a value indicating whether this instance can change volume.
|
||||||
@ -180,7 +180,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Gets the current media.
|
/// Gets the current media.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The current media.</value>
|
/// <value>The current media.</value>
|
||||||
public DtoBaseItem CurrentMedia
|
public BaseItemDto CurrentMedia
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -248,13 +248,13 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
protected abstract void PlayInternal(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration);
|
protected abstract void PlayInternal(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Queues the internal.
|
/// Queues the internal.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
protected virtual void QueueInternal(List<DtoBaseItem> items)
|
protected virtual void QueueInternal(List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <exception cref="System.ArgumentNullException">items</exception>
|
/// <exception cref="System.ArgumentNullException">items</exception>
|
||||||
/// <exception cref="System.InvalidOperationException"></exception>
|
/// <exception cref="System.InvalidOperationException"></exception>
|
||||||
internal void Queue(List<DtoBaseItem> items)
|
internal void Queue(List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
if (items == null)
|
if (items == null)
|
||||||
{
|
{
|
||||||
@ -632,7 +632,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Sends the playback start check in.
|
/// Sends the playback start check in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
protected async void SendPlaybackStartCheckIn(DtoBaseItem item)
|
protected async void SendPlaybackStartCheckIn(BaseItemDto item)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(item.Id))
|
if (string.IsNullOrEmpty(item.Id))
|
||||||
{
|
{
|
||||||
@ -656,7 +656,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <param name="positionTicks">The position ticks.</param>
|
/// <param name="positionTicks">The position ticks.</param>
|
||||||
protected async void SendPlaybackProgressCheckIn(DtoBaseItem item, long? positionTicks)
|
protected async void SendPlaybackProgressCheckIn(BaseItemDto item, long? positionTicks)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(item.Id))
|
if (string.IsNullOrEmpty(item.Id))
|
||||||
{
|
{
|
||||||
@ -681,7 +681,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <param name="positionTicks">The position ticks.</param>
|
/// <param name="positionTicks">The position ticks.</param>
|
||||||
protected async void SendPlaybackStopCheckIn(DtoBaseItem item, long? positionTicks)
|
protected async void SendPlaybackStopCheckIn(BaseItemDto item, long? positionTicks)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(item.Id))
|
if (string.IsNullOrEmpty(item.Id))
|
||||||
{
|
{
|
||||||
@ -705,7 +705,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Marks the watched.
|
/// Marks the watched.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
protected async void MarkWatched(IEnumerable<DtoBaseItem> items)
|
protected async void MarkWatched(IEnumerable<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
var idList = items.Where(i => !string.IsNullOrEmpty(i.Id)).Select(i => i.Id);
|
var idList = items.Where(i => !string.IsNullOrEmpty(i.Id)).Select(i => i.Id);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using MediaBrowser.UI.UserInput;
|
using MediaBrowser.UI.UserInput;
|
||||||
using System;
|
using System;
|
||||||
@ -71,7 +71,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
/// <returns>ProcessStartInfo.</returns>
|
/// <returns>ProcessStartInfo.</returns>
|
||||||
protected virtual ProcessStartInfo GetProcessStartInfo(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected virtual ProcessStartInfo GetProcessStartInfo(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
return new ProcessStartInfo
|
return new ProcessStartInfo
|
||||||
{
|
{
|
||||||
@ -87,7 +87,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected virtual string GetCommandArguments(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected virtual string GetCommandArguments(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
var args = playerConfiguration.Args;
|
var args = playerConfiguration.Args;
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <param name="formatString">The format string.</param>
|
/// <param name="formatString">The format string.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected string GetCommandArguments(List<DtoBaseItem> items, string formatString)
|
protected string GetCommandArguments(List<BaseItemDto> items, string formatString)
|
||||||
{
|
{
|
||||||
var paths = items.Select(i => "\"" + GetPathForCommandLine(i) + "\"");
|
var paths = items.Select(i => "\"" + GetPathForCommandLine(i) + "\"");
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected virtual string GetPathForCommandLine(DtoBaseItem item)
|
protected virtual string GetPathForCommandLine(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return item.Path;
|
return item.Path;
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
protected override void PlayInternal(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected override void PlayInternal(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
CurrentProcess = new Process
|
CurrentProcess = new Process
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
|
|
||||||
namespace MediaBrowser.UI.Playback.ExternalPlayer
|
namespace MediaBrowser.UI.Playback.ExternalPlayer
|
||||||
@ -23,7 +23,7 @@ namespace MediaBrowser.UI.Playback.ExternalPlayer
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
||||||
public override bool CanPlay(DtoBaseItem item)
|
public override bool CanPlay(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -21,7 +21,7 @@ namespace MediaBrowser.UI.Playback.InternalPlayer
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
protected override void PlayInternal(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected override void PlayInternal(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
App.Instance.ApplicationWindow.Dispatcher.Invoke(() =>
|
App.Instance.ApplicationWindow.Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ using Declarations.Events;
|
|||||||
using Declarations.Media;
|
using Declarations.Media;
|
||||||
using Declarations.Players;
|
using Declarations.Players;
|
||||||
using Implementation;
|
using Implementation;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using MediaBrowser.UI.Playback.InternalPlayer;
|
using MediaBrowser.UI.Playback.InternalPlayer;
|
||||||
@ -183,7 +183,7 @@ namespace MediaBrowser.UI.Playback.NVlc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if this instance can play the specified item; otherwise, <c>false</c>.</returns>
|
||||||
public override bool CanPlay(DtoBaseItem item)
|
public override bool CanPlay(BaseItemDto item)
|
||||||
{
|
{
|
||||||
return item.IsVideo || item.IsAudio;
|
return item.IsVideo || item.IsAudio;
|
||||||
}
|
}
|
||||||
@ -203,7 +203,7 @@ namespace MediaBrowser.UI.Playback.NVlc
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <param name="playerConfiguration">The player configuration.</param>
|
/// <param name="playerConfiguration">The player configuration.</param>
|
||||||
protected override void PlayInternal(List<DtoBaseItem> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
protected override void PlayInternal(List<BaseItemDto> items, PlayOptions options, PlayerConfiguration playerConfiguration)
|
||||||
{
|
{
|
||||||
EnsureMediaPlayerCreated();
|
EnsureMediaPlayerCreated();
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ namespace MediaBrowser.UI.Playback.NVlc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="item">The item.</param>
|
/// <param name="item">The item.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
private string GetPlayablePath(DtoBaseItem item)
|
private string GetPlayablePath(BaseItemDto item)
|
||||||
{
|
{
|
||||||
if (item.VideoType.HasValue && item.VideoType.Value == VideoType.BluRay)
|
if (item.VideoType.HasValue && item.VideoType.Value == VideoType.BluRay)
|
||||||
{
|
{
|
||||||
@ -289,7 +289,7 @@ namespace MediaBrowser.UI.Playback.NVlc
|
|||||||
/// Queues the internal.
|
/// Queues the internal.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
protected override void QueueInternal(List<DtoBaseItem> items)
|
protected override void QueueInternal(List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Gets or sets the items.
|
/// Gets or sets the items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The items.</value>
|
/// <value>The items.</value>
|
||||||
public List<DtoBaseItem> Items { get; set; }
|
public List<BaseItemDto> Items { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If true, the PlayableItems will be shuffled before playback
|
/// If true, the PlayableItems will be shuffled before playback
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
@ -44,6 +44,6 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Gets or sets the items.
|
/// Gets or sets the items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The items.</value>
|
/// <value>The items.</value>
|
||||||
public List<DtoBaseItem> Items { get; set; }
|
public List<BaseItemDto> Items { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using MediaBrowser.Common.Events;
|
using MediaBrowser.Common.Events;
|
||||||
using MediaBrowser.Common.Extensions;
|
using MediaBrowser.Common.Extensions;
|
||||||
using MediaBrowser.Common.Kernel;
|
using MediaBrowser.Common.Kernel;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using MediaBrowser.UI.Configuration;
|
using MediaBrowser.UI.Configuration;
|
||||||
@ -64,7 +64,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="player">The player.</param>
|
/// <param name="player">The player.</param>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
internal void OnPlaybackCompleted(BaseMediaPlayer player, List<DtoBaseItem> items)
|
internal void OnPlaybackCompleted(BaseMediaPlayer player, List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
EventHelper.QueueEventIfNotNull(PlaybackCompleted, this, new PlaybackStopEventArgs
|
EventHelper.QueueEventIfNotNull(PlaybackCompleted, this, new PlaybackStopEventArgs
|
||||||
{
|
{
|
||||||
@ -167,10 +167,10 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// Gets the playable item.
|
/// Gets the playable item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">The path.</param>
|
/// <param name="path">The path.</param>
|
||||||
/// <returns>DtoBaseItem.</returns>
|
/// <returns>BaseItemDto.</returns>
|
||||||
public DtoBaseItem GetPlayableItem(string path)
|
public BaseItemDto GetPlayableItem(string path)
|
||||||
{
|
{
|
||||||
return new DtoBaseItem
|
return new BaseItemDto
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
Name = Path.GetFileName(path),
|
Name = Path.GetFileName(path),
|
||||||
@ -185,10 +185,10 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="uri">The URI.</param>
|
/// <param name="uri">The URI.</param>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
/// <returns>DtoBaseItem.</returns>
|
/// <returns>BaseItemDto.</returns>
|
||||||
public DtoBaseItem GetPlayableItem(Uri uri, string name)
|
public BaseItemDto GetPlayableItem(Uri uri, string name)
|
||||||
{
|
{
|
||||||
return new DtoBaseItem
|
return new BaseItemDto
|
||||||
{
|
{
|
||||||
Path = uri.ToString(),
|
Path = uri.ToString(),
|
||||||
Name = name,
|
Name = name,
|
||||||
@ -215,7 +215,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <returns>BaseMediaPlayer.</returns>
|
/// <returns>BaseMediaPlayer.</returns>
|
||||||
private Tuple<BaseMediaPlayer, PlayerConfiguration> GetPlayer(List<DtoBaseItem> items)
|
private Tuple<BaseMediaPlayer, PlayerConfiguration> GetPlayer(List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
var player = GetConfiguredPlayer(items);
|
var player = GetConfiguredPlayer(items);
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <returns>BaseMediaPlayer.</returns>
|
/// <returns>BaseMediaPlayer.</returns>
|
||||||
private Tuple<BaseMediaPlayer, PlayerConfiguration> GetConfiguredPlayer(List<DtoBaseItem> items)
|
private Tuple<BaseMediaPlayer, PlayerConfiguration> GetConfiguredPlayer(List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
if (UIKernel.Instance.Configuration.MediaPlayers == null)
|
if (UIKernel.Instance.Configuration.MediaPlayers == null)
|
||||||
{
|
{
|
||||||
@ -258,7 +258,7 @@ namespace MediaBrowser.UI.Playback
|
|||||||
/// <param name="configuration">The configuration.</param>
|
/// <param name="configuration">The configuration.</param>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <returns><c>true</c> if [is configured to play] [the specified configuration]; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if [is configured to play] [the specified configuration]; otherwise, <c>false</c>.</returns>
|
||||||
private bool IsConfiguredToPlay(PlayerConfiguration configuration, List<DtoBaseItem> items)
|
private bool IsConfiguredToPlay(PlayerConfiguration configuration, List<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
if (configuration.ItemTypes != null && configuration.ItemTypes.Length > 0)
|
if (configuration.ItemTypes != null && configuration.ItemTypes.Length > 0)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
|
|
||||||
namespace MediaBrowser.UI.ViewModels
|
namespace MediaBrowser.UI.ViewModels
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using System;
|
using System;
|
||||||
@ -80,12 +80,12 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _item
|
/// The _item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _item;
|
private BaseItemDto _item;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the item.
|
/// Gets or sets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
public DtoBaseItem Item
|
public BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return _item; }
|
get { return _item; }
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <param name="height">The height.</param>
|
/// <param name="height">The height.</param>
|
||||||
/// <param name="defaultWidth">The default width.</param>
|
/// <param name="defaultWidth">The default width.</param>
|
||||||
/// <returns>System.Double.</returns>
|
/// <returns>System.Double.</returns>
|
||||||
public static double GetChapterImageWidth(DtoBaseItem item, double height, double defaultWidth)
|
public static double GetChapterImageWidth(BaseItemDto item, double height, double defaultWidth)
|
||||||
{
|
{
|
||||||
var width = defaultWidth;
|
var width = defaultWidth;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Common.Logging;
|
using MediaBrowser.Common.Logging;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.UI.Pages;
|
using MediaBrowser.UI.Pages;
|
||||||
using System;
|
using System;
|
||||||
@ -55,12 +55,12 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _item
|
/// The _item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _item;
|
private BaseItemDto _item;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the item.
|
/// Gets or sets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
public DtoBaseItem Item
|
public BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return _item; }
|
get { return _item; }
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <returns>System.Double.</returns>
|
/// <returns>System.Double.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">items</exception>
|
/// <exception cref="System.ArgumentNullException">items</exception>
|
||||||
public static double GetAveragePrimaryImageAspectRatio(IEnumerable<DtoBaseItem> items)
|
public static double GetAveragePrimaryImageAspectRatio(IEnumerable<BaseItemDto> items)
|
||||||
{
|
{
|
||||||
if (items == null)
|
if (items == null)
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="items">The items.</param>
|
/// <param name="items">The items.</param>
|
||||||
/// <returns>ObservableCollection{DtoBaseItemViewModel}.</returns>
|
/// <returns>ObservableCollection{DtoBaseItemViewModel}.</returns>
|
||||||
public static ObservableCollection<DtoBaseItemViewModel> GetObservableItems(DtoBaseItem[] items)
|
public static ObservableCollection<DtoBaseItemViewModel> GetObservableItems(BaseItemDto[] items)
|
||||||
{
|
{
|
||||||
return GetObservableItems(items, GetAveragePrimaryImageAspectRatio(items));
|
return GetObservableItems(items, GetAveragePrimaryImageAspectRatio(items));
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <param name="parentDisplayPreferences">The parent display preferences.</param>
|
/// <param name="parentDisplayPreferences">The parent display preferences.</param>
|
||||||
/// <returns>ObservableCollection{DtoBaseItemViewModel}.</returns>
|
/// <returns>ObservableCollection{DtoBaseItemViewModel}.</returns>
|
||||||
/// <exception cref="System.ArgumentNullException">items</exception>
|
/// <exception cref="System.ArgumentNullException">items</exception>
|
||||||
public static ObservableCollection<DtoBaseItemViewModel> GetObservableItems(IEnumerable<DtoBaseItem> items, double averagePrimaryImageAspectRatio, DisplayPreferences parentDisplayPreferences = null)
|
public static ObservableCollection<DtoBaseItemViewModel> GetObservableItems(IEnumerable<BaseItemDto> items, double averagePrimaryImageAspectRatio, DisplayPreferences parentDisplayPreferences = null)
|
||||||
{
|
{
|
||||||
if (items == null)
|
if (items == null)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -44,16 +44,16 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private DtoBaseItem[] _items;
|
private BaseItemDto[] _items;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the list of items
|
/// Gets or sets the list of items
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DtoBaseItem[] Items
|
public BaseItemDto[] Items
|
||||||
{
|
{
|
||||||
get { return _items; }
|
get { return _items; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_items = value ?? new DtoBaseItem[] { };
|
_items = value ?? new BaseItemDto[] { };
|
||||||
OnPropertyChanged("Items");
|
OnPropertyChanged("Items");
|
||||||
CurrentItemIndex = Items.Length == 0 ? -1 : 0;
|
CurrentItemIndex = Items.Length == 0 ? -1 : 0;
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current item
|
/// Gets the current item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DtoBaseItem CurrentItem
|
public BaseItemDto CurrentItem
|
||||||
{
|
{
|
||||||
get { return CurrentItemIndex == -1 ? null : Items[CurrentItemIndex]; }
|
get { return CurrentItemIndex == -1 ? null : Items[CurrentItemIndex]; }
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the next item
|
/// Gets the next item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DtoBaseItem NextItem
|
public BaseItemDto NextItem
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Net;
|
using MediaBrowser.Model.Net;
|
||||||
using System;
|
using System;
|
||||||
@ -58,12 +58,12 @@ namespace MediaBrowser.UI.ViewModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _item
|
/// The _item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private DtoBaseItem _item;
|
private BaseItemDto _item;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the item.
|
/// Gets or sets the item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The item.</value>
|
/// <value>The item.</value>
|
||||||
public DtoBaseItem Item
|
public BaseItemDto Item
|
||||||
{
|
{
|
||||||
get { return _item; }
|
get { return _item; }
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using MediaBrowser.Model.Connectivity;
|
using MediaBrowser.Model.Connectivity;
|
||||||
using MediaBrowser.Model.DTO;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.System;
|
using MediaBrowser.Model.System;
|
||||||
using MediaBrowser.Model.Tasks;
|
using MediaBrowser.Model.Tasks;
|
||||||
using System;
|
using System;
|
||||||
@ -39,7 +39,7 @@ namespace MediaBrowser.WebDashboard.Api
|
|||||||
/// Gets or sets the users.
|
/// Gets or sets the users.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The users.</value>
|
/// <value>The users.</value>
|
||||||
public DtoUser[] Users { get; set; }
|
public UserDto[] Users { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user