aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/DTO
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-05 08:35:18 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-05 08:35:18 -0400
commitad1a9a4932b1a073bafd930417901ce6a83f35a5 (patch)
tree023c5ef1b37adadd2d20085ac7b4f17e8b1049ae /MediaBrowser.Model/DTO
parent2852e037d2116d4ad20c61cc16559493dc494b31 (diff)
added new image params
Diffstat (limited to 'MediaBrowser.Model/DTO')
-rw-r--r--MediaBrowser.Model/DTO/BaseItemDto.cs8
-rw-r--r--MediaBrowser.Model/DTO/ImageOptions.cs13
-rw-r--r--MediaBrowser.Model/DTO/UserDto.cs6
3 files changed, 25 insertions, 2 deletions
diff --git a/MediaBrowser.Model/DTO/BaseItemDto.cs b/MediaBrowser.Model/DTO/BaseItemDto.cs
index 05f958f257..9bb91db7f8 100644
--- a/MediaBrowser.Model/DTO/BaseItemDto.cs
+++ b/MediaBrowser.Model/DTO/BaseItemDto.cs
@@ -295,12 +295,18 @@ namespace MediaBrowser.Model.Dto
public List<string> Tags { get; set; }
/// <summary>
- /// Gets or sets the primary image aspect ratio.
+ /// Gets or sets the primary image aspect ratio, after image enhancements.
/// </summary>
/// <value>The primary image aspect ratio.</value>
public double? PrimaryImageAspectRatio { get; set; }
/// <summary>
+ /// Gets or sets the primary image aspect ratio, before image enhancements.
+ /// </summary>
+ /// <value>The original primary image aspect ratio.</value>
+ public double? OriginalPrimaryImageAspectRatio { get; set; }
+
+ /// <summary>
/// Gets or sets the artists.
/// </summary>
/// <value>The artists.</value>
diff --git a/MediaBrowser.Model/DTO/ImageOptions.cs b/MediaBrowser.Model/DTO/ImageOptions.cs
index 68ca91ed00..45c4695ef2 100644
--- a/MediaBrowser.Model/DTO/ImageOptions.cs
+++ b/MediaBrowser.Model/DTO/ImageOptions.cs
@@ -20,7 +20,7 @@ namespace MediaBrowser.Model.Dto
/// </summary>
/// <value>The index of the image.</value>
public int? ImageIndex { get; set; }
-
+
/// <summary>
/// Gets or sets the width.
/// </summary>
@@ -63,5 +63,16 @@ namespace MediaBrowser.Model.Dto
/// </summary>
/// <value><c>null</c> if [crop whitespace] contains no value, <c>true</c> if [crop whitespace]; otherwise, <c>false</c>.</value>
public bool? CropWhitespace { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether [enable image enhancers].
+ /// </summary>
+ /// <value><c>true</c> if [enable image enhancers]; otherwise, <c>false</c>.</value>
+ public bool EnableImageEnhancers { get; set; }
+
+ public ImageOptions()
+ {
+ EnableImageEnhancers = true;
+ }
}
}
diff --git a/MediaBrowser.Model/DTO/UserDto.cs b/MediaBrowser.Model/DTO/UserDto.cs
index bfd8d67cb1..a79ffc08c7 100644
--- a/MediaBrowser.Model/DTO/UserDto.cs
+++ b/MediaBrowser.Model/DTO/UserDto.cs
@@ -59,6 +59,12 @@ namespace MediaBrowser.Model.Dto
public double? PrimaryImageAspectRatio { get; set; }
/// <summary>
+ /// Gets or sets the original primary image aspect ratio.
+ /// </summary>
+ /// <value>The original primary image aspect ratio.</value>
+ public double? OriginalPrimaryImageAspectRatio { 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>