2016-03-27 14:11:27 -07:00
|
|
|
|
using MediaBrowser.Model.Drawing;
|
2014-08-27 18:27:46 -07:00
|
|
|
|
using System.Collections.Generic;
|
2014-08-28 21:06:30 -07:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
2014-02-12 22:11:54 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
2016-06-02 10:43:29 -07:00
|
|
|
|
public class Photo : BaseItem, IHasTaglines
|
2014-02-12 22:11:54 -07:00
|
|
|
|
{
|
|
|
|
|
public List<string> Taglines { get; set; }
|
|
|
|
|
|
|
|
|
|
public Photo()
|
|
|
|
|
{
|
|
|
|
|
Taglines = new List<string>();
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-30 07:26:29 -07:00
|
|
|
|
[IgnoreDataMember]
|
2014-08-28 21:06:30 -07:00
|
|
|
|
public override bool SupportsLocalMetadata
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-30 07:26:29 -07:00
|
|
|
|
[IgnoreDataMember]
|
2014-02-12 22:11:54 -07:00
|
|
|
|
public override string MediaType
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Model.Entities.MediaType.Photo;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-08-27 18:27:46 -07:00
|
|
|
|
|
2014-08-28 21:06:30 -07:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override Folder LatestItemsIndexContainer
|
2014-08-30 07:26:29 -07:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Album;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public PhotoAlbum Album
|
2014-08-28 21:06:30 -07:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2015-11-11 07:56:31 -07:00
|
|
|
|
return GetParents().OfType<PhotoAlbum>().FirstOrDefault();
|
2014-08-28 21:06:30 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-24 09:46:17 -07:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool EnableForceSaveOnDateModifiedChange
|
|
|
|
|
{
|
|
|
|
|
get { return true; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-10 22:37:07 -07:00
|
|
|
|
public override bool CanDownload()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-27 18:27:46 -07:00
|
|
|
|
public int? Width { get; set; }
|
|
|
|
|
public int? Height { get; set; }
|
2014-08-28 17:49:25 -07:00
|
|
|
|
public string CameraMake { get; set; }
|
2014-08-27 18:27:46 -07:00
|
|
|
|
public string CameraModel { get; set; }
|
|
|
|
|
public string Software { get; set; }
|
|
|
|
|
public double? ExposureTime { get; set; }
|
|
|
|
|
public double? FocalLength { get; set; }
|
|
|
|
|
public ImageOrientation? Orientation { get; set; }
|
|
|
|
|
public double? Aperture { get; set; }
|
|
|
|
|
public double? ShutterSpeed { get; set; }
|
2014-08-28 21:06:30 -07:00
|
|
|
|
|
2014-08-30 07:26:29 -07:00
|
|
|
|
public double? Latitude { get; set; }
|
|
|
|
|
public double? Longitude { get; set; }
|
|
|
|
|
public double? Altitude { get; set; }
|
|
|
|
|
public int? IsoSpeedRating { get; set; }
|
2014-02-12 22:11:54 -07:00
|
|
|
|
}
|
|
|
|
|
}
|