BaseItemImageInfo.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #pragma warning disable CA2227
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Jellyfin.Data.Entities;
  5. /// <summary>
  6. /// Enum TrailerTypes.
  7. /// </summary>
  8. public class BaseItemImageInfo
  9. {
  10. /// <summary>
  11. /// Gets or Sets.
  12. /// </summary>
  13. public required Guid Id { get; set; }
  14. /// <summary>
  15. /// Gets or Sets the path to the original image.
  16. /// </summary>
  17. public required string Path { get; set; }
  18. /// <summary>
  19. /// Gets or Sets the time the image was last modified.
  20. /// </summary>
  21. public DateTime DateModified { get; set; }
  22. /// <summary>
  23. /// Gets or Sets the imagetype.
  24. /// </summary>
  25. public ImageInfoImageType ImageType { get; set; }
  26. /// <summary>
  27. /// Gets or Sets the width of the original image.
  28. /// </summary>
  29. public int Width { get; set; }
  30. /// <summary>
  31. /// Gets or Sets the height of the original image.
  32. /// </summary>
  33. public int Height { get; set; }
  34. #pragma warning disable CA1819 // Properties should not return arrays
  35. /// <summary>
  36. /// Gets or Sets the blurhash.
  37. /// </summary>
  38. public byte[]? Blurhash { get; set; }
  39. #pragma warning restore CA1819
  40. /// <summary>
  41. /// Gets or Sets the reference id to the BaseItem.
  42. /// </summary>
  43. public required Guid ItemId { get; set; }
  44. /// <summary>
  45. /// Gets or Sets the referenced Item.
  46. /// </summary>
  47. public required BaseItemEntity Item { get; set; }
  48. }