1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/PersonDTO.ts

25 lines
416 B
TypeScript
Raw Normal View History

2019-02-15 07:25:55 +08:00
export interface PersonDTO {
id: number;
name: string;
count: number;
readyThumbnail: boolean;
2019-03-04 04:17:42 +08:00
isFavourite: boolean;
2019-02-15 07:25:55 +08:00
}
export class Person implements PersonDTO {
2019-03-04 04:17:42 +08:00
isFavourite: boolean;
count: number;
id: number;
name: string;
readyThumbnail: boolean;
constructor() {
}
public static getThumbnailUrl(that: PersonDTO): string {
return '/api/person/' + that.name + '/thumbnail';
}
}