mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
25 lines
416 B
TypeScript
25 lines
416 B
TypeScript
export interface PersonDTO {
|
|
id: number;
|
|
name: string;
|
|
count: number;
|
|
readyThumbnail: boolean;
|
|
isFavourite: boolean;
|
|
}
|
|
|
|
|
|
export class Person implements PersonDTO {
|
|
isFavourite: boolean;
|
|
count: number;
|
|
id: number;
|
|
name: string;
|
|
readyThumbnail: boolean;
|
|
|
|
|
|
constructor() {
|
|
}
|
|
|
|
public static getThumbnailUrl(that: PersonDTO): string {
|
|
return '/api/person/' + that.name + '/thumbnail';
|
|
}
|
|
}
|