generated from dave/wails-template
Implement picking game dir
This commit is contained in:
@@ -78,6 +78,20 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class BoolResponse {
|
||||
data: boolean;
|
||||
error?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new BoolResponse(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.data = source["data"];
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
export class StringResponse {
|
||||
data: string;
|
||||
error?: string;
|
||||
|
||||
Reference in New Issue
Block a user