2014-02-07 13:30:41 -07:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using System;
|
2015-10-15 08:51:00 -07:00
|
|
|
|
using System.Runtime.Serialization;
|
2014-02-07 13:30:41 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
|
|
|
|
public class ItemImageInfo
|
|
|
|
|
{
|
2015-02-21 00:32:49 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The path.</value>
|
2014-02-07 13:30:41 -07:00
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
2015-02-21 00:32:49 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type.</value>
|
2014-02-07 13:30:41 -07:00
|
|
|
|
public ImageType Type { get; set; }
|
|
|
|
|
|
2015-02-21 00:32:49 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the date modified.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The date modified.</value>
|
2014-02-07 13:30:41 -07:00
|
|
|
|
public DateTime DateModified { get; set; }
|
2015-10-15 08:51:00 -07:00
|
|
|
|
|
2015-11-20 21:44:22 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is placeholder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is placeholder; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsPlaceholder { get; set; }
|
|
|
|
|
|
2015-10-15 08:51:00 -07:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public bool IsLocalFile
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2015-10-16 10:06:31 -07:00
|
|
|
|
if (Path != null)
|
|
|
|
|
{
|
|
|
|
|
if (Path.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-15 08:51:00 -07:00
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-02-07 13:30:41 -07:00
|
|
|
|
}
|
|
|
|
|
}
|