Files
wails-epic/frontend/wailsjs/go/models.ts

70 lines
1.8 KiB
TypeScript

export namespace model {
export class CaptureStatus {
is_capturing: boolean;
status: string;
error?: string;
static createFrom(source: any = {}) {
return new CaptureStatus(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.is_capturing = source["is_capturing"];
this.status = source["status"];
this.error = source["error"];
}
}
export class NetworkInterface {
name: string;
description: string;
addresses: string[];
is_loopback: boolean;
static createFrom(source: any = {}) {
return new NetworkInterface(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.description = source["description"];
this.addresses = source["addresses"];
this.is_loopback = source["is_loopback"];
}
}
export class ParsedResult {
items: any[];
heroes: any[];
static createFrom(source: any = {}) {
return new ParsedResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.items = source["items"];
this.heroes = source["heroes"];
}
}
export class ParsedSession {
id: number;
session_name: string;
created_at: number;
static createFrom(source: any = {}) {
return new ParsedSession(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.session_name = source["session_name"];
this.created_at = source["created_at"];
}
}
}