2016-08-09 09:42:21 +00:00
|
|
|
"use strict";
|
|
|
|
// import classes
|
|
|
|
const lik_1 = require("lik");
|
|
|
|
;
|
|
|
|
//export objects
|
|
|
|
exports.allRequestingSocketRequests = new lik_1.Objectmap();
|
|
|
|
exports.allRespondingSocketRequests = new lik_1.Objectmap();
|
|
|
|
// export classes
|
|
|
|
class SocketRequest {
|
|
|
|
constructor(optionsArg) {
|
|
|
|
this.status = "new";
|
|
|
|
this.side = optionsArg.side;
|
|
|
|
this.shortid = optionsArg.shortid;
|
2016-08-09 14:33:56 +00:00
|
|
|
this.requestData = optionsArg.requestData;
|
|
|
|
this.responseData = optionsArg.responseData;
|
2016-08-09 09:42:21 +00:00
|
|
|
if (this.side === "requesting") {
|
|
|
|
exports.allRequestingSocketRequests.add(this);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
exports.allRespondingSocketRequests.add(this);
|
|
|
|
}
|
|
|
|
;
|
|
|
|
}
|
|
|
|
;
|
2016-08-09 14:33:56 +00:00
|
|
|
_sendRequest(dataArg) {
|
2016-08-09 09:42:21 +00:00
|
|
|
}
|
2016-08-09 14:33:56 +00:00
|
|
|
;
|
|
|
|
_receiveRequest(dataArg) {
|
|
|
|
}
|
|
|
|
;
|
|
|
|
_sendResponse(dataArg) {
|
|
|
|
}
|
|
|
|
_receiveResponse(dataArg) {
|
2016-08-09 09:42:21 +00:00
|
|
|
}
|
2016-08-09 14:33:56 +00:00
|
|
|
;
|
|
|
|
_dispatch(dataArg) {
|
|
|
|
}
|
|
|
|
;
|
2016-08-09 09:42:21 +00:00
|
|
|
}
|
|
|
|
exports.SocketRequest = SocketRequest;
|
|
|
|
;
|
2016-08-09 14:33:56 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRz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