/* 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';
/**
 * 
 * @export
 * @interface AddTunerHostRequest
 */
export interface AddTunerHostRequest {
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    id?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    url?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    type?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    deviceId?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    friendlyName?: string | null;
    /**
     * 
     * @type {boolean}
     * @memberof AddTunerHostRequest
     */
    importFavoritesOnly?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof AddTunerHostRequest
     */
    allowHWTranscoding?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof AddTunerHostRequest
     */
    enableStreamLooping?: boolean;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    source?: string | null;
    /**
     * 
     * @type {number}
     * @memberof AddTunerHostRequest
     */
    tunerCount?: number;
    /**
     * 
     * @type {string}
     * @memberof AddTunerHostRequest
     */
    userAgent?: string | null;
}

/**
 * Check if a given object implements the AddTunerHostRequest interface.
 */
export function instanceOfAddTunerHostRequest(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function AddTunerHostRequestFromJSON(json: any): AddTunerHostRequest {
    return AddTunerHostRequestFromJSONTyped(json, false);
}

export function AddTunerHostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddTunerHostRequest {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'id': !exists(json, 'Id') ? undefined : json['Id'],
        'url': !exists(json, 'Url') ? undefined : json['Url'],
        'type': !exists(json, 'Type') ? undefined : json['Type'],
        'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
        'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
        'importFavoritesOnly': !exists(json, 'ImportFavoritesOnly') ? undefined : json['ImportFavoritesOnly'],
        'allowHWTranscoding': !exists(json, 'AllowHWTranscoding') ? undefined : json['AllowHWTranscoding'],
        'enableStreamLooping': !exists(json, 'EnableStreamLooping') ? undefined : json['EnableStreamLooping'],
        'source': !exists(json, 'Source') ? undefined : json['Source'],
        'tunerCount': !exists(json, 'TunerCount') ? undefined : json['TunerCount'],
        'userAgent': !exists(json, 'UserAgent') ? undefined : json['UserAgent'],
    };
}

export function AddTunerHostRequestToJSON(value?: AddTunerHostRequest | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Id': value.id,
        'Url': value.url,
        'Type': value.type,
        'DeviceId': value.deviceId,
        'FriendlyName': value.friendlyName,
        'ImportFavoritesOnly': value.importFavoritesOnly,
        'AllowHWTranscoding': value.allowHWTranscoding,
        'EnableStreamLooping': value.enableStreamLooping,
        'Source': value.source,
        'TunerCount': value.tunerCount,
        'UserAgent': value.userAgent,
    };
}

