aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/DTO
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/DTO')
-rw-r--r--MediaBrowser.Model/DTO/BaseItemDto.cs2
-rw-r--r--MediaBrowser.Model/DTO/UserDto.cs9
2 files changed, 9 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>