sinch-rtc
Version:
RTC JavaScript/Web SDK
59 lines • 2.44 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Ocra (REST API for Sinch RTC clients)
* REST API for Sinch RTC clients.
*
* The version of the OpenAPI document: 0.11.0
* Contact: rtc@sinch.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CallInitiationRequestFromJSON = CallInitiationRequestFromJSON;
exports.CallInitiationRequestFromJSONTyped = CallInitiationRequestFromJSONTyped;
exports.CallInitiationRequestToJSON = CallInitiationRequestToJSON;
const runtime_1 = require("../runtime");
const _1 = require("./");
function CallInitiationRequestFromJSON(json) {
return CallInitiationRequestFromJSONTyped(json, false);
}
function CallInitiationRequestFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'callId': json['callId'],
'destination': (0, _1.DestinationFromJSON)(json['destination']),
'rtcOffer': (0, _1.WebrtcRTCSessionDescriptionFromJSON)(json['rtcOffer']),
'requestedAudio': json['requestedAudio'],
'requestedVideo': json['requestedVideo'],
'publicCallHeaders': !(0, runtime_1.exists)(json, 'publicCallHeaders') ? undefined : json['publicCallHeaders'],
'cli': !(0, runtime_1.exists)(json, 'cli') ? undefined : json['cli'],
'mxpInstanceId': !(0, runtime_1.exists)(json, 'mxpInstanceId') ? undefined : json['mxpInstanceId'],
'legacyMediaProxyEngage': !(0, runtime_1.exists)(json, 'legacyMediaProxyEngage') ? undefined : json['legacyMediaProxyEngage'],
};
}
function CallInitiationRequestToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'callId': value.callId,
'destination': (0, _1.DestinationToJSON)(value.destination),
'rtcOffer': (0, _1.WebrtcRTCSessionDescriptionToJSON)(value.rtcOffer),
'requestedAudio': value.requestedAudio,
'requestedVideo': value.requestedVideo,
'publicCallHeaders': value.publicCallHeaders,
'cli': value.cli,
'mxpInstanceId': value.mxpInstanceId,
'legacyMediaProxyEngage': value.legacyMediaProxyEngage,
};
}
//# sourceMappingURL=CallInitiationRequest.js.map