jellyfin/MediaBrowser.Controller/Entities/ItemImageInfo.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2014-02-07 20:30:41 +00:00
using MediaBrowser.Model.Entities;
using System;
2016-10-25 19:02:04 +00:00
using MediaBrowser.Model.Serialization;
2014-02-07 20:30:41 +00:00
namespace MediaBrowser.Controller.Entities
{
public class ItemImageInfo
{
2015-02-21 07:32:49 +00:00
/// <summary>
/// Gets or sets the path.
/// </summary>
/// <value>The path.</value>
2014-02-07 20:30:41 +00:00
public string Path { get; set; }
2015-02-21 07:32:49 +00:00
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>The type.</value>
2014-02-07 20:30:41 +00:00
public ImageType Type { get; set; }
2015-02-21 07:32:49 +00:00
/// <summary>
/// Gets or sets the date modified.
/// </summary>
/// <value>The date modified.</value>
2014-02-07 20:30:41 +00:00
public DateTime DateModified { get; set; }
2015-10-15 15:51:00 +00:00
2017-10-22 06:22:43 +00:00
public int Width { get; set; }
public int Height { get; set; }
2015-10-15 15:51:00 +00:00
[IgnoreDataMember]
public bool IsLocalFile
{
get
{
2015-10-16 17:06:31 +00:00
if (Path != null)
{
if (Path.StartsWith("http", StringComparison.OrdinalIgnoreCase))
{
return false;
}
}
2015-10-15 15:51:00 +00:00
return true;
}
}
2014-02-07 20:30:41 +00:00
}
}