18 lines
762 B
TypeScript
18 lines
762 B
TypeScript
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
import type { LeagueAdminRosterJoinRequestViewData } from "../view-data/LeagueAdminRosterJoinRequestViewData";
|
|
|
|
export class LeagueAdminRosterJoinRequestViewModel extends ViewModel {
|
|
private readonly data: LeagueAdminRosterJoinRequestViewData;
|
|
|
|
constructor(data: LeagueAdminRosterJoinRequestViewData) {
|
|
super();
|
|
this.data = data;
|
|
}
|
|
|
|
get id(): string { return this.data.id; }
|
|
get leagueId(): string { return this.data.leagueId; }
|
|
get driverId(): string { return this.data.driverId; }
|
|
get driverName(): string { return this.data.driverName; }
|
|
get requestedAtIso(): string { return this.data.requestedAtIso; }
|
|
get message(): string | undefined { return this.data.message; }
|
|
} |