Add PrimaryImageAspectRatio to user dto

This commit is contained in:
LukePulverenti
2013-03-08 11:40:01 -05:00
parent 6ff65ba278
commit dbf6081a9b
16 changed files with 69 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Dto
/// This holds information about a BaseItem in a format that is convenient for the client.
/// </summary>
[ProtoContract]
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto
{
/// <summary>
/// Gets or sets the name.

View File

@@ -10,7 +10,7 @@ namespace MediaBrowser.Model.Dto
/// Class UserDto
/// </summary>
[ProtoContract]
public class UserDto : INotifyPropertyChanged
public class UserDto : INotifyPropertyChanged, IItemDto
{
/// <summary>
/// Gets or sets the name.
@@ -61,6 +61,13 @@ namespace MediaBrowser.Model.Dto
[ProtoMember(7)]
public UserConfiguration Configuration { get; set; }
/// <summary>
/// Gets or sets the primary image aspect ratio.
/// </summary>
/// <value>The primary image aspect ratio.</value>
[ProtoMember(8)]
public double? PrimaryImageAspectRatio { get; set; }
/// <summary>
/// Gets a value indicating whether this instance has primary image.
/// </summary>

View File

@@ -0,0 +1,8 @@

namespace MediaBrowser.Model.Dto
{
public interface IItemDto
{
double? PrimaryImageAspectRatio { get; set; }
}
}

View File

@@ -44,6 +44,7 @@
<Compile Include="Configuration\ServerConfiguration.cs" />
<Compile Include="Dto\BaseItemPerson.cs" />
<Compile Include="Dto\ChapterInfoDto.cs" />
<Compile Include="Dto\IItemDto.cs" />
<Compile Include="Dto\ItemsByNameQuery.cs" />
<Compile Include="Dto\MediaType.cs" />
<Compile Include="Entities\BaseItemInfo.cs" />