feat(pong): added history api to get list of games
This commit is contained in:
parent
321f636672
commit
40dea32048
14 changed files with 1089 additions and 74 deletions
93
frontend/src/api/generated/models/PongHistory404Response.ts
Normal file
93
frontend/src/api/generated/models/PongHistory404Response.ts
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* @fastify/swagger
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 9.6.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PongHistory404Response
|
||||
*/
|
||||
export interface PongHistory404Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PongHistory404Response
|
||||
*/
|
||||
kind: PongHistory404ResponseKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PongHistory404Response
|
||||
*/
|
||||
msg: PongHistory404ResponseMsgEnum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const PongHistory404ResponseKindEnum = {
|
||||
Failure: 'failure'
|
||||
} as const;
|
||||
export type PongHistory404ResponseKindEnum = typeof PongHistory404ResponseKindEnum[keyof typeof PongHistory404ResponseKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const PongHistory404ResponseMsgEnum = {
|
||||
PonghistoryFailureNotfound: 'ponghistory.failure.notfound'
|
||||
} as const;
|
||||
export type PongHistory404ResponseMsgEnum = typeof PongHistory404ResponseMsgEnum[keyof typeof PongHistory404ResponseMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PongHistory404Response interface.
|
||||
*/
|
||||
export function instanceOfPongHistory404Response(value: object): value is PongHistory404Response {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PongHistory404ResponseFromJSON(json: any): PongHistory404Response {
|
||||
return PongHistory404ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PongHistory404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PongHistory404Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PongHistory404ResponseToJSON(json: any): PongHistory404Response {
|
||||
return PongHistory404ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PongHistory404ResponseToJSONTyped(value?: PongHistory404Response | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'kind': value['kind'],
|
||||
'msg': value['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue