UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

25 lines 935 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceVersion = void 0; const api_1 = require("../ocra/api"); const utils_1 = require("../utils"); class DeviceVersion { constructor(application) { this.application = application; this.platform = api_1.PlatformIdentifier.Js; this.os = utils_1.EnvHelper.getPlatformInfo(); this.deviceModelId = utils_1.EnvHelper.getFullUserAgent(); this.deviceModelName = utils_1.EnvHelper.getBrowserInfo(); } equals(other) { if (other === undefined || other === null) { return false; } return (this.application === other.application && this.os === other.os && this.deviceModelId === other.deviceModelId && this.deviceModelName === other.deviceModelName); } } exports.DeviceVersion = DeviceVersion; //# sourceMappingURL=DeviceVersion.js.map