ImageOptions.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using MediaBrowser.Model.Drawing;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Model.Dto
  4. {
  5. /// <summary>
  6. /// Class ImageOptions
  7. /// </summary>
  8. public class ImageOptions
  9. {
  10. /// <summary>
  11. /// Gets or sets the type of the image.
  12. /// </summary>
  13. /// <value>The type of the image.</value>
  14. public ImageType ImageType { get; set; }
  15. /// <summary>
  16. /// Gets or sets the index of the image.
  17. /// </summary>
  18. /// <value>The index of the image.</value>
  19. public int? ImageIndex { get; set; }
  20. /// <summary>
  21. /// Gets or sets the width.
  22. /// </summary>
  23. /// <value>The width.</value>
  24. public int? Width { get; set; }
  25. /// <summary>
  26. /// Gets or sets the height.
  27. /// </summary>
  28. /// <value>The height.</value>
  29. public int? Height { get; set; }
  30. /// <summary>
  31. /// Gets or sets the width of the max.
  32. /// </summary>
  33. /// <value>The width of the max.</value>
  34. public int? MaxWidth { get; set; }
  35. /// <summary>
  36. /// Gets or sets the height of the max.
  37. /// </summary>
  38. /// <value>The height of the max.</value>
  39. public int? MaxHeight { get; set; }
  40. /// <summary>
  41. /// Gets or sets the quality.
  42. /// </summary>
  43. /// <value>The quality.</value>
  44. public int? Quality { get; set; }
  45. /// <summary>
  46. /// Gets or sets the image tag.
  47. /// If set this will result in strong, unconditional response caching
  48. /// </summary>
  49. /// <value>The hash.</value>
  50. public string Tag { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether [crop whitespace].
  53. /// </summary>
  54. /// <value><c>null</c> if [crop whitespace] contains no value, <c>true</c> if [crop whitespace]; otherwise, <c>false</c>.</value>
  55. public bool? CropWhitespace { get; set; }
  56. /// <summary>
  57. /// Gets or sets a value indicating whether [enable image enhancers].
  58. /// </summary>
  59. /// <value><c>true</c> if [enable image enhancers]; otherwise, <c>false</c>.</value>
  60. public bool EnableImageEnhancers { get; set; }
  61. /// <summary>
  62. /// Gets or sets the format.
  63. /// </summary>
  64. /// <value>The format.</value>
  65. public ImageFormat? Format { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether [add played indicator].
  68. /// </summary>
  69. /// <value><c>true</c> if [add played indicator]; otherwise, <c>false</c>.</value>
  70. public bool AddPlayedIndicator { get; set; }
  71. /// <summary>
  72. /// Gets or sets the percent played.
  73. /// </summary>
  74. /// <value>The percent played.</value>
  75. public int? PercentPlayed { get; set; }
  76. /// <summary>
  77. /// Gets or sets the un played count.
  78. /// </summary>
  79. /// <value>The un played count.</value>
  80. public int? UnPlayedCount { get; set; }
  81. /// <summary>
  82. /// Gets or sets the color of the background.
  83. /// </summary>
  84. /// <value>The color of the background.</value>
  85. public string BackgroundColor { get; set; }
  86. /// <summary>
  87. /// Initializes a new instance of the <see cref="ImageOptions" /> class.
  88. /// </summary>
  89. public ImageOptions()
  90. {
  91. EnableImageEnhancers = true;
  92. }
  93. }
  94. }