2013-09-19 19:46:19 +00:00
|
|
|
|
using MediaBrowser.Model.Drawing;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
2013-02-21 17:50:46 +00:00
|
|
|
|
namespace MediaBrowser.Model.Dto
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class ImageOptions
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ImageOptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the image.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the image.</value>
|
|
|
|
|
public ImageType ImageType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the index of the image.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The index of the image.</value>
|
|
|
|
|
public int? ImageIndex { get; set; }
|
2013-06-05 12:35:18 +00:00
|
|
|
|
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the width.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The width.</value>
|
|
|
|
|
public int? Width { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the height.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The height.</value>
|
|
|
|
|
public int? Height { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the width of the max.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The width of the max.</value>
|
|
|
|
|
public int? MaxWidth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the height of the max.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The height of the max.</value>
|
|
|
|
|
public int? MaxHeight { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the quality.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The quality.</value>
|
|
|
|
|
public int? Quality { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the image tag.
|
|
|
|
|
/// If set this will result in strong, unconditional response caching
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The hash.</value>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
public string Tag { get; set; }
|
2013-06-05 01:19:25 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether [crop whitespace].
|
|
|
|
|
/// </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; }
|
2013-06-05 12:35:18 +00:00
|
|
|
|
|
|
|
|
|
/// <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>
|
2013-06-09 16:23:06 +00:00
|
|
|
|
public bool EnableImageEnhancers { get; set; }
|
2013-07-03 21:35:34 +00:00
|
|
|
|
|
2013-10-02 15:32:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the format.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The format.</value>
|
2014-11-29 19:51:30 +00:00
|
|
|
|
public ImageFormat? Format { get; set; }
|
2013-09-19 19:46:19 +00:00
|
|
|
|
|
2013-10-02 15:32:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether [add played indicator].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [add played indicator]; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool AddPlayedIndicator { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the percent played.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The percent played.</value>
|
|
|
|
|
public int? PercentPlayed { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the color of the background.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The color of the background.</value>
|
|
|
|
|
public string BackgroundColor { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="ImageOptions" /> class.
|
|
|
|
|
/// </summary>
|
2013-07-03 21:35:34 +00:00
|
|
|
|
public ImageOptions()
|
|
|
|
|
{
|
2013-07-05 13:47:10 +00:00
|
|
|
|
EnableImageEnhancers = true;
|
2013-07-03 21:35:34 +00:00
|
|
|
|
}
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|