1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/Photo.ts
2016-06-17 00:05:31 +02:00

48 lines
1.0 KiB
TypeScript

import {Directory} from "./Directory";
export class Photo {
constructor(public id?:number,
public name?:string,
public directory?:Directory,
public metadata?:PhotoMetadata,
public readyThumbnails:Array<number> = []) {
}
}
export class PhotoMetadata {
constructor(public keywords?:Array<string>,
public cameraData?:CameraMetadata,
public positionData?:PositionMetaData,
public size?:ImageSize,
public creationDate?:Date) {
}
}
export interface ImageSize {
width:number;
height:number;
}
export interface CameraMetadata {
ISO?:number;
model?:string;
maker?:string;
fStop?:number;
exposure?:number;
focalLength?:number;
lens?:string;
}
export interface PositionMetaData {
GPSData?:GPSMetadata;
country?:string;
state?:string;
city?:string;
}
export interface GPSMetadata {
latitude?:string;
longitude?:string;
altitude?:string;
}