import type { DriversLeaderboardDTO } from '@/lib/types/generated/DriversLeaderboardDTO';
import { DriverLeaderboardViewModel } from '@/lib/view-models/DriverLeaderboardViewModel';

/**
 * DriversViewModelBuilder
 * 
 * Transforms DriversLeaderboardDTO into DriverLeaderboardViewModel.
 * Deterministic, side-effect free, no HTTP calls.
 */
export class DriversViewModelBuilder {
  static build(apiDto: DriversLeaderboardDTO): DriverLeaderboardViewModel {
    return new DriverLeaderboardViewModel({
      drivers: apiDto.drivers,
    });
  }
}