2018-03-31 03:30:30 +08:00
|
|
|
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
2018-10-22 06:24:17 +08:00
|
|
|
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,
|
2017-07-21 05:00:49 +08:00
|
|
|
knownLastScanned?: number): Promise<DirectoryDTO>;
|
2017-07-26 03:09:37 +08:00
|
|
|
|
2018-10-22 06:24:17 +08:00
|
|
|
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
|
|
|
|
|
2017-07-04 01:17:49 +08:00
|
|
|
}
|