19 lines
480 B
TypeScript
19 lines
480 B
TypeScript
import { CompleteOnboardingOutputDTO } from '../types/generated/CompleteOnboardingOutputDTO';
|
|
|
|
/**
|
|
* Complete onboarding view model
|
|
* UI representation of onboarding completion result
|
|
*/
|
|
export class CompleteOnboardingViewModel {
|
|
success: boolean;
|
|
driverId?: string;
|
|
|
|
constructor(dto: CompleteOnboardingOutputDTO) {
|
|
this.success = dto.success;
|
|
}
|
|
|
|
/** UI-specific: Whether onboarding was successful */
|
|
get isSuccessful(): boolean {
|
|
return this.success;
|
|
}
|
|
} |