website cleanup
This commit is contained in:
18
apps/website/lib/view-models/AvatarGenerationViewModel.ts
Normal file
18
apps/website/lib/view-models/AvatarGenerationViewModel.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { RequestAvatarGenerationOutputDTO } from '@/lib/types/generated/RequestAvatarGenerationOutputDTO';
|
||||
|
||||
/**
|
||||
* AvatarGenerationViewModel
|
||||
*
|
||||
* View model for avatar generation process
|
||||
*/
|
||||
export class AvatarGenerationViewModel {
|
||||
readonly success: boolean;
|
||||
readonly avatarUrls: string[];
|
||||
readonly errorMessage?: string;
|
||||
|
||||
constructor(dto: RequestAvatarGenerationOutputDTO) {
|
||||
this.success = dto.success;
|
||||
this.avatarUrls = dto.avatarUrls || [];
|
||||
this.errorMessage = dto.errorMessage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user