2016-04-27 22:37:07 +02:00
|
|
|
import {Directory} from "./Directory";
|
2016-05-12 11:00:46 +02:00
|
|
|
|
2016-04-22 13:23:44 +02:00
|
|
|
export class Photo {
|
2016-05-12 18:24:26 +02:00
|
|
|
constructor(public id?:number,
|
|
|
|
public name?:string,
|
|
|
|
public directory?:Directory,
|
|
|
|
public metadata?:PhotoMetadata) {
|
2016-04-22 13:23:44 +02:00
|
|
|
}
|
2016-05-12 18:24:26 +02:00
|
|
|
}
|
2016-04-27 22:37:07 +02:00
|
|
|
|
2016-05-12 18:24:26 +02:00
|
|
|
export class PhotoMetadata {
|
|
|
|
constructor(public keywords?:Array<string>,
|
|
|
|
public cameraData?:CameraMetadata,
|
|
|
|
public positionData?:PositionMetaData,
|
|
|
|
public size?:ImageSize,
|
|
|
|
public creationDate?:Date) {
|
2016-04-27 22:37:07 +02:00
|
|
|
}
|
2016-05-12 18:24:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2016-05-09 17:04:56 +02:00
|
|
|
|
2016-03-20 10:49:49 +01:00
|
|
|
}
|