jellyfin-discord-bot/server/jellyfin/models/SyncPlayPingRequest.ts

66 lines
1.6 KiB
TypeScript

/* 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';
/**
* Class PingRequestDto.
* @export
* @interface SyncPlayPingRequest
*/
export interface SyncPlayPingRequest {
/**
* Gets or sets the ping time.
* @type {number}
* @memberof SyncPlayPingRequest
*/
ping?: number;
}
/**
* Check if a given object implements the SyncPlayPingRequest interface.
*/
export function instanceOfSyncPlayPingRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SyncPlayPingRequestFromJSON(json: any): SyncPlayPingRequest {
return SyncPlayPingRequestFromJSONTyped(json, false);
}
export function SyncPlayPingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlayPingRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'ping': !exists(json, 'Ping') ? undefined : json['Ping'],
};
}
export function SyncPlayPingRequestToJSON(value?: SyncPlayPingRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Ping': value.ping,
};
}