TikTok-mGBA-Emulator/node/source/classes/gba-api/Console.ts

75 lines
1.9 KiB
TypeScript

/* eslint-disable */
/* tslint:disable */
/*
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
import { HttpClient, RequestParams } from "./http-client";
export class Console<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
/**
* @description Presents textual information to the user via a console.
*
* @tags Console
* @name ErrorCreate
* @summary Print an error to the console.
* @request POST:/console/error
*/
errorCreate = (
query: {
message: string;
},
params: RequestParams = {},
) =>
this.request<void, any>({
path: `/console/error`,
method: "POST",
query: query,
...params,
});
/**
* @description Presents textual information to the user via a console.
*
* @tags Console
* @name PostConsole
* @summary Print a log to the console.
* @request POST:/console/log
*/
postConsole = (
query: {
message: string;
},
params: RequestParams = {},
) =>
this.request<void, any>({
path: `/console/log`,
method: "POST",
query: query,
...params,
});
/**
* @description Presents textual information to the user via a console.
*
* @tags Console
* @name WarnCreate
* @summary Print a warning to the console.
* @request POST:/console/warn
*/
warnCreate = (
query: {
message: string;
},
params: RequestParams = {},
) =>
this.request<void, any>({
path: `/console/warn`,
method: "POST",
query: query,
...params,
});
}