/* tslint:disable */ /* eslint-disable */ /** * ELEMENTS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2 * * * 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 { ElementsUserMiniReference, ElementsUserMiniReferenceFromJSON, ElementsUserMiniReferenceFromJSONTyped, ElementsUserMiniReferenceToJSON, } from './'; /** * * @export * @interface RDCSession */ export interface RDCSession { /** * * @type {number} * @memberof RDCSession */ id: number; /** * * @type {ElementsUserMiniReference} * @memberof RDCSession */ user: ElementsUserMiniReference; /** * * @type {number} * @memberof RDCSession */ clientSession: number; /** * * @type {string} * @memberof RDCSession */ hostWorkstation: string; } export function RDCSessionFromJSON(json: any): RDCSession { return RDCSessionFromJSONTyped(json, false); } export function RDCSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDCSession { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'user': ElementsUserMiniReferenceFromJSON(json['user']), 'clientSession': json['client_session'], 'hostWorkstation': json['host_workstation'], }; } export function RDCSessionToJSON(value?: RDCSession | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'user': ElementsUserMiniReferenceToJSON(value.user), 'client_session': value.clientSession, 'host_workstation': value.hostWorkstation, }; }