1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.RmqRecordBuilder = exports.RmqRecord = void 0;
|
4 | class RmqRecord {
|
5 | constructor(data, options) {
|
6 | this.data = data;
|
7 | this.options = options;
|
8 | }
|
9 | }
|
10 | exports.RmqRecord = RmqRecord;
|
11 | class RmqRecordBuilder {
|
12 | constructor(data) {
|
13 | this.data = data;
|
14 | }
|
15 | setOptions(options) {
|
16 | this.options = options;
|
17 | return this;
|
18 | }
|
19 | setData(data) {
|
20 | this.data = data;
|
21 | return this;
|
22 | }
|
23 | build() {
|
24 | return new RmqRecord(this.data, this.options);
|
25 | }
|
26 | }
|
27 | exports.RmqRecordBuilder = RmqRecordBuilder;
|