PlayerManagement/Ui/src/app/models/player.model.ts
Tomasi - Developing bafe2cde5a v 0.7.0
2025-02-06 10:44:55 +01:00

58 lines
1.3 KiB
TypeScript

import {NoteModel} from "./note.model";
import {AdmonitionModel} from "./admonition.model";
export interface PlayerModel {
id: string;
playerName: string;
level: number;
rankName: string;
rankId: string;
allianceId: string;
createdOn: Date;
createdBy: string;
modifiedOn?: Date;
modifiedBy?: string;
notesCount: number;
admonitionsCount: number;
isDismissed: boolean;
dismissedAt?: Date;
dismissalReason?: string;
}
export interface PlayerMvpModel {
name: string;
allianceRank: string;
duelPointsLast3Weeks: number;
marshalParticipationCount: number;
desertStormParticipationCount: number;
hasParticipatedInOldestDuel: boolean;
mvpScore: number;
}
export interface CreatePlayerModel {
playerName: string;
rankId: string;
allianceId: string;
level: number;
}
export interface UpdatePlayerModel {
id: string;
playerName: string;
rankId: string;
level: number;
}
export interface DismissPlayerInformationModel {
id: string;
playerName: string;
dismissedAt: Date;
dismissalReason: string;
notes: NoteModel[],
admonitions: AdmonitionModel[],
desertStormParticipants: {eventDate: Date, participated: boolean}[],
marshalGuardParticipants: {eventDate: Date, participated: boolean}[],
vsDuelParticipants: {eventDate: Date, weeklyPoints: number}[],
}