UNPKG

@omnia/fx-models

Version:
41 lines (40 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PageChatRealtimeData = exports.RealtimeData = exports.BusinuessProfileChannel = exports.RealtimeChannel = void 0; const Guid_1 = require("./Guid"); class RealtimeChannel { } exports.RealtimeChannel = RealtimeChannel; class BusinuessProfileChannel extends RealtimeChannel { constructor(profileId) { super(); this._profileId = profileId; } getId() { return this._profileId.toString(); } } exports.BusinuessProfileChannel = BusinuessProfileChannel; class RealtimeData { get channel() { return this._channel; } get value() { return this._value; } constructor(channel, value) { this._channel = channel; this._value = value; } } exports.RealtimeData = RealtimeData; //FIXME: This is a test implementation remove when tested class PageChatRealtimeData extends RealtimeData { constructor(channel) { super(channel); } getId() { return new Guid_1.Guid("0366c62b-da25-4ed1-b5dc-de7e9934249f"); } } exports.PageChatRealtimeData = PageChatRealtimeData;