35 lines
730 B
TypeScript
35 lines
730 B
TypeScript
export interface MainSponsorInfo {
|
|
name: string;
|
|
logoUrl: string;
|
|
websiteUrl: string;
|
|
}
|
|
|
|
export class LeagueDetailViewModel {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
ownerId: string;
|
|
ownerName: string;
|
|
mainSponsor: MainSponsorInfo | null;
|
|
isAdmin: boolean;
|
|
|
|
constructor(
|
|
id: string,
|
|
name: string,
|
|
description: string,
|
|
ownerId: string,
|
|
ownerName: string,
|
|
mainSponsor: MainSponsorInfo | null,
|
|
isAdmin: boolean
|
|
) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.description = description;
|
|
this.ownerId = ownerId;
|
|
this.ownerName = ownerName;
|
|
this.mainSponsor = mainSponsor;
|
|
this.isAdmin = isAdmin;
|
|
}
|
|
|
|
// UI-specific getters can be added here if needed
|
|
} |