/**
 *   Generated file. Do not edit
 */
import "./converter-stream-extension";
import { TapStreamReader, TapStreamWriter } from "../frame/tap-stream-core";
var ApduRequestConverter = /** @class */ (function () {
    function ApduRequestConverter() {
    }
    ApduRequestConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeApduRequest(model);
        return stream.toBytes;
    };
    ApduRequestConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readApduRequest();
    };
    return ApduRequestConverter;
}());
export { ApduRequestConverter };
var ApduResponseConverter = /** @class */ (function () {
    function ApduResponseConverter() {
    }
    ApduResponseConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeApduResponse(model);
        return stream.toBytes;
    };
    ApduResponseConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readApduResponse();
    };
    return ApduResponseConverter;
}());
export { ApduResponseConverter };
var TapRequestEncryptedConverter = /** @class */ (function () {
    function TapRequestEncryptedConverter() {
    }
    TapRequestEncryptedConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTapRequestEncrypted(model);
        return stream.toBytes;
    };
    TapRequestEncryptedConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTapRequestEncrypted();
    };
    return TapRequestEncryptedConverter;
}());
export { TapRequestEncryptedConverter };
var TapApduRequestConverter = /** @class */ (function () {
    function TapApduRequestConverter() {
    }
    TapApduRequestConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTapApduRequest(model);
        return stream.toBytes;
    };
    TapApduRequestConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTapApduRequest();
    };
    return TapApduRequestConverter;
}());
export { TapApduRequestConverter };
var TapEncryptedFrameConverter = /** @class */ (function () {
    function TapEncryptedFrameConverter() {
    }
    TapEncryptedFrameConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTapEncryptedFrame(model);
        return stream.toBytes;
    };
    TapEncryptedFrameConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTapEncryptedFrame();
    };
    return TapEncryptedFrameConverter;
}());
export { TapEncryptedFrameConverter };
var TapRequestFrameConverter = /** @class */ (function () {
    function TapRequestFrameConverter() {
    }
    TapRequestFrameConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTapRequestFrame(model);
        return stream.toBytes;
    };
    TapRequestFrameConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTapRequestFrame();
    };
    return TapRequestFrameConverter;
}());
export { TapRequestFrameConverter };
var TapResponseFrameConverter = /** @class */ (function () {
    function TapResponseFrameConverter() {
    }
    TapResponseFrameConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTapResponseFrame(model);
        return stream.toBytes;
    };
    TapResponseFrameConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTapResponseFrame();
    };
    return TapResponseFrameConverter;
}());
export { TapResponseFrameConverter };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlvdGl6ZS90YXAvY2xpZW50L2ltcGwvIiwic291cmNlcyI6WyJsaWIvZ2VuZXJhdGVkL2NvbnZlcnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE9BQU8sOEJBQThCLENBQUM7QUFhdEMsT0FBTyxFQUNMLGVBQWUsRUFDZixlQUFlLEVBRWhCLE1B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