@aptpod/iscp-ts
Version:
iSCP 2.0 client library for TypeScript
41 lines • 928 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NegotiationParams = exports.ENCODING_NAME = void 0;
const qs_1 = require("qs");
/**
* エンコーディングの名前です。
* @category Enum
* @enum
*/
exports.ENCODING_NAME = {
/**
* ProtocolBuffer。
*/
PROTOBUF: 'proto',
/**
* JSON。
*/
JSON: 'json',
};
/**
* ネゴシエーションパラメータを表します。
* @category Connector
*/
class NegotiationParams {
constructor() {
/**
* エンコーディング名です。
*/
this.enc = exports.ENCODING_NAME.PROTOBUF;
}
/**
* URLパラメータにエンコードします。
*/
encodeURLValues() {
return (0, qs_1.stringify)({
enc: this.enc,
});
}
}
exports.NegotiationParams = NegotiationParams;
//# sourceMappingURL=negotiation-params.js.map