2016-04-28 04:37:07 +08:00
|
|
|
import {Directory} from "./Directory";
|
2016-05-12 17:00:46 +08:00
|
|
|
|
2016-04-22 19:23:44 +08:00
|
|
|
export class Photo {
|
2016-05-10 03:43:52 +08:00
|
|
|
constructor(public id?:number, public name?:string, public directory?:Directory, public width?:number, public height?:number) {
|
2016-04-22 19:23:44 +08:00
|
|
|
}
|
2016-04-28 04:37:07 +08:00
|
|
|
|
2016-05-12 17:00:46 +08:00
|
|
|
/*public static getThumbnailPath(photo:Photo) {
|
2016-05-10 03:43:52 +08:00
|
|
|
return Utils.concatUrls("/api/gallery/content/", photo.directory.path, photo.directory.name, photo.name, "thumbnail");
|
2016-04-28 04:37:07 +08:00
|
|
|
}
|
2016-05-09 23:04:56 +08:00
|
|
|
|
2016-05-10 03:43:52 +08:00
|
|
|
public static getPhotoPath(photo:Photo) {
|
|
|
|
return Utils.concatUrls("/api/gallery/content/", photo.directory.path, photo.directory.name, photo.name);
|
2016-05-12 17:00:46 +08:00
|
|
|
}*/
|
2016-03-20 17:49:49 +08:00
|
|
|
}
|