1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/backend/model/interfaces/IGalleryManager.ts

23 lines
678 B
TypeScript
Raw Normal View History

2018-03-30 15:30:30 -04:00
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
import {PhotoDTO} from '../../../common/entities/PhotoDTO';
import {OrientationType, RandomQueryDTO} from '../../../common/entities/RandomQueryDTO';
export interface RandomQuery {
directory?: string;
recursive?: boolean;
orientation?: OrientationType;
fromDate?: Date;
toDate?: Date;
minResolution?: number;
maxResolution?: number;
}
2017-07-19 20:47:09 +02:00
2016-04-22 13:23:44 +02:00
export interface IGalleryManager {
2017-07-19 20:47:09 +02:00
listDirectory(relativeDirectoryName: string,
knownLastModified?: number,
knownLastScanned?: number): Promise<DirectoryDTO>;
2017-07-25 21:09:37 +02:00
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
2017-07-03 19:17:49 +02:00
}