2
0

ItemImageInfo.cs 1.0 KB

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