website cleanup
This commit is contained in:
24
apps/website/lib/view-models/LeaguePageDetailViewModel.ts
Normal file
24
apps/website/lib/view-models/LeaguePageDetailViewModel.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* League Page Detail View Model
|
||||
*
|
||||
* View model for league page details.
|
||||
*/
|
||||
export class LeaguePageDetailViewModel {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
ownerId: string;
|
||||
ownerName: string;
|
||||
isAdmin: boolean;
|
||||
mainSponsor: { name: string; logoUrl: string; websiteUrl: string } | null;
|
||||
|
||||
constructor(data: any) {
|
||||
this.id = data.id;
|
||||
this.name = data.name;
|
||||
this.description = data.description;
|
||||
this.ownerId = data.ownerId;
|
||||
this.ownerName = data.ownerName;
|
||||
this.isAdmin = data.isAdmin;
|
||||
this.mainSponsor = data.mainSponsor;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user