/**
 * 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;
  }
}