class BridgeData {
    constructor(messageData) {
        if ((messageData === null || messageData === void 0 ? void 0 : messageData.type) === "video") {
            this.bridgeDataSet = new VideoBridgeDataSet(messageData);
        }
        else if ((messageData === null || messageData === void 0 ? void 0 : messageData.type) === "object") {
            this.bridgeDataSet = new ObjectBridgeDataSet(messageData);
        }
    }
    getMessageProcess() {
        return this.bridgeDataSet;
    }
}
class VideoBridgeDataSet {
    constructor(messageData) {
        this.messageData = messageData;
    }
    getDefaultData() {
        return this.messageData.frame;
    }
    getWidth() {
        var _a;
        return (_a = this.messageData) === null || _a === void 0 ? void 0 : _a.width;
    }
    getHeight() {
        var _a;
        return (_a = this.messageData) === null || _a === void 0 ? void 0 : _a.height;
    }
}
class ObjectBridgeDataSet {
    constructor(messageData) {
        this.messageData = messageData;
    }
    getDefaultData() {
        return JSON.parse(this.messageData.objectData.toString());
    }
}
//# sourceMappingURL=data-bridge-message.js.map