UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

61 lines 2.32 kB
"use strict"; /* 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.WebrtcRTCIceServerCredentialTypeEnum = void 0; exports.WebrtcRTCIceServerFromJSON = WebrtcRTCIceServerFromJSON; exports.WebrtcRTCIceServerFromJSONTyped = WebrtcRTCIceServerFromJSONTyped; exports.WebrtcRTCIceServerToJSON = WebrtcRTCIceServerToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); /** * @export * @enum {string} */ var WebrtcRTCIceServerCredentialTypeEnum; (function (WebrtcRTCIceServerCredentialTypeEnum) { WebrtcRTCIceServerCredentialTypeEnum["Oauth"] = "oauth"; WebrtcRTCIceServerCredentialTypeEnum["Password"] = "password"; })(WebrtcRTCIceServerCredentialTypeEnum || (exports.WebrtcRTCIceServerCredentialTypeEnum = WebrtcRTCIceServerCredentialTypeEnum = {})); function WebrtcRTCIceServerFromJSON(json) { return WebrtcRTCIceServerFromJSONTyped(json, false); } function WebrtcRTCIceServerFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'urls': json['urls'], 'username': !(0, runtime_1.exists)(json, 'username') ? undefined : json['username'], 'credentialType': json['credentialType'], 'password': !(0, runtime_1.exists)(json, 'password') ? undefined : json['password'], 'oauthCredential': !(0, runtime_1.exists)(json, 'oauthCredential') ? undefined : (0, _1.WebrtcRTCOAuthCredentialFromJSON)(json['oauthCredential']), }; } function WebrtcRTCIceServerToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'urls': value.urls, 'username': value.username, 'credentialType': value.credentialType, 'password': value.password, 'oauthCredential': (0, _1.WebrtcRTCOAuthCredentialToJSON)(value.oauthCredential), }; } //# sourceMappingURL=WebrtcRTCIceServer.js.map