harden media
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user