harden media

This commit is contained in:
2025-12-31 15:39:28 +01:00
parent 92226800df
commit 8260bf7baf
413 changed files with 8361 additions and 1544 deletions

View File

@@ -5,6 +5,7 @@ interface TeamCardDTO {
name: string;
tag: string;
description: string;
logoUrl?: string;
}
/**
@@ -16,11 +17,13 @@ export class TeamCardViewModel {
readonly name: string;
readonly tag: string;
readonly description: string;
readonly logoUrl?: string;
constructor(dto: TeamCardDTO | TeamListItemDTO) {
this.id = dto.id;
this.name = dto.name;
this.tag = dto.tag;
this.description = dto.description;
this.logoUrl = 'logoUrl' in dto ? dto.logoUrl : undefined;
}
}