2018-03-30 15:30:30 -04:00
|
|
|
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
2018-10-22 00:24:17 +02: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-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,
|
2017-07-20 23:00:49 +02:00
|
|
|
knownLastScanned?: number): Promise<DirectoryDTO>;
|
2017-07-25 21:09:37 +02:00
|
|
|
|
2018-10-22 00:24:17 +02:00
|
|
|
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
|
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
}
|