93 lines
2.4 KiB
TypeScript
93 lines
2.4 KiB
TypeScript
/* 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 AddFriend404Response
|
|
*/
|
|
export interface AddFriend404Response {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof AddFriend404Response
|
|
*/
|
|
kind: AddFriend404ResponseKindEnum;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof AddFriend404Response
|
|
*/
|
|
msg: AddFriend404ResponseMsgEnum;
|
|
}
|
|
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const AddFriend404ResponseKindEnum = {
|
|
Failure: 'failure'
|
|
} as const;
|
|
export type AddFriend404ResponseKindEnum = typeof AddFriend404ResponseKindEnum[keyof typeof AddFriend404ResponseKindEnum];
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const AddFriend404ResponseMsgEnum = {
|
|
AddFriendFailureUnknownUser: 'addFriend.failure.unknownUser'
|
|
} as const;
|
|
export type AddFriend404ResponseMsgEnum = typeof AddFriend404ResponseMsgEnum[keyof typeof AddFriend404ResponseMsgEnum];
|
|
|
|
|
|
/**
|
|
* Check if a given object implements the AddFriend404Response interface.
|
|
*/
|
|
export function instanceOfAddFriend404Response(value: object): value is AddFriend404Response {
|
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function AddFriend404ResponseFromJSON(json: any): AddFriend404Response {
|
|
return AddFriend404ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function AddFriend404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddFriend404Response {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'kind': json['kind'],
|
|
'msg': json['msg'],
|
|
};
|
|
}
|
|
|
|
export function AddFriend404ResponseToJSON(json: any): AddFriend404Response {
|
|
return AddFriend404ResponseToJSONTyped(json, false);
|
|
}
|
|
|
|
export function AddFriend404ResponseToJSONTyped(value?: AddFriend404Response | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'kind': value['kind'],
|
|
'msg': value['msg'],
|
|
};
|
|
}
|
|
|