| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 | 
							- #pragma warning disable CS1591
 
- using System.Text.Json.Serialization;
 
- using MediaBrowser.Model.Drawing;
 
- namespace MediaBrowser.Controller.Entities
 
- {
 
-     public class Photo : BaseItem
 
-     {
 
-         [JsonIgnore]
 
-         public override bool SupportsLocalMetadata => false;
 
-         [JsonIgnore]
 
-         public override string MediaType => Model.Entities.MediaType.Photo;
 
-         [JsonIgnore]
 
-         public override Folder LatestItemsIndexContainer => AlbumEntity;
 
-         [JsonIgnore]
 
-         public PhotoAlbum AlbumEntity
 
-         {
 
-             get
 
-             {
 
-                 var parents = GetParents();
 
-                 foreach (var parent in parents)
 
-                 {
 
-                     var photoAlbum = parent as PhotoAlbum;
 
-                     if (photoAlbum != null)
 
-                     {
 
-                         return photoAlbum;
 
-                     }
 
-                 }
 
-                 return null;
 
-             }
 
-         }
 
-         public override bool CanDownload()
 
-         {
 
-             return true;
 
-         }
 
-         public override double GetDefaultPrimaryImageAspectRatio()
 
-         {
 
-             // REVIEW: @bond
 
-             if (Width != 0 && Height != 0)
 
-             {
 
-                 double width = Width;
 
-                 double height = Height;
 
-                 if (Orientation.HasValue)
 
-                 {
 
-                     switch (Orientation.Value)
 
-                     {
 
-                         case ImageOrientation.LeftBottom:
 
-                         case ImageOrientation.LeftTop:
 
-                         case ImageOrientation.RightBottom:
 
-                         case ImageOrientation.RightTop:
 
-                             var temp = height;
 
-                             height = width;
 
-                             width = temp;
 
-                             break;
 
-                     }
 
-                 }
 
-                 return width / height;
 
-             }
 
-             return base.GetDefaultPrimaryImageAspectRatio();
 
-         }
 
-         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; }
 
-         public double? Latitude { get; set; }
 
-         public double? Longitude { get; set; }
 
-         public double? Altitude { get; set; }
 
-         public int? IsoSpeedRating { get; set; }
 
-     }
 
- }
 
 
  |