view data fixes
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import type { LeagueAdminRosterJoinRequestViewData } from "../view-data/LeagueAdminRosterJoinRequestViewData";
|
||||
|
||||
export interface LeagueAdminRosterJoinRequestViewModel extends ViewModel {
|
||||
id: string;
|
||||
leagueId: string;
|
||||
driverId: string;
|
||||
driverName: string;
|
||||
requestedAtIso: string;
|
||||
message?: string;
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user