sinch-rtc
Version:
RTC JavaScript/Web SDK
58 lines • 1.75 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.DestinationTypeEnum = void 0;
exports.DestinationFromJSON = DestinationFromJSON;
exports.DestinationFromJSONTyped = DestinationFromJSONTyped;
exports.DestinationToJSON = DestinationToJSON;
const _1 = require("./");
/**
* @export
* @enum {string}
*/
var DestinationTypeEnum;
(function (DestinationTypeEnum) {
DestinationTypeEnum["UserId"] = "userId";
DestinationTypeEnum["Phonenumber"] = "phonenumber";
DestinationTypeEnum["Conference"] = "conference";
DestinationTypeEnum["Sip"] = "sip";
})(DestinationTypeEnum || (exports.DestinationTypeEnum = DestinationTypeEnum = {}));
function DestinationFromJSON(json) {
return DestinationFromJSONTyped(json, false);
}
function DestinationFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'domain': (0, _1.DomainFromJSON)(json['domain']),
'type': json['type'],
'identity': json['identity'],
};
}
function DestinationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'domain': (0, _1.DomainToJSON)(value.domain),
'type': value.type,
'identity': value.identity,
};
}
//# sourceMappingURL=Destination.js.map