// Note: No generated DTO available for Avatar yet
interface AvatarDTO {
  driverId: string;
  avatarUrl?: string;
}

/**
 * Avatar View Model
 *
 * Represents avatar information for the UI layer
 */
export class AvatarViewModel {
  driverId: string;
  avatarUrl?: string;

  constructor(dto: AvatarDTO) {
    this.driverId = dto.driverId;
    if (dto.avatarUrl !== undefined) {
      this.avatarUrl = dto.avatarUrl;
    }
  }

  /** UI-specific: Whether the driver has an avatar */
  get hasAvatar(): boolean {
    return !!this.avatarUrl;
  }
}