mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-02-05 13:25:08 +02:00
23 lines
678 B
TypeScript
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>;
|
|
|
|
}
|