gs2 1.3.194 → 1.3.196
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/inventory/model/HeldCount.d.ts +17 -0
- package/inventory/model/HeldCount.js +62 -0
- package/inventory/model/HeldCount.js.map +1 -0
- package/inventory/model/HeldCount.ts +60 -0
- package/inventory/model/index.d.ts +2 -1
- package/inventory/model/index.js +3 -1
- package/inventory/model/index.js.map +1 -1
- package/inventory/model/index.ts +2 -0
- package/inventory/request/SetBigItemByStampSheetRequest.d.ts +25 -0
- package/inventory/request/SetBigItemByStampSheetRequest.js +83 -0
- package/inventory/request/SetBigItemByStampSheetRequest.js.map +1 -0
- package/inventory/request/SetBigItemByStampSheetRequest.ts +90 -0
- package/inventory/request/SetBigItemByUserIdRequest.d.ts +41 -0
- package/inventory/request/SetBigItemByUserIdRequest.js +137 -0
- package/inventory/request/SetBigItemByUserIdRequest.js.map +1 -0
- package/inventory/request/SetBigItemByUserIdRequest.ts +147 -0
- package/inventory/request/SetSimpleItemsByStampSheetRequest.d.ts +25 -0
- package/inventory/request/SetSimpleItemsByStampSheetRequest.js +83 -0
- package/inventory/request/SetSimpleItemsByStampSheetRequest.js.map +1 -0
- package/inventory/request/SetSimpleItemsByStampSheetRequest.ts +90 -0
- package/inventory/request/SetSimpleItemsByUserIdRequest.d.ts +38 -0
- package/inventory/request/SetSimpleItemsByUserIdRequest.js +131 -0
- package/inventory/request/SetSimpleItemsByUserIdRequest.js.map +1 -0
- package/inventory/request/SetSimpleItemsByUserIdRequest.ts +141 -0
- package/inventory/request/index.d.ts +5 -1
- package/inventory/request/index.js +9 -1
- package/inventory/request/index.js.map +1 -1
- package/inventory/request/index.ts +8 -0
- package/inventory/rest.d.ts +4 -0
- package/inventory/rest.js +119 -0
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +135 -0
- package/inventory/result/SetBigItemByStampSheetResult.d.ts +14 -0
- package/inventory/result/SetBigItemByStampSheetResult.js +48 -0
- package/inventory/result/SetBigItemByStampSheetResult.js.map +1 -0
- package/inventory/result/SetBigItemByStampSheetResult.ts +48 -0
- package/inventory/result/SetBigItemByUserIdResult.d.ts +14 -0
- package/inventory/result/SetBigItemByUserIdResult.js +48 -0
- package/inventory/result/SetBigItemByUserIdResult.js.map +1 -0
- package/inventory/result/SetBigItemByUserIdResult.ts +48 -0
- package/inventory/result/SetSimpleItemsByStampSheetResult.d.ts +14 -0
- package/inventory/result/SetSimpleItemsByStampSheetResult.js +53 -0
- package/inventory/result/SetSimpleItemsByStampSheetResult.js.map +1 -0
- package/inventory/result/SetSimpleItemsByStampSheetResult.ts +56 -0
- package/inventory/result/SetSimpleItemsByUserIdResult.d.ts +14 -0
- package/inventory/result/SetSimpleItemsByUserIdResult.js +53 -0
- package/inventory/result/SetSimpleItemsByUserIdResult.js.map +1 -0
- package/inventory/result/SetSimpleItemsByUserIdResult.ts +56 -0
- package/inventory/result/index.d.ts +5 -1
- package/inventory/result/index.js +9 -1
- package/inventory/result/index.js.map +1 -1
- package/inventory/result/index.ts +8 -0
- package/package.json +1 -1
- package/stateMachine/model/AutoRunTransactionSetting.d.ts +17 -0
- package/stateMachine/model/AutoRunTransactionSetting.js +62 -0
- package/stateMachine/model/AutoRunTransactionSetting.js.map +1 -0
- package/stateMachine/model/AutoRunTransactionSetting.ts +60 -0
- package/stateMachine/model/ChangeStateEvent.d.ts +21 -0
- package/stateMachine/model/ChangeStateEvent.js +76 -0
- package/stateMachine/model/ChangeStateEvent.js.map +1 -0
- package/stateMachine/model/ChangeStateEvent.ts +74 -0
- package/stateMachine/model/EmitEvent.d.ts +21 -0
- package/stateMachine/model/EmitEvent.js +76 -0
- package/stateMachine/model/EmitEvent.js.map +1 -0
- package/stateMachine/model/EmitEvent.ts +74 -0
- package/stateMachine/model/Event.d.ts +23 -0
- package/stateMachine/model/Event.js +80 -0
- package/stateMachine/model/Event.js.map +1 -0
- package/stateMachine/model/Event.ts +76 -0
- package/stateMachine/model/Namespace.d.ts +9 -0
- package/stateMachine/model/Namespace.js +34 -5
- package/stateMachine/model/Namespace.js.map +1 -1
- package/stateMachine/model/Namespace.ts +29 -0
- package/stateMachine/model/RandomStatus.d.ts +18 -0
- package/stateMachine/model/RandomStatus.js +70 -0
- package/stateMachine/model/RandomStatus.js.map +1 -0
- package/stateMachine/model/RandomStatus.ts +69 -0
- package/stateMachine/model/RandomUsed.d.ts +17 -0
- package/stateMachine/model/RandomUsed.js +62 -0
- package/stateMachine/model/RandomUsed.js.map +1 -0
- package/stateMachine/model/RandomUsed.ts +60 -0
- package/stateMachine/model/Status.d.ts +13 -0
- package/stateMachine/model/Status.js +44 -0
- package/stateMachine/model/Status.js.map +1 -1
- package/stateMachine/model/Status.ts +44 -0
- package/stateMachine/model/TransactionSetting.d.ts +28 -0
- package/stateMachine/model/TransactionSetting.js +93 -0
- package/stateMachine/model/TransactionSetting.js.map +1 -0
- package/stateMachine/model/TransactionSetting.ts +91 -0
- package/stateMachine/model/index.d.ts +7 -1
- package/stateMachine/model/index.js +13 -1
- package/stateMachine/model/index.js.map +1 -1
- package/stateMachine/model/index.ts +12 -0
- package/stateMachine/request/CreateNamespaceRequest.d.ts +8 -0
- package/stateMachine/request/CreateNamespaceRequest.js +33 -5
- package/stateMachine/request/CreateNamespaceRequest.js.map +1 -1
- package/stateMachine/request/CreateNamespaceRequest.ts +28 -0
- package/stateMachine/request/ReportByUserIdRequest.d.ts +38 -0
- package/stateMachine/request/ReportByUserIdRequest.js +131 -0
- package/stateMachine/request/ReportByUserIdRequest.js.map +1 -0
- package/stateMachine/request/ReportByUserIdRequest.ts +141 -0
- package/stateMachine/request/ReportRequest.d.ts +38 -0
- package/stateMachine/request/ReportRequest.js +131 -0
- package/stateMachine/request/ReportRequest.js.map +1 -0
- package/stateMachine/request/ReportRequest.ts +141 -0
- package/stateMachine/request/StartStateMachineByUserIdRequest.d.ts +4 -0
- package/stateMachine/request/StartStateMachineByUserIdRequest.js +14 -0
- package/stateMachine/request/StartStateMachineByUserIdRequest.js.map +1 -1
- package/stateMachine/request/StartStateMachineByUserIdRequest.ts +14 -0
- package/stateMachine/request/UpdateNamespaceRequest.d.ts +8 -0
- package/stateMachine/request/UpdateNamespaceRequest.js +33 -5
- package/stateMachine/request/UpdateNamespaceRequest.js.map +1 -1
- package/stateMachine/request/UpdateNamespaceRequest.ts +28 -0
- package/stateMachine/request/index.d.ts +3 -1
- package/stateMachine/request/index.js +5 -1
- package/stateMachine/request/index.js.map +1 -1
- package/stateMachine/request/index.ts +4 -0
- package/stateMachine/rest.d.ts +2 -0
- package/stateMachine/rest.js +85 -14
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +79 -0
- package/stateMachine/result/ReportByUserIdResult.d.ts +14 -0
- package/stateMachine/result/ReportByUserIdResult.js +48 -0
- package/stateMachine/result/ReportByUserIdResult.js.map +1 -0
- package/stateMachine/result/ReportByUserIdResult.ts +48 -0
- package/stateMachine/result/ReportResult.d.ts +14 -0
- package/stateMachine/result/ReportResult.js +48 -0
- package/stateMachine/result/ReportResult.js.map +1 -0
- package/stateMachine/result/ReportResult.ts +48 -0
- package/stateMachine/result/index.d.ts +3 -1
- package/stateMachine/result/index.js +5 -1
- package/stateMachine/result/index.js.map +1 -1
- package/stateMachine/result/index.ts +4 -0
package/inventory/rest.ts
CHANGED
|
@@ -3419,6 +3419,42 @@ export default class Gs2InventoryRestClient extends AbstractGs2RestClient {
|
|
|
3419
3419
|
});
|
|
3420
3420
|
}
|
|
3421
3421
|
|
|
3422
|
+
public setSimpleItemsByUserId(request: Request.SetSimpleItemsByUserIdRequest): Promise<Result.SetSimpleItemsByUserIdResult> {
|
|
3423
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3424
|
+
.replace('{service}', 'inventory')
|
|
3425
|
+
.replace('{region}', this.session.region)
|
|
3426
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
3427
|
+
.replace('{inventoryName}', String(request.getInventoryName() ?? 'null') === "" ? "null" : String(request.getInventoryName() ?? 'null'))
|
|
3428
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
3429
|
+
|
|
3430
|
+
const headers = this.createAuthorizedHeaders();
|
|
3431
|
+
if (request.getRequestId()) {
|
|
3432
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3433
|
+
}
|
|
3434
|
+
if (request.getDuplicationAvoider()) {
|
|
3435
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
3436
|
+
}
|
|
3437
|
+
const body: {[key: string]: any} = {
|
|
3438
|
+
'contextStack': request.getContextStack() ?? null,
|
|
3439
|
+
'counts': request.getCounts()?.map((item) => item.toDict()) ?? null,
|
|
3440
|
+
};
|
|
3441
|
+
return axios.put(
|
|
3442
|
+
url,
|
|
3443
|
+
body,
|
|
3444
|
+
{
|
|
3445
|
+
headers,
|
|
3446
|
+
},
|
|
3447
|
+
).then((response: any) => {
|
|
3448
|
+
return Result.SetSimpleItemsByUserIdResult.fromDict(response.data);
|
|
3449
|
+
}).catch((error: any) => {
|
|
3450
|
+
if (error.response) {
|
|
3451
|
+
throw JSON.parse(error.response.data.message);
|
|
3452
|
+
} else {
|
|
3453
|
+
throw [];
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3422
3458
|
public deleteSimpleItemsByUserId(request: Request.DeleteSimpleItemsByUserIdRequest): Promise<Result.DeleteSimpleItemsByUserIdResult> {
|
|
3423
3459
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
3424
3460
|
.replace('{service}', 'inventory')
|
|
@@ -3590,6 +3626,37 @@ export default class Gs2InventoryRestClient extends AbstractGs2RestClient {
|
|
|
3590
3626
|
});
|
|
3591
3627
|
}
|
|
3592
3628
|
|
|
3629
|
+
public setSimpleItemsByStampSheet(request: Request.SetSimpleItemsByStampSheetRequest): Promise<Result.SetSimpleItemsByStampSheetResult> {
|
|
3630
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/set')
|
|
3631
|
+
.replace('{service}', 'inventory')
|
|
3632
|
+
.replace('{region}', this.session.region);
|
|
3633
|
+
|
|
3634
|
+
const headers = this.createAuthorizedHeaders();
|
|
3635
|
+
if (request.getRequestId()) {
|
|
3636
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3637
|
+
}
|
|
3638
|
+
const body: {[key: string]: any} = {
|
|
3639
|
+
'contextStack': request.getContextStack() ?? null,
|
|
3640
|
+
'stampSheet': request.getStampSheet() ?? null,
|
|
3641
|
+
'keyId': request.getKeyId() ?? null,
|
|
3642
|
+
};
|
|
3643
|
+
return axios.post(
|
|
3644
|
+
url,
|
|
3645
|
+
body,
|
|
3646
|
+
{
|
|
3647
|
+
headers,
|
|
3648
|
+
},
|
|
3649
|
+
).then((response: any) => {
|
|
3650
|
+
return Result.SetSimpleItemsByStampSheetResult.fromDict(response.data);
|
|
3651
|
+
}).catch((error: any) => {
|
|
3652
|
+
if (error.response) {
|
|
3653
|
+
throw JSON.parse(error.response.data.message);
|
|
3654
|
+
} else {
|
|
3655
|
+
throw [];
|
|
3656
|
+
}
|
|
3657
|
+
});
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3593
3660
|
public verifySimpleItemByStampTask(request: Request.VerifySimpleItemByStampTaskRequest): Promise<Result.VerifySimpleItemByStampTaskResult> {
|
|
3594
3661
|
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/verify')
|
|
3595
3662
|
.replace('{service}', 'inventory')
|
|
@@ -3856,6 +3923,43 @@ export default class Gs2InventoryRestClient extends AbstractGs2RestClient {
|
|
|
3856
3923
|
});
|
|
3857
3924
|
}
|
|
3858
3925
|
|
|
3926
|
+
public setBigItemByUserId(request: Request.SetBigItemByUserIdRequest): Promise<Result.SetBigItemByUserIdResult> {
|
|
3927
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3928
|
+
.replace('{service}', 'inventory')
|
|
3929
|
+
.replace('{region}', this.session.region)
|
|
3930
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
3931
|
+
.replace('{inventoryName}', String(request.getInventoryName() ?? 'null') === "" ? "null" : String(request.getInventoryName() ?? 'null'))
|
|
3932
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
3933
|
+
.replace('{itemName}', String(request.getItemName() ?? 'null') === "" ? "null" : String(request.getItemName() ?? 'null'));
|
|
3934
|
+
|
|
3935
|
+
const headers = this.createAuthorizedHeaders();
|
|
3936
|
+
if (request.getRequestId()) {
|
|
3937
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
3938
|
+
}
|
|
3939
|
+
if (request.getDuplicationAvoider()) {
|
|
3940
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
3941
|
+
}
|
|
3942
|
+
const body: {[key: string]: any} = {
|
|
3943
|
+
'contextStack': request.getContextStack() ?? null,
|
|
3944
|
+
'count': request.getCount() ?? null,
|
|
3945
|
+
};
|
|
3946
|
+
return axios.put(
|
|
3947
|
+
url,
|
|
3948
|
+
body,
|
|
3949
|
+
{
|
|
3950
|
+
headers,
|
|
3951
|
+
},
|
|
3952
|
+
).then((response: any) => {
|
|
3953
|
+
return Result.SetBigItemByUserIdResult.fromDict(response.data);
|
|
3954
|
+
}).catch((error: any) => {
|
|
3955
|
+
if (error.response) {
|
|
3956
|
+
throw JSON.parse(error.response.data.message);
|
|
3957
|
+
} else {
|
|
3958
|
+
throw [];
|
|
3959
|
+
}
|
|
3960
|
+
});
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3859
3963
|
public deleteBigItemByUserId(request: Request.DeleteBigItemByUserIdRequest): Promise<Result.DeleteBigItemByUserIdResult> {
|
|
3860
3964
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/big/inventory/{inventoryName}/item/{itemName}')
|
|
3861
3965
|
.replace('{service}', 'inventory')
|
|
@@ -4028,6 +4132,37 @@ export default class Gs2InventoryRestClient extends AbstractGs2RestClient {
|
|
|
4028
4132
|
});
|
|
4029
4133
|
}
|
|
4030
4134
|
|
|
4135
|
+
public setBigItemByStampSheet(request: Request.SetBigItemByStampSheetRequest): Promise<Result.SetBigItemByStampSheetResult> {
|
|
4136
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/set')
|
|
4137
|
+
.replace('{service}', 'inventory')
|
|
4138
|
+
.replace('{region}', this.session.region);
|
|
4139
|
+
|
|
4140
|
+
const headers = this.createAuthorizedHeaders();
|
|
4141
|
+
if (request.getRequestId()) {
|
|
4142
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
4143
|
+
}
|
|
4144
|
+
const body: {[key: string]: any} = {
|
|
4145
|
+
'contextStack': request.getContextStack() ?? null,
|
|
4146
|
+
'stampSheet': request.getStampSheet() ?? null,
|
|
4147
|
+
'keyId': request.getKeyId() ?? null,
|
|
4148
|
+
};
|
|
4149
|
+
return axios.post(
|
|
4150
|
+
url,
|
|
4151
|
+
body,
|
|
4152
|
+
{
|
|
4153
|
+
headers,
|
|
4154
|
+
},
|
|
4155
|
+
).then((response: any) => {
|
|
4156
|
+
return Result.SetBigItemByStampSheetResult.fromDict(response.data);
|
|
4157
|
+
}).catch((error: any) => {
|
|
4158
|
+
if (error.response) {
|
|
4159
|
+
throw JSON.parse(error.response.data.message);
|
|
4160
|
+
} else {
|
|
4161
|
+
throw [];
|
|
4162
|
+
}
|
|
4163
|
+
});
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4031
4166
|
public verifyBigItemByStampTask(request: Request.VerifyBigItemByStampTaskRequest): Promise<Result.VerifyBigItemByStampTaskResult> {
|
|
4032
4167
|
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/big/item/verify')
|
|
4033
4168
|
.replace('{service}', 'inventory')
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Inventory from '../model';
|
|
3
|
+
export default class SetBigItemByStampSheetResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Inventory.BigItem | null;
|
|
6
|
+
setItem(item: Gs2Inventory.BigItem | null): this;
|
|
7
|
+
withItem(item: Gs2Inventory.BigItem | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): SetBigItemByStampSheetResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Gs2Inventory = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetBigItemByStampSheetResult = /** @class */ (function () {
|
|
21
|
+
function SetBigItemByStampSheetResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
SetBigItemByStampSheetResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
SetBigItemByStampSheetResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
SetBigItemByStampSheetResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
SetBigItemByStampSheetResult.fromDict = function (data) {
|
|
36
|
+
return new SetBigItemByStampSheetResult()
|
|
37
|
+
.withItem(Gs2Inventory.BigItem.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
SetBigItemByStampSheetResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return SetBigItemByStampSheetResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = SetBigItemByStampSheetResult;
|
|
48
|
+
//# sourceMappingURL=SetBigItemByStampSheetResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetBigItemByStampSheetResult.js","sourceRoot":"","sources":["SetBigItemByStampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAA8B,IAAI,CAAC;IA0BnD,CAAC;IAxBU,8CAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,8CAAO,GAAd,UAAe,IAA+B;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+CAAQ,GAAf,UAAgB,IAA+B;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,4BAA4B,EAAE;aACpC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEM,6CAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,mCAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Gs2Inventory from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetBigItemByStampSheetResult implements IResult {
|
|
22
|
+
private item: Gs2Inventory.BigItem|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Inventory.BigItem|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Inventory.BigItem|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Inventory.BigItem|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): SetBigItemByStampSheetResult {
|
|
39
|
+
return new SetBigItemByStampSheetResult()
|
|
40
|
+
.withItem(Gs2Inventory.BigItem.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Inventory from '../model';
|
|
3
|
+
export default class SetBigItemByUserIdResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Inventory.BigItem | null;
|
|
6
|
+
setItem(item: Gs2Inventory.BigItem | null): this;
|
|
7
|
+
withItem(item: Gs2Inventory.BigItem | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): SetBigItemByUserIdResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Gs2Inventory = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetBigItemByUserIdResult = /** @class */ (function () {
|
|
21
|
+
function SetBigItemByUserIdResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
SetBigItemByUserIdResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
SetBigItemByUserIdResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
SetBigItemByUserIdResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
SetBigItemByUserIdResult.fromDict = function (data) {
|
|
36
|
+
return new SetBigItemByUserIdResult()
|
|
37
|
+
.withItem(Gs2Inventory.BigItem.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
SetBigItemByUserIdResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return SetBigItemByUserIdResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = SetBigItemByUserIdResult;
|
|
48
|
+
//# sourceMappingURL=SetBigItemByUserIdResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetBigItemByUserIdResult.js","sourceRoot":"","sources":["SetBigItemByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAA8B,IAAI,CAAC;IA0BnD,CAAC;IAxBU,0CAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,0CAAO,GAAd,UAAe,IAA+B;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAQ,GAAf,UAAgB,IAA+B;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,iCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,wBAAwB,EAAE;aAChC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEM,yCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,+BAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Gs2Inventory from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetBigItemByUserIdResult implements IResult {
|
|
22
|
+
private item: Gs2Inventory.BigItem|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Inventory.BigItem|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Inventory.BigItem|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Inventory.BigItem|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): SetBigItemByUserIdResult {
|
|
39
|
+
return new SetBigItemByUserIdResult()
|
|
40
|
+
.withItem(Gs2Inventory.BigItem.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Inventory from '../model';
|
|
3
|
+
export default class SetSimpleItemsByStampSheetResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
getItems(): Gs2Inventory.SimpleItem[] | null;
|
|
6
|
+
setItems(items: Gs2Inventory.SimpleItem[] | null): this;
|
|
7
|
+
withItems(items: Gs2Inventory.SimpleItem[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): SetSimpleItemsByStampSheetResult;
|
|
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 Gs2Inventory = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetSimpleItemsByStampSheetResult = /** @class */ (function () {
|
|
21
|
+
function SetSimpleItemsByStampSheetResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
}
|
|
24
|
+
SetSimpleItemsByStampSheetResult.prototype.getItems = function () {
|
|
25
|
+
return this.items;
|
|
26
|
+
};
|
|
27
|
+
SetSimpleItemsByStampSheetResult.prototype.setItems = function (items) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
SetSimpleItemsByStampSheetResult.prototype.withItems = function (items) {
|
|
32
|
+
this.items = items;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
SetSimpleItemsByStampSheetResult.fromDict = function (data) {
|
|
36
|
+
return new SetSimpleItemsByStampSheetResult()
|
|
37
|
+
.withItems(data.items ?
|
|
38
|
+
data.items.map(function (item) {
|
|
39
|
+
return Gs2Inventory.SimpleItem.fromDict(item);
|
|
40
|
+
}) : []);
|
|
41
|
+
};
|
|
42
|
+
SetSimpleItemsByStampSheetResult.prototype.toDict = function () {
|
|
43
|
+
return {
|
|
44
|
+
"items": this.getItems() ?
|
|
45
|
+
this.getItems().map(function (item) {
|
|
46
|
+
return item.toDict();
|
|
47
|
+
}) : [],
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return SetSimpleItemsByStampSheetResult;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = SetSimpleItemsByStampSheetResult;
|
|
53
|
+
//# sourceMappingURL=SetSimpleItemsByStampSheetResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSimpleItemsByStampSheetResult.js","sourceRoot":"","sources":["SetSimpleItemsByStampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QACY,UAAK,GAAmC,IAAI,CAAC;IAkCzD,CAAC;IAhCU,mDAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,mDAAQ,GAAf,UAAgB,KAAqC;QACjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAS,GAAhB,UAAiB,KAAqC;QAClD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,gCAAgC,EAAE;aACxC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAClD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,iDAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAA6B;oBAC/C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,uCAAC;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 Gs2Inventory from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetSimpleItemsByStampSheetResult implements IResult {
|
|
22
|
+
private items: Gs2Inventory.SimpleItem[]|null = null;
|
|
23
|
+
|
|
24
|
+
public getItems(): Gs2Inventory.SimpleItem[]|null {
|
|
25
|
+
return this.items;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItems(items: Gs2Inventory.SimpleItem[]|null) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItems(items: Gs2Inventory.SimpleItem[]|null): this {
|
|
34
|
+
this.items = items;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): SetSimpleItemsByStampSheetResult {
|
|
39
|
+
return new SetSimpleItemsByStampSheetResult()
|
|
40
|
+
.withItems(data.items ?
|
|
41
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
42
|
+
return Gs2Inventory.SimpleItem.fromDict(item);
|
|
43
|
+
}
|
|
44
|
+
) : []);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public toDict(): {[key: string]: any} {
|
|
48
|
+
return {
|
|
49
|
+
"items": this.getItems() ?
|
|
50
|
+
this.getItems()!.map((item: Gs2Inventory.SimpleItem) => {
|
|
51
|
+
return item.toDict();
|
|
52
|
+
}
|
|
53
|
+
) : [],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Inventory from '../model';
|
|
3
|
+
export default class SetSimpleItemsByUserIdResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
getItems(): Gs2Inventory.SimpleItem[] | null;
|
|
6
|
+
setItems(items: Gs2Inventory.SimpleItem[] | null): this;
|
|
7
|
+
withItems(items: Gs2Inventory.SimpleItem[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): SetSimpleItemsByUserIdResult;
|
|
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 Gs2Inventory = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetSimpleItemsByUserIdResult = /** @class */ (function () {
|
|
21
|
+
function SetSimpleItemsByUserIdResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
}
|
|
24
|
+
SetSimpleItemsByUserIdResult.prototype.getItems = function () {
|
|
25
|
+
return this.items;
|
|
26
|
+
};
|
|
27
|
+
SetSimpleItemsByUserIdResult.prototype.setItems = function (items) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
SetSimpleItemsByUserIdResult.prototype.withItems = function (items) {
|
|
32
|
+
this.items = items;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
SetSimpleItemsByUserIdResult.fromDict = function (data) {
|
|
36
|
+
return new SetSimpleItemsByUserIdResult()
|
|
37
|
+
.withItems(data.items ?
|
|
38
|
+
data.items.map(function (item) {
|
|
39
|
+
return Gs2Inventory.SimpleItem.fromDict(item);
|
|
40
|
+
}) : []);
|
|
41
|
+
};
|
|
42
|
+
SetSimpleItemsByUserIdResult.prototype.toDict = function () {
|
|
43
|
+
return {
|
|
44
|
+
"items": this.getItems() ?
|
|
45
|
+
this.getItems().map(function (item) {
|
|
46
|
+
return item.toDict();
|
|
47
|
+
}) : [],
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return SetSimpleItemsByUserIdResult;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = SetSimpleItemsByUserIdResult;
|
|
53
|
+
//# sourceMappingURL=SetSimpleItemsByUserIdResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSimpleItemsByUserIdResult.js","sourceRoot":"","sources":["SetSimpleItemsByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QACY,UAAK,GAAmC,IAAI,CAAC;IAkCzD,CAAC;IAhCU,+CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,+CAAQ,GAAf,UAAgB,KAAqC;QACjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAS,GAAhB,UAAiB,KAAqC;QAClD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,4BAA4B,EAAE;aACpC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAClD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,6CAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAA6B;oBAC/C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,mCAAC;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 Gs2Inventory from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetSimpleItemsByUserIdResult implements IResult {
|
|
22
|
+
private items: Gs2Inventory.SimpleItem[]|null = null;
|
|
23
|
+
|
|
24
|
+
public getItems(): Gs2Inventory.SimpleItem[]|null {
|
|
25
|
+
return this.items;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItems(items: Gs2Inventory.SimpleItem[]|null) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItems(items: Gs2Inventory.SimpleItem[]|null): this {
|
|
34
|
+
this.items = items;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): SetSimpleItemsByUserIdResult {
|
|
39
|
+
return new SetSimpleItemsByUserIdResult()
|
|
40
|
+
.withItems(data.items ?
|
|
41
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
42
|
+
return Gs2Inventory.SimpleItem.fromDict(item);
|
|
43
|
+
}
|
|
44
|
+
) : []);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public toDict(): {[key: string]: any} {
|
|
48
|
+
return {
|
|
49
|
+
"items": this.getItems() ?
|
|
50
|
+
this.getItems()!.map((item: Gs2Inventory.SimpleItem) => {
|
|
51
|
+
return item.toDict();
|
|
52
|
+
}
|
|
53
|
+
) : [],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|