ImageOptions.cs 3.5 KB

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