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