ItemImageInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Runtime.Serialization;
  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. [IgnoreDataMember]
  24. public bool IsLocalFile
  25. {
  26. get
  27. {
  28. if (Path != null)
  29. {
  30. if (Path.StartsWith("http", StringComparison.OrdinalIgnoreCase))
  31. {
  32. return false;
  33. }
  34. }
  35. return true;
  36. }
  37. }
  38. }
  39. }