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,124 @@
|
|
|
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 IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DrawWithRandomSeedByUserIdResult implements IResult {
|
|
22
|
+
private items: Gs2Lottery.DrawnPrize[]|null = null;
|
|
23
|
+
private transactionId: string|null = null;
|
|
24
|
+
private stampSheet: string|null = null;
|
|
25
|
+
private stampSheetEncryptionKeyId: string|null = null;
|
|
26
|
+
private autoRunStampSheet: boolean|null = null;
|
|
27
|
+
|
|
28
|
+
public getItems(): Gs2Lottery.DrawnPrize[]|null {
|
|
29
|
+
return this.items;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public setItems(items: Gs2Lottery.DrawnPrize[]|null) {
|
|
33
|
+
this.items = items;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public withItems(items: Gs2Lottery.DrawnPrize[]|null): this {
|
|
38
|
+
this.items = items;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public getTransactionId(): string|null {
|
|
43
|
+
return this.transactionId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public setTransactionId(transactionId: string|null) {
|
|
47
|
+
this.transactionId = transactionId;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public withTransactionId(transactionId: string|null): this {
|
|
52
|
+
this.transactionId = transactionId;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public getStampSheet(): string|null {
|
|
57
|
+
return this.stampSheet;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public setStampSheet(stampSheet: string|null) {
|
|
61
|
+
this.stampSheet = stampSheet;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public withStampSheet(stampSheet: string|null): this {
|
|
66
|
+
this.stampSheet = stampSheet;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public getStampSheetEncryptionKeyId(): string|null {
|
|
71
|
+
return this.stampSheetEncryptionKeyId;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public setStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string|null) {
|
|
75
|
+
this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public withStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string|null): this {
|
|
80
|
+
this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
|
|
81
|
+
return this;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public getAutoRunStampSheet(): boolean|null {
|
|
85
|
+
return this.autoRunStampSheet;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public setAutoRunStampSheet(autoRunStampSheet: boolean|null) {
|
|
89
|
+
this.autoRunStampSheet = autoRunStampSheet;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public withAutoRunStampSheet(autoRunStampSheet: boolean|null): this {
|
|
94
|
+
this.autoRunStampSheet = autoRunStampSheet;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public static fromDict(data: {[key: string]: any}): DrawWithRandomSeedByUserIdResult {
|
|
99
|
+
return new DrawWithRandomSeedByUserIdResult()
|
|
100
|
+
.withItems(data.items ?
|
|
101
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
102
|
+
return Gs2Lottery.DrawnPrize.fromDict(item);
|
|
103
|
+
}
|
|
104
|
+
) : [])
|
|
105
|
+
.withTransactionId(data["transactionId"])
|
|
106
|
+
.withStampSheet(data["stampSheet"])
|
|
107
|
+
.withStampSheetEncryptionKeyId(data["stampSheetEncryptionKeyId"])
|
|
108
|
+
.withAutoRunStampSheet(data["autoRunStampSheet"]);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public toDict(): {[key: string]: any} {
|
|
112
|
+
return {
|
|
113
|
+
"items": this.getItems() ?
|
|
114
|
+
this.getItems()!.map((item: Gs2Lottery.DrawnPrize) => {
|
|
115
|
+
return item.toDict();
|
|
116
|
+
}
|
|
117
|
+
) : [],
|
|
118
|
+
"transactionId": this.getTransactionId(),
|
|
119
|
+
"stampSheet": this.getStampSheet(),
|
|
120
|
+
"stampSheetEncryptionKeyId": this.getStampSheetEncryptionKeyId(),
|
|
121
|
+
"autoRunStampSheet": this.getAutoRunStampSheet(),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Lottery from '../model';
|
|
3
|
+
export default class PredictionByUserIdResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
getItems(): Gs2Lottery.DrawnPrize[] | null;
|
|
6
|
+
setItems(items: Gs2Lottery.DrawnPrize[] | null): this;
|
|
7
|
+
withItems(items: Gs2Lottery.DrawnPrize[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): PredictionByUserIdResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PredictionByUserIdResult = /** @class */ (function () {
|
|
21
|
+
function PredictionByUserIdResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
}
|
|
24
|
+
PredictionByUserIdResult.prototype.getItems = function () {
|
|
25
|
+
return this.items;
|
|
26
|
+
};
|
|
27
|
+
PredictionByUserIdResult.prototype.setItems = function (items) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
PredictionByUserIdResult.prototype.withItems = function (items) {
|
|
32
|
+
this.items = items;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
PredictionByUserIdResult.fromDict = function (data) {
|
|
36
|
+
return new PredictionByUserIdResult()
|
|
37
|
+
.withItems(data.items ?
|
|
38
|
+
data.items.map(function (item) {
|
|
39
|
+
return Gs2Lottery.DrawnPrize.fromDict(item);
|
|
40
|
+
}) : []);
|
|
41
|
+
};
|
|
42
|
+
PredictionByUserIdResult.prototype.toDict = function () {
|
|
43
|
+
return {
|
|
44
|
+
"items": this.getItems() ?
|
|
45
|
+
this.getItems().map(function (item) {
|
|
46
|
+
return item.toDict();
|
|
47
|
+
}) : [],
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return PredictionByUserIdResult;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = PredictionByUserIdResult;
|
|
53
|
+
//# sourceMappingURL=PredictionByUserIdResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionByUserIdResult.js","sourceRoot":"","sources":["PredictionByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,UAAK,GAAiC,IAAI,CAAC;IAkCvD,CAAC;IAhCU,2CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,2CAAQ,GAAf,UAAgB,KAAmC;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4CAAS,GAAhB,UAAiB,KAAmC;QAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,iCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,wBAAwB,EAAE;aAChC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,yCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAA2B;oBAC7C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,+BAAC;AAAD,CAAC,AAnCD,IAmCC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class PredictionByUserIdResult implements IResult {
|
|
22
|
+
private items: Gs2Lottery.DrawnPrize[]|null = null;
|
|
23
|
+
|
|
24
|
+
public getItems(): Gs2Lottery.DrawnPrize[]|null {
|
|
25
|
+
return this.items;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItems(items: Gs2Lottery.DrawnPrize[]|null) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItems(items: Gs2Lottery.DrawnPrize[]|null): this {
|
|
34
|
+
this.items = items;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): PredictionByUserIdResult {
|
|
39
|
+
return new PredictionByUserIdResult()
|
|
40
|
+
.withItems(data.items ?
|
|
41
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
42
|
+
return Gs2Lottery.DrawnPrize.fromDict(item);
|
|
43
|
+
}
|
|
44
|
+
) : []);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public toDict(): {[key: string]: any} {
|
|
48
|
+
return {
|
|
49
|
+
"items": this.getItems() ?
|
|
50
|
+
this.getItems()!.map((item: Gs2Lottery.DrawnPrize) => {
|
|
51
|
+
return item.toDict();
|
|
52
|
+
}
|
|
53
|
+
) : [],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Lottery from '../model';
|
|
3
|
+
export default class PredictionResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
getItems(): Gs2Lottery.DrawnPrize[] | null;
|
|
6
|
+
setItems(items: Gs2Lottery.DrawnPrize[] | null): this;
|
|
7
|
+
withItems(items: Gs2Lottery.DrawnPrize[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): PredictionResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PredictionResult = /** @class */ (function () {
|
|
21
|
+
function PredictionResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
}
|
|
24
|
+
PredictionResult.prototype.getItems = function () {
|
|
25
|
+
return this.items;
|
|
26
|
+
};
|
|
27
|
+
PredictionResult.prototype.setItems = function (items) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
PredictionResult.prototype.withItems = function (items) {
|
|
32
|
+
this.items = items;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
PredictionResult.fromDict = function (data) {
|
|
36
|
+
return new PredictionResult()
|
|
37
|
+
.withItems(data.items ?
|
|
38
|
+
data.items.map(function (item) {
|
|
39
|
+
return Gs2Lottery.DrawnPrize.fromDict(item);
|
|
40
|
+
}) : []);
|
|
41
|
+
};
|
|
42
|
+
PredictionResult.prototype.toDict = function () {
|
|
43
|
+
return {
|
|
44
|
+
"items": this.getItems() ?
|
|
45
|
+
this.getItems().map(function (item) {
|
|
46
|
+
return item.toDict();
|
|
47
|
+
}) : [],
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return PredictionResult;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = PredictionResult;
|
|
53
|
+
//# sourceMappingURL=PredictionResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionResult.js","sourceRoot":"","sources":["PredictionResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QACY,UAAK,GAAiC,IAAI,CAAC;IAkCvD,CAAC;IAhCU,mCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,mCAAQ,GAAf,UAAgB,KAAmC;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oCAAS,GAAhB,UAAiB,KAAmC;QAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,gBAAgB,EAAE;aACxB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,iCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAA2B;oBAC7C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AAnCD,IAmCC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class PredictionResult implements IResult {
|
|
22
|
+
private items: Gs2Lottery.DrawnPrize[]|null = null;
|
|
23
|
+
|
|
24
|
+
public getItems(): Gs2Lottery.DrawnPrize[]|null {
|
|
25
|
+
return this.items;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItems(items: Gs2Lottery.DrawnPrize[]|null) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItems(items: Gs2Lottery.DrawnPrize[]|null): this {
|
|
34
|
+
this.items = items;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): PredictionResult {
|
|
39
|
+
return new PredictionResult()
|
|
40
|
+
.withItems(data.items ?
|
|
41
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
42
|
+
return Gs2Lottery.DrawnPrize.fromDict(item);
|
|
43
|
+
}
|
|
44
|
+
) : []);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public toDict(): {[key: string]: any} {
|
|
48
|
+
return {
|
|
49
|
+
"items": this.getItems() ?
|
|
50
|
+
this.getItems()!.map((item: Gs2Lottery.DrawnPrize) => {
|
|
51
|
+
return item.toDict();
|
|
52
|
+
}
|
|
53
|
+
) : [],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -19,6 +19,9 @@ import GetLotteryModelResult from "./GetLotteryModelResult";
|
|
|
19
19
|
import DescribePrizeTablesResult from "./DescribePrizeTablesResult";
|
|
20
20
|
import GetPrizeTableResult from "./GetPrizeTableResult";
|
|
21
21
|
import DrawByUserIdResult from "./DrawByUserIdResult";
|
|
22
|
+
import PredictionResult from "./PredictionResult";
|
|
23
|
+
import PredictionByUserIdResult from "./PredictionByUserIdResult";
|
|
24
|
+
import DrawWithRandomSeedByUserIdResult from "./DrawWithRandomSeedByUserIdResult";
|
|
22
25
|
import DrawByStampSheetResult from "./DrawByStampSheetResult";
|
|
23
26
|
import DescribeProbabilitiesResult from "./DescribeProbabilitiesResult";
|
|
24
27
|
import DescribeProbabilitiesByUserIdResult from "./DescribeProbabilitiesByUserIdResult";
|
|
@@ -35,4 +38,4 @@ import GetBoxResult from "./GetBoxResult";
|
|
|
35
38
|
import GetBoxByUserIdResult from "./GetBoxByUserIdResult";
|
|
36
39
|
import ResetBoxResult from "./ResetBoxResult";
|
|
37
40
|
import ResetBoxByUserIdResult from "./ResetBoxByUserIdResult";
|
|
38
|
-
export { DescribeNamespacesResult, CreateNamespaceResult, GetNamespaceStatusResult, GetNamespaceResult, UpdateNamespaceResult, DeleteNamespaceResult, DescribeLotteryModelMastersResult, CreateLotteryModelMasterResult, GetLotteryModelMasterResult, UpdateLotteryModelMasterResult, DeleteLotteryModelMasterResult, DescribePrizeTableMastersResult, CreatePrizeTableMasterResult, GetPrizeTableMasterResult, UpdatePrizeTableMasterResult, DeletePrizeTableMasterResult, DescribeLotteryModelsResult, GetLotteryModelResult, DescribePrizeTablesResult, GetPrizeTableResult, DrawByUserIdResult, DrawByStampSheetResult, DescribeProbabilitiesResult, DescribeProbabilitiesByUserIdResult, ExportMasterResult, GetCurrentLotteryMasterResult, UpdateCurrentLotteryMasterResult, UpdateCurrentLotteryMasterFromGitHubResult, DescribePrizeLimitsResult, GetPrizeLimitResult, ResetPrizeLimitResult, DescribeBoxesResult, DescribeBoxesByUserIdResult, GetBoxResult, GetBoxByUserIdResult, ResetBoxResult, ResetBoxByUserIdResult, };
|
|
41
|
+
export { DescribeNamespacesResult, CreateNamespaceResult, GetNamespaceStatusResult, GetNamespaceResult, UpdateNamespaceResult, DeleteNamespaceResult, DescribeLotteryModelMastersResult, CreateLotteryModelMasterResult, GetLotteryModelMasterResult, UpdateLotteryModelMasterResult, DeleteLotteryModelMasterResult, DescribePrizeTableMastersResult, CreatePrizeTableMasterResult, GetPrizeTableMasterResult, UpdatePrizeTableMasterResult, DeletePrizeTableMasterResult, DescribeLotteryModelsResult, GetLotteryModelResult, DescribePrizeTablesResult, GetPrizeTableResult, DrawByUserIdResult, PredictionResult, PredictionByUserIdResult, DrawWithRandomSeedByUserIdResult, DrawByStampSheetResult, DescribeProbabilitiesResult, DescribeProbabilitiesByUserIdResult, ExportMasterResult, GetCurrentLotteryMasterResult, UpdateCurrentLotteryMasterResult, UpdateCurrentLotteryMasterFromGitHubResult, DescribePrizeLimitsResult, GetPrizeLimitResult, ResetPrizeLimitResult, DescribeBoxesResult, DescribeBoxesByUserIdResult, GetBoxResult, GetBoxByUserIdResult, ResetBoxResult, ResetBoxByUserIdResult, };
|
package/lottery/result/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResetBoxByUserIdResult = exports.ResetBoxResult = exports.GetBoxByUserIdResult = exports.GetBoxResult = exports.DescribeBoxesByUserIdResult = exports.DescribeBoxesResult = exports.ResetPrizeLimitResult = exports.GetPrizeLimitResult = exports.DescribePrizeLimitsResult = exports.UpdateCurrentLotteryMasterFromGitHubResult = exports.UpdateCurrentLotteryMasterResult = exports.GetCurrentLotteryMasterResult = exports.ExportMasterResult = exports.DescribeProbabilitiesByUserIdResult = exports.DescribeProbabilitiesResult = exports.DrawByStampSheetResult = exports.DrawByUserIdResult = exports.GetPrizeTableResult = exports.DescribePrizeTablesResult = exports.GetLotteryModelResult = exports.DescribeLotteryModelsResult = exports.DeletePrizeTableMasterResult = exports.UpdatePrizeTableMasterResult = exports.GetPrizeTableMasterResult = exports.CreatePrizeTableMasterResult = exports.DescribePrizeTableMastersResult = exports.DeleteLotteryModelMasterResult = exports.UpdateLotteryModelMasterResult = exports.GetLotteryModelMasterResult = exports.CreateLotteryModelMasterResult = exports.DescribeLotteryModelMastersResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = void 0;
|
|
3
|
+
exports.ResetBoxByUserIdResult = exports.ResetBoxResult = exports.GetBoxByUserIdResult = exports.GetBoxResult = exports.DescribeBoxesByUserIdResult = exports.DescribeBoxesResult = exports.ResetPrizeLimitResult = exports.GetPrizeLimitResult = exports.DescribePrizeLimitsResult = exports.UpdateCurrentLotteryMasterFromGitHubResult = exports.UpdateCurrentLotteryMasterResult = exports.GetCurrentLotteryMasterResult = exports.ExportMasterResult = exports.DescribeProbabilitiesByUserIdResult = exports.DescribeProbabilitiesResult = exports.DrawByStampSheetResult = exports.DrawWithRandomSeedByUserIdResult = exports.PredictionByUserIdResult = exports.PredictionResult = exports.DrawByUserIdResult = exports.GetPrizeTableResult = exports.DescribePrizeTablesResult = exports.GetLotteryModelResult = exports.DescribeLotteryModelsResult = exports.DeletePrizeTableMasterResult = exports.UpdatePrizeTableMasterResult = exports.GetPrizeTableMasterResult = exports.CreatePrizeTableMasterResult = exports.DescribePrizeTableMastersResult = exports.DeleteLotteryModelMasterResult = exports.UpdateLotteryModelMasterResult = exports.GetLotteryModelMasterResult = exports.CreateLotteryModelMasterResult = exports.DescribeLotteryModelMastersResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -59,6 +59,12 @@ var GetPrizeTableResult_1 = tslib_1.__importDefault(require("./GetPrizeTableResu
|
|
|
59
59
|
exports.GetPrizeTableResult = GetPrizeTableResult_1.default;
|
|
60
60
|
var DrawByUserIdResult_1 = tslib_1.__importDefault(require("./DrawByUserIdResult"));
|
|
61
61
|
exports.DrawByUserIdResult = DrawByUserIdResult_1.default;
|
|
62
|
+
var PredictionResult_1 = tslib_1.__importDefault(require("./PredictionResult"));
|
|
63
|
+
exports.PredictionResult = PredictionResult_1.default;
|
|
64
|
+
var PredictionByUserIdResult_1 = tslib_1.__importDefault(require("./PredictionByUserIdResult"));
|
|
65
|
+
exports.PredictionByUserIdResult = PredictionByUserIdResult_1.default;
|
|
66
|
+
var DrawWithRandomSeedByUserIdResult_1 = tslib_1.__importDefault(require("./DrawWithRandomSeedByUserIdResult"));
|
|
67
|
+
exports.DrawWithRandomSeedByUserIdResult = DrawWithRandomSeedByUserIdResult_1.default;
|
|
62
68
|
var DrawByStampSheetResult_1 = tslib_1.__importDefault(require("./DrawByStampSheetResult"));
|
|
63
69
|
exports.DrawByStampSheetResult = DrawByStampSheetResult_1.default;
|
|
64
70
|
var DescribeProbabilitiesResult_1 = tslib_1.__importDefault(require("./DescribeProbabilitiesResult"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;AA0C7D,mCA1CG,kCAAwB,CA0CH;AAzC5B,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,gGAAiE;AA0C7D,mCA1CG,kCAAwB,CA0CH;AAzC5B,oFAAqD;AA0CjD,6BA1CG,4BAAkB,CA0CH;AAzCtB,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,kHAAmF;AA0C/E,4CA1CG,2CAAiC,CA0CH;AAzCrC,4GAA6E;AA0CzE,yCA1CG,wCAA8B,CA0CH;AAzClC,sGAAuE;AA0CnE,sCA1CG,qCAA2B,CA0CH;AAzC/B,4GAA6E;AA0CzE,yCA1CG,wCAA8B,CA0CH;AAzClC,4GAA6E;AA0CzE,yCA1CG,wCAA8B,CA0CH;AAzClC,8GAA+E;AA0C3E,0CA1CG,yCAA+B,CA0CH;AAzCnC,wGAAyE;AA0CrE,uCA1CG,sCAA4B,CA0CH;AAzChC,kGAAmE;AA0C/D,oCA1CG,mCAAyB,CA0CH;AAzC7B,wGAAyE;AA0CrE,uCA1CG,sCAA4B,CA0CH;AAzChC,wGAAyE;AA0CrE,uCA1CG,sCAA4B,CA0CH;AAzChC,sGAAuE;AA0CnE,sCA1CG,qCAA2B,CA0CH;AAzC/B,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,kGAAmE;AA0C/D,oCA1CG,mCAAyB,CA0CH;AAzC7B,sFAAuD;AA0CnD,8BA1CG,6BAAmB,CA0CH;AAzCvB,oFAAqD;AA0CjD,6BA1CG,4BAAkB,CA0CH;AAzCtB,gFAAiD;AA0C7C,2BA1CG,0BAAgB,CA0CH;AAzCpB,gGAAiE;AA0C7D,mCA1CG,kCAAwB,CA0CH;AAzC5B,gHAAiF;AA0C7E,2CA1CG,0CAAgC,CA0CH;AAzCpC,4FAA6D;AA0CzD,iCA1CG,gCAAsB,CA0CH;AAzC1B,sGAAuE;AA0CnE,sCA1CG,qCAA2B,CA0CH;AAzC/B,sHAAuF;AA0CnF,8CA1CG,6CAAmC,CA0CH;AAzCvC,oFAAqD;AA0CjD,6BA1CG,4BAAkB,CA0CH;AAzCtB,0GAA2E;AA0CvE,wCA1CG,uCAA6B,CA0CH;AAzCjC,gHAAiF;AA0C7E,2CA1CG,0CAAgC,CA0CH;AAzCpC,oIAAqG;AA0CjG,qDA1CG,oDAA0C,CA0CH;AAzC9C,kGAAmE;AA0C/D,oCA1CG,mCAAyB,CA0CH;AAzC7B,sFAAuD;AA0CnD,8BA1CG,6BAAmB,CA0CH;AAzCvB,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,sFAAuD;AA0CnD,8BA1CG,6BAAmB,CA0CH;AAzCvB,sGAAuE;AA0CnE,sCA1CG,qCAA2B,CA0CH;AAzC/B,wEAAyC;AA0CrC,uBA1CG,sBAAY,CA0CH;AAzChB,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,4EAA6C;AA0CzC,yBA1CG,wBAAc,CA0CH;AAzClB,4FAA6D;AA0CzD,iCA1CG,gCAAsB,CA0CH"}
|
package/lottery/result/index.ts
CHANGED
|
@@ -34,6 +34,9 @@ import GetLotteryModelResult from "./GetLotteryModelResult"
|
|
|
34
34
|
import DescribePrizeTablesResult from "./DescribePrizeTablesResult"
|
|
35
35
|
import GetPrizeTableResult from "./GetPrizeTableResult"
|
|
36
36
|
import DrawByUserIdResult from "./DrawByUserIdResult"
|
|
37
|
+
import PredictionResult from "./PredictionResult"
|
|
38
|
+
import PredictionByUserIdResult from "./PredictionByUserIdResult"
|
|
39
|
+
import DrawWithRandomSeedByUserIdResult from "./DrawWithRandomSeedByUserIdResult"
|
|
37
40
|
import DrawByStampSheetResult from "./DrawByStampSheetResult"
|
|
38
41
|
import DescribeProbabilitiesResult from "./DescribeProbabilitiesResult"
|
|
39
42
|
import DescribeProbabilitiesByUserIdResult from "./DescribeProbabilitiesByUserIdResult"
|
|
@@ -73,6 +76,9 @@ export {
|
|
|
73
76
|
DescribePrizeTablesResult,
|
|
74
77
|
GetPrizeTableResult,
|
|
75
78
|
DrawByUserIdResult,
|
|
79
|
+
PredictionResult,
|
|
80
|
+
PredictionByUserIdResult,
|
|
81
|
+
DrawWithRandomSeedByUserIdResult,
|
|
76
82
|
DrawByStampSheetResult,
|
|
77
83
|
DescribeProbabilitiesResult,
|
|
78
84
|
DescribeProbabilitiesByUserIdResult,
|