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
Patrik J. Braun 2ea0ea42e3 adding random photo url generator
upgrading packages
2018-10-22 00:24:17 +02:00

23 lines
678 B
TypeScript

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;
}
export interface IGalleryManager {
listDirectory(relativeDirectoryName: string,
knownLastModified?: number,
knownLastScanned?: number): Promise<DirectoryDTO>;
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
}