mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
14 lines
557 B
TypeScript
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);
|
|
}*/
|
|
} |