jellyfin/MediaBrowser.Controller/Entities/Photo.cs

76 lines
1.8 KiB
C#
Raw Normal View History

2016-03-27 21:11:27 +00:00
using MediaBrowser.Model.Drawing;
using System.Collections.Generic;
2014-08-29 04:06:30 +00:00
using System.Linq;
using System.Runtime.Serialization;
2014-02-13 05:11:54 +00:00
namespace MediaBrowser.Controller.Entities
{
public class Photo : BaseItem, IHasTags, IHasTaglines
{
public List<string> Taglines { get; set; }
public Photo()
{
Taglines = new List<string>();
}
2014-08-30 14:26:29 +00:00
[IgnoreDataMember]
2014-08-29 04:06:30 +00:00
public override bool SupportsLocalMetadata
{
get
{
return false;
}
}
2014-08-30 14:26:29 +00:00
[IgnoreDataMember]
2014-02-13 05:11:54 +00:00
public override string MediaType
{
get
{
return Model.Entities.MediaType.Photo;
}
}
2014-08-29 04:06:30 +00:00
[IgnoreDataMember]
public override Folder LatestItemsIndexContainer
2014-08-30 14:26:29 +00:00
{
get
{
return Album;
}
}
[IgnoreDataMember]
public PhotoAlbum Album
2014-08-29 04:06:30 +00:00
{
get
{
2015-11-11 14:56:31 +00:00
return GetParents().OfType<PhotoAlbum>().FirstOrDefault();
2014-08-29 04:06:30 +00:00
}
}
2016-02-11 05:37:07 +00:00
public override bool CanDownload()
{
return true;
}
public int? Width { get; set; }
public int? Height { get; set; }
public string CameraMake { get; set; }
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-29 04:06:30 +00:00
2014-08-30 14:26:29 +00:00
public double? Latitude { get; set; }
public double? Longitude { get; set; }
public double? Altitude { get; set; }
public int? IsoSpeedRating { get; set; }
2014-02-13 05:11:54 +00:00
}
}