sinch-rtc
Version:
RTC JavaScript/Web SDK
46 lines • 1.57 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.ConnectionInfoFromJSON = ConnectionInfoFromJSON;
exports.ConnectionInfoFromJSONTyped = ConnectionInfoFromJSONTyped;
exports.ConnectionInfoToJSON = ConnectionInfoToJSON;
const _1 = require("./");
function ConnectionInfoFromJSON(json) {
return ConnectionInfoFromJSONTyped(json, false);
}
function ConnectionInfoFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'localIceCandidate': (0, _1.IceCandidateFromJSON)(json['localIceCandidate']),
'remoteIceCandidate': (0, _1.IceCandidateFromJSON)(json['remoteIceCandidate']),
'timestamp': (new Date(json['timestamp'])),
};
}
function ConnectionInfoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'localIceCandidate': (0, _1.IceCandidateToJSON)(value.localIceCandidate),
'remoteIceCandidate': (0, _1.IceCandidateToJSON)(value.remoteIceCandidate),
'timestamp': (value.timestamp.toISOString()),
};
}
//# sourceMappingURL=ConnectionInfo.js.map