@reactivemarkets/switchboard-api
Version:
Generated api for Reactive Markets Switchboard network
85 lines (84 loc) • 4.25 kB
JavaScript
"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var _Quote_account, _Quote_quoteId, _Quote_reqId, _Quote_symbol, _Quote_tenor, _Quote_venue;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Quote = void 0;
const Quote_generated_1 = require("./Quote_generated");
class Quote extends Quote_generated_1.Quote {
constructor() {
super(...arguments);
_Quote_account.set(this, void 0);
_Quote_quoteId.set(this, void 0);
_Quote_reqId.set(this, void 0);
_Quote_symbol.set(this, void 0);
_Quote_tenor.set(this, void 0);
_Quote_venue.set(this, void 0);
}
account(optionalEncoding) {
var _a, _b;
if (optionalEncoding !== undefined) {
return super.account(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_account, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_account, (_b = (_a = super.account()) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : null, "f");
}
return __classPrivateFieldGet(this, _Quote_account, "f");
}
quoteId(optionalEncoding) {
if (optionalEncoding !== undefined) {
return super.quoteId(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_quoteId, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_quoteId, super.quoteId(), "f");
}
return __classPrivateFieldGet(this, _Quote_quoteId, "f");
}
reqId(optionalEncoding) {
if (optionalEncoding !== undefined) {
return super.reqId(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_reqId, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_reqId, super.reqId(), "f");
}
return __classPrivateFieldGet(this, _Quote_reqId, "f");
}
symbol(optionalEncoding) {
if (optionalEncoding !== undefined) {
return super.symbol(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_symbol, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_symbol, super.symbol(), "f");
}
return __classPrivateFieldGet(this, _Quote_symbol, "f");
}
tenor(optionalEncoding) {
if (optionalEncoding !== undefined) {
return super.tenor(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_tenor, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_tenor, super.tenor(), "f");
}
return __classPrivateFieldGet(this, _Quote_tenor, "f");
}
venue(optionalEncoding) {
if (optionalEncoding !== undefined) {
return super.venue(optionalEncoding);
}
if (__classPrivateFieldGet(this, _Quote_venue, "f") === undefined) {
__classPrivateFieldSet(this, _Quote_venue, super.venue(), "f");
}
return __classPrivateFieldGet(this, _Quote_venue, "f");
}
}
exports.Quote = Quote;
_Quote_account = new WeakMap(), _Quote_quoteId = new WeakMap(), _Quote_reqId = new WeakMap(), _Quote_symbol = new WeakMap(), _Quote_tenor = new WeakMap(), _Quote_venue = new WeakMap();