ItemImageInfo.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Text.Json.Serialization;
  4. using MediaBrowser.Model.Entities;
  5. namespace MediaBrowser.Controller.Entities
  6. {
  7. public class ItemImageInfo
  8. {
  9. /// <summary>
  10. /// Gets or sets the path.
  11. /// </summary>
  12. /// <value>The path.</value>
  13. public required string Path { get; set; }
  14. /// <summary>
  15. /// Gets or sets the type.
  16. /// </summary>
  17. /// <value>The type.</value>
  18. public ImageType Type { get; set; }
  19. /// <summary>
  20. /// Gets or sets the date modified.
  21. /// </summary>
  22. /// <value>The date modified.</value>
  23. public DateTime DateModified { get; set; }
  24. public int Width { get; set; }
  25. public int Height { get; set; }
  26. /// <summary>
  27. /// Gets or sets the blurhash.
  28. /// </summary>
  29. /// <value>The blurhash.</value>
  30. public string? BlurHash { get; set; }
  31. [JsonIgnore]
  32. public bool IsLocalFile => !Path.StartsWith("http", StringComparison.OrdinalIgnoreCase);
  33. }
  34. }