view models

This commit is contained in:
2025-12-18 13:56:05 +01:00
parent 91adbb9c83
commit 4f99098b32
20 changed files with 24 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ import { CreateLeagueOutputDTO } from '../types/generated/CreateLeagueOutputDTO'
*
* Represents the result of creating a league in a UI-ready format.
*/
export class CreateLeagueViewModel implements CreateLeagueOutputDTO {
export class CreateLeagueViewModel {
leagueId: string;
success: boolean;
@@ -18,4 +18,5 @@ export class CreateLeagueViewModel implements CreateLeagueOutputDTO {
get successMessage(): string {
return this.success ? 'League created successfully!' : 'Failed to create league.';
}
}
}