using System; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Serialization; namespace MediaBrowser.Controller.Entities { public class ItemImageInfo { /// /// Gets or sets the path. /// /// The path. public string Path { get; set; } /// /// Gets or sets the type. /// /// The type. public ImageType Type { get; set; } /// /// Gets or sets the date modified. /// /// The date modified. public DateTime DateModified { get; set; } public int Width { get; set; } public int Height { get; set; } [IgnoreDataMember] public bool IsLocalFile => Path == null || !Path.StartsWith("http", StringComparison.OrdinalIgnoreCase); } }