mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-10 01:38:49 +01:00
Add PrimaryImageAspectRatio to user dto
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
8
MediaBrowser.Model/Dto/IItemDto.cs
Normal file
8
MediaBrowser.Model/Dto/IItemDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public interface IItemDto
|
||||
{
|
||||
double? PrimaryImageAspectRatio { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user