init: initial commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {main} from '../models';
|
||||
|
||||
export function AddGame(arg1:main.Game):Promise<main.Game>;
|
||||
|
||||
export function DeleteGame(arg1:string):Promise<void>;
|
||||
|
||||
export function GetActiveGameID():Promise<string>;
|
||||
|
||||
export function GetAllGames():Promise<Array<main.Game>>;
|
||||
|
||||
export function SetActiveGame(arg1:string):Promise<void>;
|
||||
|
||||
export function TestConnection(arg1:main.Game):Promise<main.ConnectionResult>;
|
||||
|
||||
export function UpdateGame(arg1:main.Game):Promise<void>;
|
||||
|
||||
export function XRayConnection(arg1:main.Game):Promise<main.XRayResult>;
|
||||
Executable
+35
@@ -0,0 +1,35 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function AddGame(arg1) {
|
||||
return window['go']['main']['App']['AddGame'](arg1);
|
||||
}
|
||||
|
||||
export function DeleteGame(arg1) {
|
||||
return window['go']['main']['App']['DeleteGame'](arg1);
|
||||
}
|
||||
|
||||
export function GetActiveGameID() {
|
||||
return window['go']['main']['App']['GetActiveGameID']();
|
||||
}
|
||||
|
||||
export function GetAllGames() {
|
||||
return window['go']['main']['App']['GetAllGames']();
|
||||
}
|
||||
|
||||
export function SetActiveGame(arg1) {
|
||||
return window['go']['main']['App']['SetActiveGame'](arg1);
|
||||
}
|
||||
|
||||
export function TestConnection(arg1) {
|
||||
return window['go']['main']['App']['TestConnection'](arg1);
|
||||
}
|
||||
|
||||
export function UpdateGame(arg1) {
|
||||
return window['go']['main']['App']['UpdateGame'](arg1);
|
||||
}
|
||||
|
||||
export function XRayConnection(arg1) {
|
||||
return window['go']['main']['App']['XRayConnection'](arg1);
|
||||
}
|
||||
Executable
+61
@@ -0,0 +1,61 @@
|
||||
export namespace main {
|
||||
|
||||
export class ConnectionResult {
|
||||
success: boolean;
|
||||
message: string;
|
||||
latency: number;
|
||||
status: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ConnectionResult(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.success = source["success"];
|
||||
this.message = source["message"];
|
||||
this.latency = source["latency"];
|
||||
this.status = source["status"];
|
||||
}
|
||||
}
|
||||
export class Game {
|
||||
id: string;
|
||||
name: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
token: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Game(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.name = source["name"];
|
||||
this.icon = source["icon"];
|
||||
this.url = source["url"];
|
||||
this.token = source["token"];
|
||||
}
|
||||
}
|
||||
export class XRayResult {
|
||||
success: boolean;
|
||||
body: string;
|
||||
latency: number;
|
||||
error: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new XRayResult(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.success = source["success"];
|
||||
this.body = source["body"];
|
||||
this.latency = source["latency"];
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user