2016-12-27 20:55:51 +01:00
|
|
|
import {DirectoryDTO} from "./DirectoryDTO";
|
|
|
|
|
|
|
|
export interface PhotoDTO {
|
2017-06-10 22:32:56 +02:00
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
directory: DirectoryDTO;
|
|
|
|
metadata: PhotoMetadata;
|
|
|
|
readyThumbnails: Array<number>;
|
|
|
|
readyIcon: boolean;
|
2016-12-27 20:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface PhotoMetadata {
|
2017-06-10 22:32:56 +02:00
|
|
|
keywords: Array<string>;
|
|
|
|
cameraData: CameraMetadata;
|
|
|
|
positionData: PositionMetaData;
|
|
|
|
size: ImageSize;
|
|
|
|
creationDate: number;
|
2017-07-09 22:00:42 +02:00
|
|
|
fileSize: number;
|
2016-12-27 20:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ImageSize {
|
2017-06-10 22:32:56 +02:00
|
|
|
width: number;
|
|
|
|
height: number;
|
2016-12-27 20:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CameraMetadata {
|
2017-06-10 22:32:56 +02:00
|
|
|
ISO?: number;
|
|
|
|
model?: string;
|
2017-07-10 22:00:22 +02:00
|
|
|
make?: string;
|
2017-06-10 22:32:56 +02:00
|
|
|
fStop?: number;
|
|
|
|
exposure?: number;
|
|
|
|
focalLength?: number;
|
|
|
|
lens?: string;
|
2016-12-27 20:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface PositionMetaData {
|
2017-06-10 22:32:56 +02:00
|
|
|
GPSData?: GPSMetadata;
|
|
|
|
country?: string;
|
|
|
|
state?: string;
|
|
|
|
city?: string;
|
2016-12-27 20:55:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface GPSMetadata {
|
2017-06-10 22:32:56 +02:00
|
|
|
latitude?: number;
|
|
|
|
longitude?: number;
|
|
|
|
altitude?: string;
|
2016-12-27 20:55:51 +01:00
|
|
|
|
2017-06-10 22:32:56 +02:00
|
|
|
}
|