gs2 1.3.135 → 1.3.136
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/lottery/request/DrawWithRandomSeedByUserIdRequest.d.ts +46 -0
- package/lottery/request/DrawWithRandomSeedByUserIdRequest.js +159 -0
- package/lottery/request/DrawWithRandomSeedByUserIdRequest.js.map +1 -0
- package/lottery/request/DrawWithRandomSeedByUserIdRequest.ts +169 -0
- package/lottery/request/PredictionByUserIdRequest.d.ts +41 -0
- package/lottery/request/PredictionByUserIdRequest.js +137 -0
- package/lottery/request/PredictionByUserIdRequest.js.map +1 -0
- package/lottery/request/PredictionByUserIdRequest.ts +147 -0
- package/lottery/request/PredictionRequest.d.ts +41 -0
- package/lottery/request/PredictionRequest.js +137 -0
- package/lottery/request/PredictionRequest.js.map +1 -0
- package/lottery/request/PredictionRequest.ts +147 -0
- package/lottery/request/index.d.ts +4 -1
- package/lottery/request/index.js +7 -1
- package/lottery/request/index.js.map +1 -1
- package/lottery/request/index.ts +6 -0
- package/lottery/rest.d.ts +3 -0
- package/lottery/rest.js +100 -0
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +112 -0
- package/lottery/result/DrawWithRandomSeedByUserIdResult.d.ts +30 -0
- package/lottery/result/DrawWithRandomSeedByUserIdResult.js +109 -0
- package/lottery/result/DrawWithRandomSeedByUserIdResult.js.map +1 -0
- package/lottery/result/DrawWithRandomSeedByUserIdResult.ts +124 -0
- package/lottery/result/PredictionByUserIdResult.d.ts +14 -0
- package/lottery/result/PredictionByUserIdResult.js +53 -0
- package/lottery/result/PredictionByUserIdResult.js.map +1 -0
- package/lottery/result/PredictionByUserIdResult.ts +56 -0
- package/lottery/result/PredictionResult.d.ts +14 -0
- package/lottery/result/PredictionResult.js +53 -0
- package/lottery/result/PredictionResult.js.map +1 -0
- package/lottery/result/PredictionResult.ts +56 -0
- package/lottery/result/index.d.ts +4 -1
- package/lottery/result/index.js +7 -1
- package/lottery/result/index.js.map +1 -1
- package/lottery/result/index.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Lottery from '../model';
|
|
3
|
+
export default class DrawWithRandomSeedByUserIdRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private lotteryName;
|
|
8
|
+
private userId;
|
|
9
|
+
private randomSeed;
|
|
10
|
+
private count;
|
|
11
|
+
private config;
|
|
12
|
+
private duplicationAvoider;
|
|
13
|
+
getRequestId(): string | null;
|
|
14
|
+
setRequestId(requestId: string | null): this;
|
|
15
|
+
withRequestId(requestId: string | null): this;
|
|
16
|
+
getContextStack(): string | null;
|
|
17
|
+
setContextStack(contextStack: string | null): this;
|
|
18
|
+
withContextStack(contextStack: string | null): this;
|
|
19
|
+
getNamespaceName(): string | null;
|
|
20
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
21
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
22
|
+
getLotteryName(): string | null;
|
|
23
|
+
setLotteryName(lotteryName: string | null): this;
|
|
24
|
+
withLotteryName(lotteryName: string | null): this;
|
|
25
|
+
getUserId(): string | null;
|
|
26
|
+
setUserId(userId: string | null): this;
|
|
27
|
+
withUserId(userId: string | null): this;
|
|
28
|
+
getRandomSeed(): number | null;
|
|
29
|
+
setRandomSeed(randomSeed: number | null): this;
|
|
30
|
+
withRandomSeed(randomSeed: number | null): this;
|
|
31
|
+
getCount(): number | null;
|
|
32
|
+
setCount(count: number | null): this;
|
|
33
|
+
withCount(count: number | null): this;
|
|
34
|
+
getConfig(): Gs2Lottery.Config[] | null;
|
|
35
|
+
setConfig(config: Gs2Lottery.Config[] | null): this;
|
|
36
|
+
withConfig(config: Gs2Lottery.Config[] | null): this;
|
|
37
|
+
getDuplicationAvoider(): string | null;
|
|
38
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
39
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
40
|
+
static fromDict(data: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}): DrawWithRandomSeedByUserIdRequest;
|
|
43
|
+
toDict(): {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Lottery = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var DrawWithRandomSeedByUserIdRequest = /** @class */ (function () {
|
|
21
|
+
function DrawWithRandomSeedByUserIdRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.lotteryName = null;
|
|
26
|
+
this.userId = null;
|
|
27
|
+
this.randomSeed = null;
|
|
28
|
+
this.count = null;
|
|
29
|
+
this.config = null;
|
|
30
|
+
this.duplicationAvoider = null;
|
|
31
|
+
}
|
|
32
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getRequestId = function () {
|
|
33
|
+
return this.requestId;
|
|
34
|
+
};
|
|
35
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setRequestId = function (requestId) {
|
|
36
|
+
this.requestId = requestId;
|
|
37
|
+
return this;
|
|
38
|
+
};
|
|
39
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withRequestId = function (requestId) {
|
|
40
|
+
this.requestId = requestId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getContextStack = function () {
|
|
44
|
+
return this.contextStack;
|
|
45
|
+
};
|
|
46
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setContextStack = function (contextStack) {
|
|
47
|
+
this.contextStack = contextStack;
|
|
48
|
+
return this;
|
|
49
|
+
};
|
|
50
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withContextStack = function (contextStack) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getNamespaceName = function () {
|
|
55
|
+
return this.namespaceName;
|
|
56
|
+
};
|
|
57
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
58
|
+
this.namespaceName = namespaceName;
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
62
|
+
this.namespaceName = namespaceName;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getLotteryName = function () {
|
|
66
|
+
return this.lotteryName;
|
|
67
|
+
};
|
|
68
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setLotteryName = function (lotteryName) {
|
|
69
|
+
this.lotteryName = lotteryName;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
72
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withLotteryName = function (lotteryName) {
|
|
73
|
+
this.lotteryName = lotteryName;
|
|
74
|
+
return this;
|
|
75
|
+
};
|
|
76
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getUserId = function () {
|
|
77
|
+
return this.userId;
|
|
78
|
+
};
|
|
79
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setUserId = function (userId) {
|
|
80
|
+
this.userId = userId;
|
|
81
|
+
return this;
|
|
82
|
+
};
|
|
83
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withUserId = function (userId) {
|
|
84
|
+
this.userId = userId;
|
|
85
|
+
return this;
|
|
86
|
+
};
|
|
87
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getRandomSeed = function () {
|
|
88
|
+
return this.randomSeed;
|
|
89
|
+
};
|
|
90
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setRandomSeed = function (randomSeed) {
|
|
91
|
+
this.randomSeed = randomSeed;
|
|
92
|
+
return this;
|
|
93
|
+
};
|
|
94
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withRandomSeed = function (randomSeed) {
|
|
95
|
+
this.randomSeed = randomSeed;
|
|
96
|
+
return this;
|
|
97
|
+
};
|
|
98
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getCount = function () {
|
|
99
|
+
return this.count;
|
|
100
|
+
};
|
|
101
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setCount = function (count) {
|
|
102
|
+
this.count = count;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withCount = function (count) {
|
|
106
|
+
this.count = count;
|
|
107
|
+
return this;
|
|
108
|
+
};
|
|
109
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getConfig = function () {
|
|
110
|
+
return this.config;
|
|
111
|
+
};
|
|
112
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setConfig = function (config) {
|
|
113
|
+
this.config = config;
|
|
114
|
+
return this;
|
|
115
|
+
};
|
|
116
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withConfig = function (config) {
|
|
117
|
+
this.config = config;
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
DrawWithRandomSeedByUserIdRequest.prototype.getDuplicationAvoider = function () {
|
|
121
|
+
return this.duplicationAvoider;
|
|
122
|
+
};
|
|
123
|
+
DrawWithRandomSeedByUserIdRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
124
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
DrawWithRandomSeedByUserIdRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
128
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
129
|
+
return this;
|
|
130
|
+
};
|
|
131
|
+
DrawWithRandomSeedByUserIdRequest.fromDict = function (data) {
|
|
132
|
+
return new DrawWithRandomSeedByUserIdRequest()
|
|
133
|
+
.withNamespaceName(data["namespaceName"])
|
|
134
|
+
.withLotteryName(data["lotteryName"])
|
|
135
|
+
.withUserId(data["userId"])
|
|
136
|
+
.withRandomSeed(data["randomSeed"])
|
|
137
|
+
.withCount(data["count"])
|
|
138
|
+
.withConfig(data.config ?
|
|
139
|
+
data.config.map(function (item) {
|
|
140
|
+
return Gs2Lottery.Config.fromDict(item);
|
|
141
|
+
}) : []);
|
|
142
|
+
};
|
|
143
|
+
DrawWithRandomSeedByUserIdRequest.prototype.toDict = function () {
|
|
144
|
+
return {
|
|
145
|
+
"namespaceName": this.getNamespaceName(),
|
|
146
|
+
"lotteryName": this.getLotteryName(),
|
|
147
|
+
"userId": this.getUserId(),
|
|
148
|
+
"randomSeed": this.getRandomSeed(),
|
|
149
|
+
"count": this.getCount(),
|
|
150
|
+
"config": this.getConfig() ?
|
|
151
|
+
this.getConfig().map(function (item) {
|
|
152
|
+
return item.toDict();
|
|
153
|
+
}) : [],
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
return DrawWithRandomSeedByUserIdRequest;
|
|
157
|
+
}());
|
|
158
|
+
exports.default = DrawWithRandomSeedByUserIdRequest;
|
|
159
|
+
//# sourceMappingURL=DrawWithRandomSeedByUserIdRequest.js.map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C,CAAC;IAChB,CAAC;IAEM,kDAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAuB;oBAC1C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,wCAAC;AAAD,CAAC,AApJD,IAoJC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DrawWithRandomSeedByUserIdRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private lotteryName: string|null = null;
|
|
27
|
+
private userId: string|null = null;
|
|
28
|
+
private randomSeed: number|null = null;
|
|
29
|
+
private count: number|null = null;
|
|
30
|
+
private config: Gs2Lottery.Config[]|null = null;
|
|
31
|
+
private duplicationAvoider: string|null = null;
|
|
32
|
+
|
|
33
|
+
public getRequestId(): string|null {
|
|
34
|
+
return this.requestId;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public setRequestId(requestId: string|null) {
|
|
38
|
+
this.requestId = requestId;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public withRequestId(requestId: string|null): this {
|
|
43
|
+
this.requestId = requestId;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public getContextStack(): string|null {
|
|
48
|
+
return this.contextStack;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public setContextStack(contextStack: string|null) {
|
|
52
|
+
this.contextStack = contextStack;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public withContextStack(contextStack: string|null): this {
|
|
57
|
+
this.contextStack = contextStack;
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
public getNamespaceName(): string|null {
|
|
61
|
+
return this.namespaceName;
|
|
62
|
+
}
|
|
63
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
64
|
+
this.namespaceName = namespaceName;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
68
|
+
this.namespaceName = namespaceName;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
public getLotteryName(): string|null {
|
|
72
|
+
return this.lotteryName;
|
|
73
|
+
}
|
|
74
|
+
public setLotteryName(lotteryName: string|null) {
|
|
75
|
+
this.lotteryName = lotteryName;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
public withLotteryName(lotteryName: string|null): this {
|
|
79
|
+
this.lotteryName = lotteryName;
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
public getUserId(): string|null {
|
|
83
|
+
return this.userId;
|
|
84
|
+
}
|
|
85
|
+
public setUserId(userId: string|null) {
|
|
86
|
+
this.userId = userId;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
public withUserId(userId: string|null): this {
|
|
90
|
+
this.userId = userId;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
public getRandomSeed(): number|null {
|
|
94
|
+
return this.randomSeed;
|
|
95
|
+
}
|
|
96
|
+
public setRandomSeed(randomSeed: number|null) {
|
|
97
|
+
this.randomSeed = randomSeed;
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
public withRandomSeed(randomSeed: number|null): this {
|
|
101
|
+
this.randomSeed = randomSeed;
|
|
102
|
+
return this;
|
|
103
|
+
}
|
|
104
|
+
public getCount(): number|null {
|
|
105
|
+
return this.count;
|
|
106
|
+
}
|
|
107
|
+
public setCount(count: number|null) {
|
|
108
|
+
this.count = count;
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
public withCount(count: number|null): this {
|
|
112
|
+
this.count = count;
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
public getConfig(): Gs2Lottery.Config[]|null {
|
|
116
|
+
return this.config;
|
|
117
|
+
}
|
|
118
|
+
public setConfig(config: Gs2Lottery.Config[]|null) {
|
|
119
|
+
this.config = config;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
public withConfig(config: Gs2Lottery.Config[]|null): this {
|
|
123
|
+
this.config = config;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public getDuplicationAvoider(): string|null {
|
|
128
|
+
return this.duplicationAvoider;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
132
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
137
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
public static fromDict(data: {[key: string]: any}): DrawWithRandomSeedByUserIdRequest {
|
|
142
|
+
return new DrawWithRandomSeedByUserIdRequest()
|
|
143
|
+
.withNamespaceName(data["namespaceName"])
|
|
144
|
+
.withLotteryName(data["lotteryName"])
|
|
145
|
+
.withUserId(data["userId"])
|
|
146
|
+
.withRandomSeed(data["randomSeed"])
|
|
147
|
+
.withCount(data["count"])
|
|
148
|
+
.withConfig(data.config ?
|
|
149
|
+
data.config.map((item: {[key: string]: any}) => {
|
|
150
|
+
return Gs2Lottery.Config.fromDict(item);
|
|
151
|
+
}
|
|
152
|
+
) : []);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
public toDict(): {[key: string]: any} {
|
|
156
|
+
return {
|
|
157
|
+
"namespaceName": this.getNamespaceName(),
|
|
158
|
+
"lotteryName": this.getLotteryName(),
|
|
159
|
+
"userId": this.getUserId(),
|
|
160
|
+
"randomSeed": this.getRandomSeed(),
|
|
161
|
+
"count": this.getCount(),
|
|
162
|
+
"config": this.getConfig() ?
|
|
163
|
+
this.getConfig()!.map((item: Gs2Lottery.Config) => {
|
|
164
|
+
return item.toDict();
|
|
165
|
+
}
|
|
166
|
+
) : [],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class PredictionByUserIdRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private lotteryName;
|
|
7
|
+
private userId;
|
|
8
|
+
private randomSeed;
|
|
9
|
+
private count;
|
|
10
|
+
private duplicationAvoider;
|
|
11
|
+
getRequestId(): string | null;
|
|
12
|
+
setRequestId(requestId: string | null): this;
|
|
13
|
+
withRequestId(requestId: string | null): this;
|
|
14
|
+
getContextStack(): string | null;
|
|
15
|
+
setContextStack(contextStack: string | null): this;
|
|
16
|
+
withContextStack(contextStack: string | null): this;
|
|
17
|
+
getNamespaceName(): string | null;
|
|
18
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
getLotteryName(): string | null;
|
|
21
|
+
setLotteryName(lotteryName: string | null): this;
|
|
22
|
+
withLotteryName(lotteryName: string | null): this;
|
|
23
|
+
getUserId(): string | null;
|
|
24
|
+
setUserId(userId: string | null): this;
|
|
25
|
+
withUserId(userId: string | null): this;
|
|
26
|
+
getRandomSeed(): number | null;
|
|
27
|
+
setRandomSeed(randomSeed: number | null): this;
|
|
28
|
+
withRandomSeed(randomSeed: number | null): this;
|
|
29
|
+
getCount(): number | null;
|
|
30
|
+
setCount(count: number | null): this;
|
|
31
|
+
withCount(count: number | null): this;
|
|
32
|
+
getDuplicationAvoider(): string | null;
|
|
33
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
34
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
35
|
+
static fromDict(data: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}): PredictionByUserIdRequest;
|
|
38
|
+
toDict(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var PredictionByUserIdRequest = /** @class */ (function () {
|
|
19
|
+
function PredictionByUserIdRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.lotteryName = null;
|
|
24
|
+
this.userId = null;
|
|
25
|
+
this.randomSeed = null;
|
|
26
|
+
this.count = null;
|
|
27
|
+
this.duplicationAvoider = null;
|
|
28
|
+
}
|
|
29
|
+
PredictionByUserIdRequest.prototype.getRequestId = function () {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
};
|
|
32
|
+
PredictionByUserIdRequest.prototype.setRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
PredictionByUserIdRequest.prototype.withRequestId = function (requestId) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
PredictionByUserIdRequest.prototype.getContextStack = function () {
|
|
41
|
+
return this.contextStack;
|
|
42
|
+
};
|
|
43
|
+
PredictionByUserIdRequest.prototype.setContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
PredictionByUserIdRequest.prototype.withContextStack = function (contextStack) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
PredictionByUserIdRequest.prototype.getNamespaceName = function () {
|
|
52
|
+
return this.namespaceName;
|
|
53
|
+
};
|
|
54
|
+
PredictionByUserIdRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
PredictionByUserIdRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
59
|
+
this.namespaceName = namespaceName;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
PredictionByUserIdRequest.prototype.getLotteryName = function () {
|
|
63
|
+
return this.lotteryName;
|
|
64
|
+
};
|
|
65
|
+
PredictionByUserIdRequest.prototype.setLotteryName = function (lotteryName) {
|
|
66
|
+
this.lotteryName = lotteryName;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
PredictionByUserIdRequest.prototype.withLotteryName = function (lotteryName) {
|
|
70
|
+
this.lotteryName = lotteryName;
|
|
71
|
+
return this;
|
|
72
|
+
};
|
|
73
|
+
PredictionByUserIdRequest.prototype.getUserId = function () {
|
|
74
|
+
return this.userId;
|
|
75
|
+
};
|
|
76
|
+
PredictionByUserIdRequest.prototype.setUserId = function (userId) {
|
|
77
|
+
this.userId = userId;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
PredictionByUserIdRequest.prototype.withUserId = function (userId) {
|
|
81
|
+
this.userId = userId;
|
|
82
|
+
return this;
|
|
83
|
+
};
|
|
84
|
+
PredictionByUserIdRequest.prototype.getRandomSeed = function () {
|
|
85
|
+
return this.randomSeed;
|
|
86
|
+
};
|
|
87
|
+
PredictionByUserIdRequest.prototype.setRandomSeed = function (randomSeed) {
|
|
88
|
+
this.randomSeed = randomSeed;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
PredictionByUserIdRequest.prototype.withRandomSeed = function (randomSeed) {
|
|
92
|
+
this.randomSeed = randomSeed;
|
|
93
|
+
return this;
|
|
94
|
+
};
|
|
95
|
+
PredictionByUserIdRequest.prototype.getCount = function () {
|
|
96
|
+
return this.count;
|
|
97
|
+
};
|
|
98
|
+
PredictionByUserIdRequest.prototype.setCount = function (count) {
|
|
99
|
+
this.count = count;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
PredictionByUserIdRequest.prototype.withCount = function (count) {
|
|
103
|
+
this.count = count;
|
|
104
|
+
return this;
|
|
105
|
+
};
|
|
106
|
+
PredictionByUserIdRequest.prototype.getDuplicationAvoider = function () {
|
|
107
|
+
return this.duplicationAvoider;
|
|
108
|
+
};
|
|
109
|
+
PredictionByUserIdRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
110
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
PredictionByUserIdRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
114
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
PredictionByUserIdRequest.fromDict = function (data) {
|
|
118
|
+
return new PredictionByUserIdRequest()
|
|
119
|
+
.withNamespaceName(data["namespaceName"])
|
|
120
|
+
.withLotteryName(data["lotteryName"])
|
|
121
|
+
.withUserId(data["userId"])
|
|
122
|
+
.withRandomSeed(data["randomSeed"])
|
|
123
|
+
.withCount(data["count"]);
|
|
124
|
+
};
|
|
125
|
+
PredictionByUserIdRequest.prototype.toDict = function () {
|
|
126
|
+
return {
|
|
127
|
+
"namespaceName": this.getNamespaceName(),
|
|
128
|
+
"lotteryName": this.getLotteryName(),
|
|
129
|
+
"userId": this.getUserId(),
|
|
130
|
+
"randomSeed": this.getRandomSeed(),
|
|
131
|
+
"count": this.getCount(),
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
return PredictionByUserIdRequest;
|
|
135
|
+
}());
|
|
136
|
+
exports.default = PredictionByUserIdRequest;
|
|
137
|
+
//# sourceMappingURL=PredictionByUserIdRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionByUserIdRequest.js","sourceRoot":"","sources":["PredictionByUserIdRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY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