/* 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 { SubtitlePlaybackMode } from './SubtitlePlaybackMode'; import { SubtitlePlaybackModeFromJSON, SubtitlePlaybackModeFromJSONTyped, SubtitlePlaybackModeToJSON, } from './SubtitlePlaybackMode'; /** * Class UserConfiguration. * @export * @interface UpdateUserConfigurationRequest */ export interface UpdateUserConfigurationRequest { /** * Gets or sets the audio language preference. * @type {string} * @memberof UpdateUserConfigurationRequest */ audioLanguagePreference?: string | null; /** * Gets or sets a value indicating whether [play default audio track]. * @type {boolean} * @memberof UpdateUserConfigurationRequest */ playDefaultAudioTrack?: boolean; /** * Gets or sets the subtitle language preference. * @type {string} * @memberof UpdateUserConfigurationRequest */ subtitleLanguagePreference?: string | null; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ displayMissingEpisodes?: boolean; /** * * @type {Array} * @memberof UpdateUserConfigurationRequest */ groupedFolders?: Array; /** * * @type {SubtitlePlaybackMode} * @memberof UpdateUserConfigurationRequest */ subtitleMode?: SubtitlePlaybackMode; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ displayCollectionsView?: boolean; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ enableLocalPassword?: boolean; /** * * @type {Array} * @memberof UpdateUserConfigurationRequest */ orderedViews?: Array; /** * * @type {Array} * @memberof UpdateUserConfigurationRequest */ latestItemsExcludes?: Array; /** * * @type {Array} * @memberof UpdateUserConfigurationRequest */ myMediaExcludes?: Array; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ hidePlayedInLatest?: boolean; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ rememberAudioSelections?: boolean; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ rememberSubtitleSelections?: boolean; /** * * @type {boolean} * @memberof UpdateUserConfigurationRequest */ enableNextEpisodeAutoPlay?: boolean; } /** * Check if a given object implements the UpdateUserConfigurationRequest interface. */ export function instanceOfUpdateUserConfigurationRequest(value: object): boolean { let isInstance = true; return isInstance; } export function UpdateUserConfigurationRequestFromJSON(json: any): UpdateUserConfigurationRequest { return UpdateUserConfigurationRequestFromJSONTyped(json, false); } export function UpdateUserConfigurationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserConfigurationRequest { if ((json === undefined) || (json === null)) { return json; } return { 'audioLanguagePreference': !exists(json, 'AudioLanguagePreference') ? undefined : json['AudioLanguagePreference'], 'playDefaultAudioTrack': !exists(json, 'PlayDefaultAudioTrack') ? undefined : json['PlayDefaultAudioTrack'], 'subtitleLanguagePreference': !exists(json, 'SubtitleLanguagePreference') ? undefined : json['SubtitleLanguagePreference'], 'displayMissingEpisodes': !exists(json, 'DisplayMissingEpisodes') ? undefined : json['DisplayMissingEpisodes'], 'groupedFolders': !exists(json, 'GroupedFolders') ? undefined : json['GroupedFolders'], 'subtitleMode': !exists(json, 'SubtitleMode') ? undefined : SubtitlePlaybackModeFromJSON(json['SubtitleMode']), 'displayCollectionsView': !exists(json, 'DisplayCollectionsView') ? undefined : json['DisplayCollectionsView'], 'enableLocalPassword': !exists(json, 'EnableLocalPassword') ? undefined : json['EnableLocalPassword'], 'orderedViews': !exists(json, 'OrderedViews') ? undefined : json['OrderedViews'], 'latestItemsExcludes': !exists(json, 'LatestItemsExcludes') ? undefined : json['LatestItemsExcludes'], 'myMediaExcludes': !exists(json, 'MyMediaExcludes') ? undefined : json['MyMediaExcludes'], 'hidePlayedInLatest': !exists(json, 'HidePlayedInLatest') ? undefined : json['HidePlayedInLatest'], 'rememberAudioSelections': !exists(json, 'RememberAudioSelections') ? undefined : json['RememberAudioSelections'], 'rememberSubtitleSelections': !exists(json, 'RememberSubtitleSelections') ? undefined : json['RememberSubtitleSelections'], 'enableNextEpisodeAutoPlay': !exists(json, 'EnableNextEpisodeAutoPlay') ? undefined : json['EnableNextEpisodeAutoPlay'], }; } export function UpdateUserConfigurationRequestToJSON(value?: UpdateUserConfigurationRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'AudioLanguagePreference': value.audioLanguagePreference, 'PlayDefaultAudioTrack': value.playDefaultAudioTrack, 'SubtitleLanguagePreference': value.subtitleLanguagePreference, 'DisplayMissingEpisodes': value.displayMissingEpisodes, 'GroupedFolders': value.groupedFolders, 'SubtitleMode': SubtitlePlaybackModeToJSON(value.subtitleMode), 'DisplayCollectionsView': value.displayCollectionsView, 'EnableLocalPassword': value.enableLocalPassword, 'OrderedViews': value.orderedViews, 'LatestItemsExcludes': value.latestItemsExcludes, 'MyMediaExcludes': value.myMediaExcludes, 'HidePlayedInLatest': value.hidePlayedInLatest, 'RememberAudioSelections': value.rememberAudioSelections, 'RememberSubtitleSelections': value.rememberSubtitleSelections, 'EnableNextEpisodeAutoPlay': value.enableNextEpisodeAutoPlay, }; }