module creation

This commit is contained in:
2025-12-15 21:44:06 +01:00
parent b834f88bbd
commit 7c7267da72
88 changed files with 12119 additions and 4241 deletions

View File

@@ -0,0 +1,28 @@
import type { IImageServicePort } from '@gridpilot/racing/application/ports/IImageServicePort';
import type { ILogger } from '@gridpilot/shared/logging/ILogger';
export class InMemoryImageServiceAdapter implements IImageServicePort {
constructor(private readonly logger: ILogger) {
this.logger.info('InMemoryImageServiceAdapter initialized.');
}
getDriverAvatar(driverId: string): string {
this.logger.debug(`[InMemoryImageServiceAdapter] Getting avatar for driver: ${driverId}`);
return `https://cdn.example.com/avatars/${driverId}.png`; // Mock URL
}
getTeamLogo(teamId: string): string {
this.logger.debug(`[InMemoryImageServiceAdapter] Getting logo for team: ${teamId}`);
return `https://cdn.example.com/logos/team-${teamId}.png`; // Mock URL
}
getLeagueCover(leagueId: string): string {
this.logger.debug(`[InMemoryImageServiceAdapter] Getting cover for league: ${leagueId}`);
return `https://cdn.example.com/covers/league-${leagueId}.png`; // Mock URL
}
getLeagueLogo(leagueId: string): string {
this.logger.debug(`[InMemoryImageServiceAdapter] Getting logo for league: ${leagueId}`);
return `https://cdn.example.com/logos/league-${leagueId}.png`; // Mock URL
}
}