1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/model/interfaces/IGalleryManager.ts

23 lines
678 B
TypeScript
Raw Normal View History

2018-03-31 03:30:30 +08: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-20 02:47:09 +08:00
2016-04-22 19:23:44 +08:00
export interface IGalleryManager {
2017-07-20 02:47:09 +08:00
listDirectory(relativeDirectoryName: string,
knownLastModified?: number,
knownLastScanned?: number): Promise<DirectoryDTO>;
2017-07-26 03:09:37 +08:00
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
2017-07-04 01:17:49 +08:00
}