added matches

This commit is contained in:
2025-02-19 14:03:57 +01:00
parent 8b5bb78764
commit fccdcc176e
11 changed files with 224 additions and 50 deletions

View File

@ -2,6 +2,8 @@
// This file is automatically generated. DO NOT EDIT
import {model} from '../models';
export function CreateStage(arg1:number):Promise<void>;
export function DeleteParticipat(arg1:model.Participant):Promise<void>;
export function ExportTournament(arg1:model.Tournament):Promise<void>;
@ -20,6 +22,8 @@ export function GetTournaments():Promise<Array<model.Tournament>>;
export function RemoveParticipantFromTournament(arg1:model.Participant,arg2:model.Tournament):Promise<void>;
export function SaveMatch(arg1:model.Match):Promise<void>;
export function SaveParticipant(arg1:model.Participant):Promise<void>;
export function SaveTournament(arg1:model.Tournament):Promise<void>;

View File

@ -2,6 +2,10 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function CreateStage(arg1) {
return window['go']['main']['App']['CreateStage'](arg1);
}
export function DeleteParticipat(arg1) {
return window['go']['main']['App']['DeleteParticipat'](arg1);
}
@ -38,6 +42,10 @@ export function RemoveParticipantFromTournament(arg1, arg2) {
return window['go']['main']['App']['RemoveParticipantFromTournament'](arg1, arg2);
}
export function SaveMatch(arg1) {
return window['go']['main']['App']['SaveMatch'](arg1);
}
export function SaveParticipant(arg1) {
return window['go']['main']['App']['SaveParticipant'](arg1);
}

View File

@ -54,8 +54,8 @@ export namespace model {
Game: Game;
Size: number;
TournamentState: number;
WinnierParticipantID: number;
WinnierParticipant: Participant;
WinnerParticipantID: number;
WinnerParticipant: Participant;
Participants: Participant[];
Matches: Match[];
@ -74,8 +74,8 @@ export namespace model {
this.Game = this.convertValues(source["Game"], Game);
this.Size = source["Size"];
this.TournamentState = source["TournamentState"];
this.WinnierParticipantID = source["WinnierParticipantID"];
this.WinnierParticipant = this.convertValues(source["WinnierParticipant"], Participant);
this.WinnerParticipantID = source["WinnerParticipantID"];
this.WinnerParticipant = this.convertValues(source["WinnerParticipant"], Participant);
this.Participants = this.convertValues(source["Participants"], Participant);
this.Matches = this.convertValues(source["Matches"], Match);
}
@ -160,8 +160,8 @@ export namespace model {
Participant1: Participant;
Participant2ID: number;
Participant2: Participant;
WinnierParticipantID: number;
WinnierParticipant: Participant;
WinnerParticipantID: number;
WinnerParticipant: Participant;
static createFrom(source: any = {}) {
return new Match(source);
@ -180,8 +180,8 @@ export namespace model {
this.Participant1 = this.convertValues(source["Participant1"], Participant);
this.Participant2ID = source["Participant2ID"];
this.Participant2 = this.convertValues(source["Participant2"], Participant);
this.WinnierParticipantID = source["WinnierParticipantID"];
this.WinnierParticipant = this.convertValues(source["WinnierParticipant"], Participant);
this.WinnerParticipantID = source["WinnerParticipantID"];
this.WinnerParticipant = this.convertValues(source["WinnerParticipant"], Participant);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {