gs2 1.3.138 → 1.3.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schedule/result/GetEventByUserIdResult.d.ts +8 -4
- package/schedule/result/GetEventByUserIdResult.js +28 -14
- package/schedule/result/GetEventByUserIdResult.js.map +1 -1
- package/schedule/result/GetEventByUserIdResult.ts +32 -15
- package/schedule/result/GetEventResult.d.ts +8 -4
- package/schedule/result/GetEventResult.js +28 -14
- package/schedule/result/GetEventResult.js.map +1 -1
- package/schedule/result/GetEventResult.ts +32 -15
package/package.json
CHANGED
|
@@ -2,18 +2,22 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
import * as Gs2Schedule from '../model';
|
|
3
3
|
export default class GetEventByUserIdResult implements IResult {
|
|
4
4
|
private item;
|
|
5
|
-
private repeatCount;
|
|
6
5
|
private inSchedule;
|
|
6
|
+
private scheduleStartAt;
|
|
7
|
+
private scheduleEndAt;
|
|
7
8
|
private repeatSchedule;
|
|
8
9
|
getItem(): Gs2Schedule.Event | null;
|
|
9
10
|
setItem(item: Gs2Schedule.Event | null): this;
|
|
10
11
|
withItem(item: Gs2Schedule.Event | null): this;
|
|
11
|
-
getRepeatCount(): number | null;
|
|
12
|
-
setRepeatCount(repeatCount: number | null): this;
|
|
13
|
-
withRepeatCount(repeatCount: number | null): this;
|
|
14
12
|
getInSchedule(): boolean | null;
|
|
15
13
|
setInSchedule(inSchedule: boolean | null): this;
|
|
16
14
|
withInSchedule(inSchedule: boolean | null): this;
|
|
15
|
+
getScheduleStartAt(): number | null;
|
|
16
|
+
setScheduleStartAt(scheduleStartAt: number | null): this;
|
|
17
|
+
withScheduleStartAt(scheduleStartAt: number | null): this;
|
|
18
|
+
getScheduleEndAt(): number | null;
|
|
19
|
+
setScheduleEndAt(scheduleEndAt: number | null): this;
|
|
20
|
+
withScheduleEndAt(scheduleEndAt: number | null): this;
|
|
17
21
|
getRepeatSchedule(): Gs2Schedule.RepeatSchedule | null;
|
|
18
22
|
setRepeatSchedule(repeatSchedule: Gs2Schedule.RepeatSchedule | null): this;
|
|
19
23
|
withRepeatSchedule(repeatSchedule: Gs2Schedule.RepeatSchedule | null): this;
|
|
@@ -20,8 +20,9 @@ var Gs2Schedule = tslib_1.__importStar(require("../model"));
|
|
|
20
20
|
var GetEventByUserIdResult = /** @class */ (function () {
|
|
21
21
|
function GetEventByUserIdResult() {
|
|
22
22
|
this.item = null;
|
|
23
|
-
this.repeatCount = null;
|
|
24
23
|
this.inSchedule = null;
|
|
24
|
+
this.scheduleStartAt = null;
|
|
25
|
+
this.scheduleEndAt = null;
|
|
25
26
|
this.repeatSchedule = null;
|
|
26
27
|
}
|
|
27
28
|
GetEventByUserIdResult.prototype.getItem = function () {
|
|
@@ -35,17 +36,6 @@ var GetEventByUserIdResult = /** @class */ (function () {
|
|
|
35
36
|
this.item = item;
|
|
36
37
|
return this;
|
|
37
38
|
};
|
|
38
|
-
GetEventByUserIdResult.prototype.getRepeatCount = function () {
|
|
39
|
-
return this.repeatCount;
|
|
40
|
-
};
|
|
41
|
-
GetEventByUserIdResult.prototype.setRepeatCount = function (repeatCount) {
|
|
42
|
-
this.repeatCount = repeatCount;
|
|
43
|
-
return this;
|
|
44
|
-
};
|
|
45
|
-
GetEventByUserIdResult.prototype.withRepeatCount = function (repeatCount) {
|
|
46
|
-
this.repeatCount = repeatCount;
|
|
47
|
-
return this;
|
|
48
|
-
};
|
|
49
39
|
GetEventByUserIdResult.prototype.getInSchedule = function () {
|
|
50
40
|
return this.inSchedule;
|
|
51
41
|
};
|
|
@@ -57,6 +47,28 @@ var GetEventByUserIdResult = /** @class */ (function () {
|
|
|
57
47
|
this.inSchedule = inSchedule;
|
|
58
48
|
return this;
|
|
59
49
|
};
|
|
50
|
+
GetEventByUserIdResult.prototype.getScheduleStartAt = function () {
|
|
51
|
+
return this.scheduleStartAt;
|
|
52
|
+
};
|
|
53
|
+
GetEventByUserIdResult.prototype.setScheduleStartAt = function (scheduleStartAt) {
|
|
54
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
GetEventByUserIdResult.prototype.withScheduleStartAt = function (scheduleStartAt) {
|
|
58
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
GetEventByUserIdResult.prototype.getScheduleEndAt = function () {
|
|
62
|
+
return this.scheduleEndAt;
|
|
63
|
+
};
|
|
64
|
+
GetEventByUserIdResult.prototype.setScheduleEndAt = function (scheduleEndAt) {
|
|
65
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
GetEventByUserIdResult.prototype.withScheduleEndAt = function (scheduleEndAt) {
|
|
69
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
60
72
|
GetEventByUserIdResult.prototype.getRepeatSchedule = function () {
|
|
61
73
|
return this.repeatSchedule;
|
|
62
74
|
};
|
|
@@ -71,16 +83,18 @@ var GetEventByUserIdResult = /** @class */ (function () {
|
|
|
71
83
|
GetEventByUserIdResult.fromDict = function (data) {
|
|
72
84
|
return new GetEventByUserIdResult()
|
|
73
85
|
.withItem(Gs2Schedule.Event.fromDict(data["item"]))
|
|
74
|
-
.withRepeatCount(data["repeatCount"])
|
|
75
86
|
.withInSchedule(data["inSchedule"])
|
|
87
|
+
.withScheduleStartAt(data["scheduleStartAt"])
|
|
88
|
+
.withScheduleEndAt(data["scheduleEndAt"])
|
|
76
89
|
.withRepeatSchedule(Gs2Schedule.RepeatSchedule.fromDict(data["repeatSchedule"]));
|
|
77
90
|
};
|
|
78
91
|
GetEventByUserIdResult.prototype.toDict = function () {
|
|
79
92
|
var _a, _b;
|
|
80
93
|
return {
|
|
81
94
|
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
82
|
-
"repeatCount": this.getRepeatCount(),
|
|
83
95
|
"inSchedule": this.getInSchedule(),
|
|
96
|
+
"scheduleStartAt": this.getScheduleStartAt(),
|
|
97
|
+
"scheduleEndAt": this.getScheduleEndAt(),
|
|
84
98
|
"repeatSchedule": (_b = this.getRepeatSchedule()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
85
99
|
};
|
|
86
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEventByUserIdResult.js","sourceRoot":"","sources":["GetEventByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAA2B,IAAI,CAAC;QACpC,
|
|
1
|
+
{"version":3,"file":"GetEventByUserIdResult.js","sourceRoot":"","sources":["GetEventByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAA2B,IAAI,CAAC;QACpC,eAAU,GAAiB,IAAI,CAAC;QAChC,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,mBAAc,GAAoC,IAAI,CAAC;IA0FnE,CAAC;IAxFU,wCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,wCAAO,GAAd,UAAe,IAA4B;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAQ,GAAf,UAAgB,IAA4B;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,8CAAa,GAApB,UAAqB,UAAwB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+CAAc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AAI,CAAC,iBAAiB,CAAC,CAAC;aAC5C,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aACxC,kBAAkB,CAAC,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;IAEM,uCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,gBAAgB,EAAE,MAAA,IAAI,CAAC,iBAAiB,EAAE,0CAAE,MAAM,EAAE;SACvD,CAAC;IACN,CAAC;IACL,6BAAC;AAAD,CAAC,AA/FD,IA+FC"}
|
|
@@ -20,8 +20,9 @@ import * as Gs2Schedule from '../model'
|
|
|
20
20
|
|
|
21
21
|
export default class GetEventByUserIdResult implements IResult {
|
|
22
22
|
private item: Gs2Schedule.Event|null = null;
|
|
23
|
-
private repeatCount: number|null = null;
|
|
24
23
|
private inSchedule: boolean|null = null;
|
|
24
|
+
private scheduleStartAt: number|null = null;
|
|
25
|
+
private scheduleEndAt: number|null = null;
|
|
25
26
|
private repeatSchedule: Gs2Schedule.RepeatSchedule|null = null;
|
|
26
27
|
|
|
27
28
|
public getItem(): Gs2Schedule.Event|null {
|
|
@@ -38,31 +39,45 @@ export default class GetEventByUserIdResult implements IResult {
|
|
|
38
39
|
return this;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
public
|
|
42
|
-
return this.
|
|
42
|
+
public getInSchedule(): boolean|null {
|
|
43
|
+
return this.inSchedule;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
public
|
|
46
|
-
this.
|
|
46
|
+
public setInSchedule(inSchedule: boolean|null) {
|
|
47
|
+
this.inSchedule = inSchedule;
|
|
47
48
|
return this;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
public
|
|
51
|
-
this.
|
|
51
|
+
public withInSchedule(inSchedule: boolean|null): this {
|
|
52
|
+
this.inSchedule = inSchedule;
|
|
52
53
|
return this;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
public
|
|
56
|
-
return this.
|
|
56
|
+
public getScheduleStartAt(): number|null {
|
|
57
|
+
return this.scheduleStartAt;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
public
|
|
60
|
-
this.
|
|
60
|
+
public setScheduleStartAt(scheduleStartAt: number|null) {
|
|
61
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
61
62
|
return this;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
public
|
|
65
|
-
this.
|
|
65
|
+
public withScheduleStartAt(scheduleStartAt: number|null): this {
|
|
66
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public getScheduleEndAt(): number|null {
|
|
71
|
+
return this.scheduleEndAt;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public setScheduleEndAt(scheduleEndAt: number|null) {
|
|
75
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public withScheduleEndAt(scheduleEndAt: number|null): this {
|
|
80
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
66
81
|
return this;
|
|
67
82
|
}
|
|
68
83
|
|
|
@@ -83,16 +98,18 @@ export default class GetEventByUserIdResult implements IResult {
|
|
|
83
98
|
public static fromDict(data: {[key: string]: any}): GetEventByUserIdResult {
|
|
84
99
|
return new GetEventByUserIdResult()
|
|
85
100
|
.withItem(Gs2Schedule.Event.fromDict(data["item"]))
|
|
86
|
-
.withRepeatCount(data["repeatCount"])
|
|
87
101
|
.withInSchedule(data["inSchedule"])
|
|
102
|
+
.withScheduleStartAt(data["scheduleStartAt"])
|
|
103
|
+
.withScheduleEndAt(data["scheduleEndAt"])
|
|
88
104
|
.withRepeatSchedule(Gs2Schedule.RepeatSchedule.fromDict(data["repeatSchedule"]));
|
|
89
105
|
}
|
|
90
106
|
|
|
91
107
|
public toDict(): {[key: string]: any} {
|
|
92
108
|
return {
|
|
93
109
|
"item": this.getItem()?.toDict(),
|
|
94
|
-
"repeatCount": this.getRepeatCount(),
|
|
95
110
|
"inSchedule": this.getInSchedule(),
|
|
111
|
+
"scheduleStartAt": this.getScheduleStartAt(),
|
|
112
|
+
"scheduleEndAt": this.getScheduleEndAt(),
|
|
96
113
|
"repeatSchedule": this.getRepeatSchedule()?.toDict(),
|
|
97
114
|
};
|
|
98
115
|
}
|
|
@@ -2,18 +2,22 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
import * as Gs2Schedule from '../model';
|
|
3
3
|
export default class GetEventResult implements IResult {
|
|
4
4
|
private item;
|
|
5
|
-
private repeatCount;
|
|
6
5
|
private inSchedule;
|
|
6
|
+
private scheduleStartAt;
|
|
7
|
+
private scheduleEndAt;
|
|
7
8
|
private repeatSchedule;
|
|
8
9
|
getItem(): Gs2Schedule.Event | null;
|
|
9
10
|
setItem(item: Gs2Schedule.Event | null): this;
|
|
10
11
|
withItem(item: Gs2Schedule.Event | null): this;
|
|
11
|
-
getRepeatCount(): number | null;
|
|
12
|
-
setRepeatCount(repeatCount: number | null): this;
|
|
13
|
-
withRepeatCount(repeatCount: number | null): this;
|
|
14
12
|
getInSchedule(): boolean | null;
|
|
15
13
|
setInSchedule(inSchedule: boolean | null): this;
|
|
16
14
|
withInSchedule(inSchedule: boolean | null): this;
|
|
15
|
+
getScheduleStartAt(): number | null;
|
|
16
|
+
setScheduleStartAt(scheduleStartAt: number | null): this;
|
|
17
|
+
withScheduleStartAt(scheduleStartAt: number | null): this;
|
|
18
|
+
getScheduleEndAt(): number | null;
|
|
19
|
+
setScheduleEndAt(scheduleEndAt: number | null): this;
|
|
20
|
+
withScheduleEndAt(scheduleEndAt: number | null): this;
|
|
17
21
|
getRepeatSchedule(): Gs2Schedule.RepeatSchedule | null;
|
|
18
22
|
setRepeatSchedule(repeatSchedule: Gs2Schedule.RepeatSchedule | null): this;
|
|
19
23
|
withRepeatSchedule(repeatSchedule: Gs2Schedule.RepeatSchedule | null): this;
|
|
@@ -20,8 +20,9 @@ var Gs2Schedule = tslib_1.__importStar(require("../model"));
|
|
|
20
20
|
var GetEventResult = /** @class */ (function () {
|
|
21
21
|
function GetEventResult() {
|
|
22
22
|
this.item = null;
|
|
23
|
-
this.repeatCount = null;
|
|
24
23
|
this.inSchedule = null;
|
|
24
|
+
this.scheduleStartAt = null;
|
|
25
|
+
this.scheduleEndAt = null;
|
|
25
26
|
this.repeatSchedule = null;
|
|
26
27
|
}
|
|
27
28
|
GetEventResult.prototype.getItem = function () {
|
|
@@ -35,17 +36,6 @@ var GetEventResult = /** @class */ (function () {
|
|
|
35
36
|
this.item = item;
|
|
36
37
|
return this;
|
|
37
38
|
};
|
|
38
|
-
GetEventResult.prototype.getRepeatCount = function () {
|
|
39
|
-
return this.repeatCount;
|
|
40
|
-
};
|
|
41
|
-
GetEventResult.prototype.setRepeatCount = function (repeatCount) {
|
|
42
|
-
this.repeatCount = repeatCount;
|
|
43
|
-
return this;
|
|
44
|
-
};
|
|
45
|
-
GetEventResult.prototype.withRepeatCount = function (repeatCount) {
|
|
46
|
-
this.repeatCount = repeatCount;
|
|
47
|
-
return this;
|
|
48
|
-
};
|
|
49
39
|
GetEventResult.prototype.getInSchedule = function () {
|
|
50
40
|
return this.inSchedule;
|
|
51
41
|
};
|
|
@@ -57,6 +47,28 @@ var GetEventResult = /** @class */ (function () {
|
|
|
57
47
|
this.inSchedule = inSchedule;
|
|
58
48
|
return this;
|
|
59
49
|
};
|
|
50
|
+
GetEventResult.prototype.getScheduleStartAt = function () {
|
|
51
|
+
return this.scheduleStartAt;
|
|
52
|
+
};
|
|
53
|
+
GetEventResult.prototype.setScheduleStartAt = function (scheduleStartAt) {
|
|
54
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
GetEventResult.prototype.withScheduleStartAt = function (scheduleStartAt) {
|
|
58
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
GetEventResult.prototype.getScheduleEndAt = function () {
|
|
62
|
+
return this.scheduleEndAt;
|
|
63
|
+
};
|
|
64
|
+
GetEventResult.prototype.setScheduleEndAt = function (scheduleEndAt) {
|
|
65
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
GetEventResult.prototype.withScheduleEndAt = function (scheduleEndAt) {
|
|
69
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
60
72
|
GetEventResult.prototype.getRepeatSchedule = function () {
|
|
61
73
|
return this.repeatSchedule;
|
|
62
74
|
};
|
|
@@ -71,16 +83,18 @@ var GetEventResult = /** @class */ (function () {
|
|
|
71
83
|
GetEventResult.fromDict = function (data) {
|
|
72
84
|
return new GetEventResult()
|
|
73
85
|
.withItem(Gs2Schedule.Event.fromDict(data["item"]))
|
|
74
|
-
.withRepeatCount(data["repeatCount"])
|
|
75
86
|
.withInSchedule(data["inSchedule"])
|
|
87
|
+
.withScheduleStartAt(data["scheduleStartAt"])
|
|
88
|
+
.withScheduleEndAt(data["scheduleEndAt"])
|
|
76
89
|
.withRepeatSchedule(Gs2Schedule.RepeatSchedule.fromDict(data["repeatSchedule"]));
|
|
77
90
|
};
|
|
78
91
|
GetEventResult.prototype.toDict = function () {
|
|
79
92
|
var _a, _b;
|
|
80
93
|
return {
|
|
81
94
|
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
82
|
-
"repeatCount": this.getRepeatCount(),
|
|
83
95
|
"inSchedule": this.getInSchedule(),
|
|
96
|
+
"scheduleStartAt": this.getScheduleStartAt(),
|
|
97
|
+
"scheduleEndAt": this.getScheduleEndAt(),
|
|
84
98
|
"repeatSchedule": (_b = this.getRepeatSchedule()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
85
99
|
};
|
|
86
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEventResult.js","sourceRoot":"","sources":["GetEventResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAA2B,IAAI,CAAC;QACpC,
|
|
1
|
+
{"version":3,"file":"GetEventResult.js","sourceRoot":"","sources":["GetEventResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAA2B,IAAI,CAAC;QACpC,eAAU,GAAiB,IAAI,CAAC;QAChC,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,mBAAc,GAAoC,IAAI,CAAC;IA0FnE,CAAC;IAxFU,gCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,gCAAO,GAAd,UAAe,IAA4B;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iCAAQ,GAAf,UAAgB,IAA4B;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sCAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,sCAAa,GAApB,UAAqB,UAAwB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uCAAc,GAArB,UAAsB,UAAwB;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB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AAC,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;IAEM,+BAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,gBAAgB,EAAE,MAAA,IAAI,CAAC,iBAAiB,EAAE,0CAAE,MAAM,EAAE;SACvD,CAAC;IACN,CAAC;IACL,qBAAC;AAAD,CAAC,AA/FD,IA+FC"}
|
|
@@ -20,8 +20,9 @@ import * as Gs2Schedule from '../model'
|
|
|
20
20
|
|
|
21
21
|
export default class GetEventResult implements IResult {
|
|
22
22
|
private item: Gs2Schedule.Event|null = null;
|
|
23
|
-
private repeatCount: number|null = null;
|
|
24
23
|
private inSchedule: boolean|null = null;
|
|
24
|
+
private scheduleStartAt: number|null = null;
|
|
25
|
+
private scheduleEndAt: number|null = null;
|
|
25
26
|
private repeatSchedule: Gs2Schedule.RepeatSchedule|null = null;
|
|
26
27
|
|
|
27
28
|
public getItem(): Gs2Schedule.Event|null {
|
|
@@ -38,31 +39,45 @@ export default class GetEventResult implements IResult {
|
|
|
38
39
|
return this;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
public
|
|
42
|
-
return this.
|
|
42
|
+
public getInSchedule(): boolean|null {
|
|
43
|
+
return this.inSchedule;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
public
|
|
46
|
-
this.
|
|
46
|
+
public setInSchedule(inSchedule: boolean|null) {
|
|
47
|
+
this.inSchedule = inSchedule;
|
|
47
48
|
return this;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
public
|
|
51
|
-
this.
|
|
51
|
+
public withInSchedule(inSchedule: boolean|null): this {
|
|
52
|
+
this.inSchedule = inSchedule;
|
|
52
53
|
return this;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
public
|
|
56
|
-
return this.
|
|
56
|
+
public getScheduleStartAt(): number|null {
|
|
57
|
+
return this.scheduleStartAt;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
public
|
|
60
|
-
this.
|
|
60
|
+
public setScheduleStartAt(scheduleStartAt: number|null) {
|
|
61
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
61
62
|
return this;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
public
|
|
65
|
-
this.
|
|
65
|
+
public withScheduleStartAt(scheduleStartAt: number|null): this {
|
|
66
|
+
this.scheduleStartAt = scheduleStartAt;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public getScheduleEndAt(): number|null {
|
|
71
|
+
return this.scheduleEndAt;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public setScheduleEndAt(scheduleEndAt: number|null) {
|
|
75
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public withScheduleEndAt(scheduleEndAt: number|null): this {
|
|
80
|
+
this.scheduleEndAt = scheduleEndAt;
|
|
66
81
|
return this;
|
|
67
82
|
}
|
|
68
83
|
|
|
@@ -83,16 +98,18 @@ export default class GetEventResult implements IResult {
|
|
|
83
98
|
public static fromDict(data: {[key: string]: any}): GetEventResult {
|
|
84
99
|
return new GetEventResult()
|
|
85
100
|
.withItem(Gs2Schedule.Event.fromDict(data["item"]))
|
|
86
|
-
.withRepeatCount(data["repeatCount"])
|
|
87
101
|
.withInSchedule(data["inSchedule"])
|
|
102
|
+
.withScheduleStartAt(data["scheduleStartAt"])
|
|
103
|
+
.withScheduleEndAt(data["scheduleEndAt"])
|
|
88
104
|
.withRepeatSchedule(Gs2Schedule.RepeatSchedule.fromDict(data["repeatSchedule"]));
|
|
89
105
|
}
|
|
90
106
|
|
|
91
107
|
public toDict(): {[key: string]: any} {
|
|
92
108
|
return {
|
|
93
109
|
"item": this.getItem()?.toDict(),
|
|
94
|
-
"repeatCount": this.getRepeatCount(),
|
|
95
110
|
"inSchedule": this.getInSchedule(),
|
|
111
|
+
"scheduleStartAt": this.getScheduleStartAt(),
|
|
112
|
+
"scheduleEndAt": this.getScheduleEndAt(),
|
|
96
113
|
"repeatSchedule": this.getRepeatSchedule()?.toDict(),
|
|
97
114
|
};
|
|
98
115
|
}
|