/* 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'; import type { ClientCapabilitiesDeviceProfile } from './ClientCapabilitiesDeviceProfile'; import { ClientCapabilitiesDeviceProfileFromJSON, ClientCapabilitiesDeviceProfileFromJSONTyped, ClientCapabilitiesDeviceProfileToJSON, } from './ClientCapabilitiesDeviceProfile'; import type { GeneralCommandType } from './GeneralCommandType'; import { GeneralCommandTypeFromJSON, GeneralCommandTypeFromJSONTyped, GeneralCommandTypeToJSON, } from './GeneralCommandType'; /** * Gets or sets the capabilities. * @export * @interface DeviceInfoCapabilities */ export interface DeviceInfoCapabilities { /** * * @type {Array} * @memberof DeviceInfoCapabilities */ playableMediaTypes?: Array | null; /** * * @type {Array} * @memberof DeviceInfoCapabilities */ supportedCommands?: Array | null; /** * * @type {boolean} * @memberof DeviceInfoCapabilities */ supportsMediaControl?: boolean; /** * * @type {boolean} * @memberof DeviceInfoCapabilities */ supportsContentUploading?: boolean; /** * * @type {string} * @memberof DeviceInfoCapabilities */ messageCallbackUrl?: string | null; /** * * @type {boolean} * @memberof DeviceInfoCapabilities */ supportsPersistentIdentifier?: boolean; /** * * @type {boolean} * @memberof DeviceInfoCapabilities */ supportsSync?: boolean; /** * * @type {ClientCapabilitiesDeviceProfile} * @memberof DeviceInfoCapabilities */ deviceProfile?: ClientCapabilitiesDeviceProfile | null; /** * * @type {string} * @memberof DeviceInfoCapabilities */ appStoreUrl?: string | null; /** * * @type {string} * @memberof DeviceInfoCapabilities */ iconUrl?: string | null; } /** * Check if a given object implements the DeviceInfoCapabilities interface. */ export function instanceOfDeviceInfoCapabilities(value: object): boolean { let isInstance = true; return isInstance; } export function DeviceInfoCapabilitiesFromJSON(json: any): DeviceInfoCapabilities { return DeviceInfoCapabilitiesFromJSONTyped(json, false); } export function DeviceInfoCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceInfoCapabilities { if ((json === undefined) || (json === null)) { return json; } return { 'playableMediaTypes': !exists(json, 'PlayableMediaTypes') ? undefined : json['PlayableMediaTypes'], 'supportedCommands': !exists(json, 'SupportedCommands') ? undefined : (json['SupportedCommands'] === null ? null : (json['SupportedCommands'] as Array).map(GeneralCommandTypeFromJSON)), 'supportsMediaControl': !exists(json, 'SupportsMediaControl') ? undefined : json['SupportsMediaControl'], 'supportsContentUploading': !exists(json, 'SupportsContentUploading') ? undefined : json['SupportsContentUploading'], 'messageCallbackUrl': !exists(json, 'MessageCallbackUrl') ? undefined : json['MessageCallbackUrl'], 'supportsPersistentIdentifier': !exists(json, 'SupportsPersistentIdentifier') ? undefined : json['SupportsPersistentIdentifier'], 'supportsSync': !exists(json, 'SupportsSync') ? undefined : json['SupportsSync'], 'deviceProfile': !exists(json, 'DeviceProfile') ? undefined : ClientCapabilitiesDeviceProfileFromJSON(json['DeviceProfile']), 'appStoreUrl': !exists(json, 'AppStoreUrl') ? undefined : json['AppStoreUrl'], 'iconUrl': !exists(json, 'IconUrl') ? undefined : json['IconUrl'], }; } export function DeviceInfoCapabilitiesToJSON(value?: DeviceInfoCapabilities | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'PlayableMediaTypes': value.playableMediaTypes, 'SupportedCommands': value.supportedCommands === undefined ? undefined : (value.supportedCommands === null ? null : (value.supportedCommands as Array).map(GeneralCommandTypeToJSON)), 'SupportsMediaControl': value.supportsMediaControl, 'SupportsContentUploading': value.supportsContentUploading, 'MessageCallbackUrl': value.messageCallbackUrl, 'SupportsPersistentIdentifier': value.supportsPersistentIdentifier, 'SupportsSync': value.supportsSync, 'DeviceProfile': ClientCapabilitiesDeviceProfileToJSON(value.deviceProfile), 'AppStoreUrl': value.appStoreUrl, 'IconUrl': value.iconUrl, }; }