1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/Photo.ts
2016-05-12 11:01:08 +02:00

14 lines
557 B
TypeScript

import {Directory} from "./Directory";
export class Photo {
constructor(public id?:number, public name?:string, public directory?:Directory, public width?:number, public height?:number) {
}
/*public static getThumbnailPath(photo:Photo) {
return Utils.concatUrls("/api/gallery/content/", photo.directory.path, photo.directory.name, photo.name, "thumbnail");
}
public static getPhotoPath(photo:Photo) {
return Utils.concatUrls("/api/gallery/content/", photo.directory.path, photo.directory.name, photo.name);
}*/
}