/**
 *   Generated file. Do not edit
 */
import "./converter-stream-extension";
import { TapStreamReader } from "@iotize/tap/client/impl";
import { TapStreamWriter } from "@iotize/tap/client/impl";
var LoginCredentialConverter = /** @class */ (function () {
    function LoginCredentialConverter() {
    }
    LoginCredentialConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeLoginCredential(model);
        return stream.toBytes;
    };
    LoginCredentialConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readLoginCredential();
    };
    return LoginCredentialConverter;
}());
export { LoginCredentialConverter };
var LoginCredentialHashedConverter = /** @class */ (function () {
    function LoginCredentialHashedConverter() {
    }
    LoginCredentialHashedConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeLoginCredentialHashed(model);
        return stream.toBytes;
    };
    LoginCredentialHashedConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readLoginCredentialHashed();
    };
    return LoginCredentialHashedConverter;
}());
export { LoginCredentialHashedConverter };
var SecurityOptionsConverter = /** @class */ (function () {
    function SecurityOptionsConverter() {
    }
    SecurityOptionsConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeSecurityOptions(model);
        return stream.toBytes;
    };
    SecurityOptionsConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readSecurityOptions();
    };
    return SecurityOptionsConverter;
}());
export { SecurityOptionsConverter };
var ProtocolMaxFrameSizeConverter = /** @class */ (function () {
    function ProtocolMaxFrameSizeConverter() {
    }
    ProtocolMaxFrameSizeConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeProtocolMaxFrameSize(model);
        return stream.toBytes;
    };
    ProtocolMaxFrameSizeConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readProtocolMaxFrameSize();
    };
    return ProtocolMaxFrameSizeConverter;
}());
export { ProtocolMaxFrameSizeConverter };
var MultiRequestFrameConverter = /** @class */ (function () {
    function MultiRequestFrameConverter() {
    }
    MultiRequestFrameConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeMultiRequestFrame(model);
        return stream.toBytes;
    };
    MultiRequestFrameConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readMultiRequestFrame();
    };
    return MultiRequestFrameConverter;
}());
export { MultiRequestFrameConverter };
var MultiResponseFrameConverter = /** @class */ (function () {
    function MultiResponseFrameConverter() {
    }
    MultiResponseFrameConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeMultiResponseFrame(model);
        return stream.toBytes;
    };
    MultiResponseFrameConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readMultiResponseFrame();
    };
    return MultiResponseFrameConverter;
}());
export { MultiResponseFrameConverter };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9pbnRlcmZhY2UvIiwic291cmNlcyI6WyJsaWIvZ2VuZXJhdGVkL2NvbnZlcnRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxPQUFPLDhCQUE4QixDQUFDO0FBZXRDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFLMUQ7SUFBQTtJQWVBLENBQUM7SUFiUSx5Q0FBTSxHQUFiLFVBQ0UsS0FBc0I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