jellyfin-discord-bot/server/jellyfin/models/AuthenticateWithQuickConnec...

67 lines
1.8 KiB
TypeScript
Raw Normal View History

2023-05-04 23:34:53 +02:00
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
* The quick connect request body.
* @export
* @interface AuthenticateWithQuickConnectRequest
*/
export interface AuthenticateWithQuickConnectRequest {
/**
* Gets or sets the quick connect secret.
* @type {string}
* @memberof AuthenticateWithQuickConnectRequest
*/
secret: string;
}
/**
* Check if a given object implements the AuthenticateWithQuickConnectRequest interface.
*/
export function instanceOfAuthenticateWithQuickConnectRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "secret" in value;
return isInstance;
}
export function AuthenticateWithQuickConnectRequestFromJSON(json: any): AuthenticateWithQuickConnectRequest {
return AuthenticateWithQuickConnectRequestFromJSONTyped(json, false);
}
export function AuthenticateWithQuickConnectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWithQuickConnectRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'secret': json['Secret'],
};
}
export function AuthenticateWithQuickConnectRequestToJSON(value?: AuthenticateWithQuickConnectRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Secret': value.secret,
};
}