sinch-rtc
Version:
RTC JavaScript/Web SDK
66 lines • 2.6 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.ConfigIceTransportPolicyEnum = void 0;
exports.ConfigFromJSON = ConfigFromJSON;
exports.ConfigFromJSONTyped = ConfigFromJSONTyped;
exports.ConfigToJSON = ConfigToJSON;
const runtime_1 = require("../runtime");
const _1 = require("./");
/**
* @export
* @enum {string}
*/
var ConfigIceTransportPolicyEnum;
(function (ConfigIceTransportPolicyEnum) {
ConfigIceTransportPolicyEnum["Relay"] = "relay";
ConfigIceTransportPolicyEnum["Nohost"] = "nohost";
ConfigIceTransportPolicyEnum["All"] = "all";
})(ConfigIceTransportPolicyEnum || (exports.ConfigIceTransportPolicyEnum = ConfigIceTransportPolicyEnum = {}));
function ConfigFromJSON(json) {
return ConfigFromJSONTyped(json, false);
}
function ConfigFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'configRefreshIntervalMs': json['configRefreshIntervalMs'],
'pushProfileCacheValidityPeriodMs': json['pushProfileCacheValidityPeriodMs'],
'updateInstanceTtlWindowDays': json['updateInstanceTtlWindowDays'],
'iceTransportPolicy': !(0, runtime_1.exists)(json, 'iceTransportPolicy') ? undefined : json['iceTransportPolicy'],
'rtcProfile': (0, _1.RtcProfileFromJSON)(json['rtcProfile']),
'rtcConfig': (0, _1.RtcConfigFromJSON)(json['rtcConfig']),
'pushConfig': !(0, runtime_1.exists)(json, 'pushConfig') ? undefined : (0, _1.PushConfigFromJSON)(json['pushConfig']),
};
}
function ConfigToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'configRefreshIntervalMs': value.configRefreshIntervalMs,
'pushProfileCacheValidityPeriodMs': value.pushProfileCacheValidityPeriodMs,
'updateInstanceTtlWindowDays': value.updateInstanceTtlWindowDays,
'iceTransportPolicy': value.iceTransportPolicy,
'rtcProfile': (0, _1.RtcProfileToJSON)(value.rtcProfile),
'rtcConfig': (0, _1.RtcConfigToJSON)(value.rtcConfig),
'pushConfig': (0, _1.PushConfigToJSON)(value.pushConfig),
};
}
//# sourceMappingURL=Config.js.map