mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
46 lines
869 B
TypeScript
46 lines
869 B
TypeScript
import {DirectoryDTO} from "./DirectoryDTO";
|
|
|
|
export interface PhotoDTO {
|
|
id: number;
|
|
name: string;
|
|
directory: DirectoryDTO;
|
|
metadata: PhotoMetadata;
|
|
readyThumbnails: Array<number>;
|
|
}
|
|
|
|
export interface PhotoMetadata {
|
|
keywords: Array<string>;
|
|
cameraData: CameraMetadata;
|
|
positionData: PositionMetaData;
|
|
size: ImageSize;
|
|
creationDate: number;
|
|
}
|
|
|
|
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?: number;
|
|
longitude?: number;
|
|
altitude?: string;
|
|
|
|
} |