1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/common/entities/PersonDTO.ts

24 lines
390 B
TypeScript
Raw Normal View History

2019-02-14 18:25:55 -05:00
export interface PersonDTO {
id: number;
name: string;
count: number;
2019-03-03 21:36:20 +01:00
readyThumbnail?: boolean;
2019-03-03 21:17:42 +01:00
isFavourite: boolean;
2019-02-14 18:25:55 -05:00
}
export class Person implements PersonDTO {
2019-03-03 21:17:42 +01:00
isFavourite: boolean;
count: number;
id: number;
name: string;
constructor() {
}
public static getThumbnailUrl(that: PersonDTO): string {
return '/api/person/' + that.name + '/thumbnail';
}
}