diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 11:40:01 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 11:40:01 -0500 |
| commit | dbf6081a9b5eb80cc96e0551e5631e2b1890a14c (patch) | |
| tree | df68304f099e65d90ccf986c1572c87777001d69 /MediaBrowser.Model | |
| parent | 6ff65ba2781d23fef3a4b042f3fca4ac1aeb7375 (diff) | |
Add PrimaryImageAspectRatio to user dto
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/DTO/BaseItemDto.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/UserDto.cs | 9 | ||||
| -rw-r--r-- | MediaBrowser.Model/Dto/IItemDto.cs | 8 | ||||
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 1 |
4 files changed, 18 insertions, 2 deletions
diff --git a/MediaBrowser.Model/DTO/BaseItemDto.cs b/MediaBrowser.Model/DTO/BaseItemDto.cs index 67c7dabf6..4440e9bf6 100644 --- a/MediaBrowser.Model/DTO/BaseItemDto.cs +++ b/MediaBrowser.Model/DTO/BaseItemDto.cs @@ -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. diff --git a/MediaBrowser.Model/DTO/UserDto.cs b/MediaBrowser.Model/DTO/UserDto.cs index cfdba14fb..979422dbe 100644 --- a/MediaBrowser.Model/DTO/UserDto.cs +++ b/MediaBrowser.Model/DTO/UserDto.cs @@ -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. @@ -62,6 +62,13 @@ namespace MediaBrowser.Model.Dto 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> /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value> diff --git a/MediaBrowser.Model/Dto/IItemDto.cs b/MediaBrowser.Model/Dto/IItemDto.cs new file mode 100644 index 000000000..c97029655 --- /dev/null +++ b/MediaBrowser.Model/Dto/IItemDto.cs @@ -0,0 +1,8 @@ + +namespace MediaBrowser.Model.Dto +{ + public interface IItemDto + { + double? PrimaryImageAspectRatio { get; set; } + } +} diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 0d0e20f81..6c2a62f91 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -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" /> |
