gs2 1.4.20 → 1.4.22
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/chat/model/Namespace.d.ts +4 -0
- package/chat/model/Namespace.js +14 -0
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +14 -0
- package/chat/request/CreateNamespaceRequest.d.ts +4 -0
- package/chat/request/CreateNamespaceRequest.js +14 -0
- package/chat/request/CreateNamespaceRequest.js.map +1 -1
- package/chat/request/CreateNamespaceRequest.ts +14 -0
- package/chat/request/DescribeLatestMessagesByUserIdRequest.d.ts +41 -0
- package/chat/request/DescribeLatestMessagesByUserIdRequest.js +139 -0
- package/chat/request/DescribeLatestMessagesByUserIdRequest.js.map +1 -0
- package/chat/request/DescribeLatestMessagesByUserIdRequest.ts +146 -0
- package/chat/request/DescribeLatestMessagesRequest.d.ts +37 -0
- package/chat/request/DescribeLatestMessagesRequest.js +125 -0
- package/chat/request/DescribeLatestMessagesRequest.js.map +1 -0
- package/chat/request/DescribeLatestMessagesRequest.ts +132 -0
- package/chat/request/UpdateNamespaceRequest.d.ts +4 -0
- package/chat/request/UpdateNamespaceRequest.js +14 -0
- package/chat/request/UpdateNamespaceRequest.js.map +1 -1
- package/chat/request/UpdateNamespaceRequest.ts +14 -0
- package/chat/request/index.d.ts +3 -1
- package/chat/request/index.js +5 -1
- package/chat/request/index.js.map +1 -1
- package/chat/request/index.ts +4 -0
- package/chat/rest.d.ts +2 -0
- package/chat/rest.js +75 -16
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +67 -0
- package/chat/result/DescribeLatestMessagesByUserIdResult.d.ts +14 -0
- package/chat/result/DescribeLatestMessagesByUserIdResult.js +53 -0
- package/chat/result/DescribeLatestMessagesByUserIdResult.js.map +1 -0
- package/chat/result/DescribeLatestMessagesByUserIdResult.ts +55 -0
- package/chat/result/DescribeLatestMessagesResult.d.ts +14 -0
- package/chat/result/DescribeLatestMessagesResult.js +53 -0
- package/chat/result/DescribeLatestMessagesResult.js.map +1 -0
- package/chat/result/DescribeLatestMessagesResult.ts +55 -0
- package/chat/result/index.d.ts +3 -1
- package/chat/result/index.js +5 -1
- package/chat/result/index.js.map +1 -1
- package/chat/result/index.ts +4 -0
- package/dictionary/model/Entry.d.ts +2 -2
- package/dictionary/model/Entry.js +10 -10
- package/dictionary/model/Entry.js.map +1 -1
- package/dictionary/model/Entry.ts +10 -10
- package/dictionary/model/EntryModel.d.ts +2 -2
- package/dictionary/model/EntryModel.js +9 -9
- package/dictionary/model/EntryModel.js.map +1 -1
- package/dictionary/model/EntryModel.ts +9 -9
- package/dictionary/model/EntryModelMaster.d.ts +2 -2
- package/dictionary/model/EntryModelMaster.js +9 -9
- package/dictionary/model/EntryModelMaster.js.map +1 -1
- package/dictionary/model/EntryModelMaster.ts +9 -9
- package/guild/request/SearchGuildsByUserIdRequest.d.ts +4 -0
- package/guild/request/SearchGuildsByUserIdRequest.js +14 -0
- package/guild/request/SearchGuildsByUserIdRequest.js.map +1 -1
- package/guild/request/SearchGuildsByUserIdRequest.ts +14 -0
- package/guild/request/SearchGuildsRequest.d.ts +4 -0
- package/guild/request/SearchGuildsRequest.js +14 -0
- package/guild/request/SearchGuildsRequest.js.map +1 -1
- package/guild/request/SearchGuildsRequest.ts +14 -0
- package/guild/rest.js +8 -6
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +2 -0
- package/log/request/QueryAccessLogRequest.d.ts +0 -4
- package/log/request/QueryAccessLogRequest.js +0 -12
- package/log/request/QueryAccessLogRequest.js.map +1 -1
- package/log/request/QueryAccessLogRequest.ts +0 -15
- package/log/request/QueryAccessLogWithTelemetryRequest.d.ts +0 -4
- package/log/request/QueryAccessLogWithTelemetryRequest.js +0 -12
- package/log/request/QueryAccessLogWithTelemetryRequest.js.map +1 -1
- package/log/request/QueryAccessLogWithTelemetryRequest.ts +0 -15
- package/log/request/QueryExecuteStampSheetLogRequest.d.ts +0 -4
- package/log/request/QueryExecuteStampSheetLogRequest.js +0 -12
- package/log/request/QueryExecuteStampSheetLogRequest.js.map +1 -1
- package/log/request/QueryExecuteStampSheetLogRequest.ts +0 -15
- package/log/request/QueryExecuteStampTaskLogRequest.d.ts +0 -4
- package/log/request/QueryExecuteStampTaskLogRequest.js +0 -12
- package/log/request/QueryExecuteStampTaskLogRequest.js.map +1 -1
- package/log/request/QueryExecuteStampTaskLogRequest.ts +0 -15
- package/log/request/QueryIssueStampSheetLogRequest.d.ts +0 -4
- package/log/request/QueryIssueStampSheetLogRequest.js +0 -12
- package/log/request/QueryIssueStampSheetLogRequest.js.map +1 -1
- package/log/request/QueryIssueStampSheetLogRequest.ts +0 -15
- package/log/rest.js +56 -71
- package/log/rest.js.map +1 -1
- package/log/rest.ts +0 -15
- package/package.json +1 -1
- package/script/model/Script.d.ts +4 -0
- package/script/model/Script.js +14 -0
- package/script/model/Script.js.map +1 -1
- package/script/model/Script.ts +14 -0
- package/script/request/CreateScriptFromGitHubRequest.d.ts +4 -0
- package/script/request/CreateScriptFromGitHubRequest.js +15 -1
- package/script/request/CreateScriptFromGitHubRequest.js.map +1 -1
- package/script/request/CreateScriptFromGitHubRequest.ts +15 -1
- package/script/request/CreateScriptRequest.d.ts +4 -0
- package/script/request/CreateScriptRequest.js +15 -1
- package/script/request/CreateScriptRequest.js.map +1 -1
- package/script/request/CreateScriptRequest.ts +15 -1
- package/script/request/DebugInvokeRequest.d.ts +4 -0
- package/script/request/DebugInvokeRequest.js +15 -1
- package/script/request/DebugInvokeRequest.js.map +1 -1
- package/script/request/DebugInvokeRequest.ts +15 -1
- package/script/request/InvokeByStampSheetRequest.d.ts +25 -0
- package/script/request/InvokeByStampSheetRequest.js +83 -0
- package/script/request/InvokeByStampSheetRequest.js.map +1 -0
- package/script/request/InvokeByStampSheetRequest.ts +90 -0
- package/script/request/InvokeScriptRequest.d.ts +4 -0
- package/script/request/InvokeScriptRequest.js +12 -0
- package/script/request/InvokeScriptRequest.js.map +1 -1
- package/script/request/InvokeScriptRequest.ts +15 -0
- package/script/request/UpdateScriptFromGitHubRequest.d.ts +4 -0
- package/script/request/UpdateScriptFromGitHubRequest.js +15 -1
- package/script/request/UpdateScriptFromGitHubRequest.js.map +1 -1
- package/script/request/UpdateScriptFromGitHubRequest.ts +15 -1
- package/script/request/UpdateScriptRequest.d.ts +4 -0
- package/script/request/UpdateScriptRequest.js +15 -1
- package/script/request/UpdateScriptRequest.js.map +1 -1
- package/script/request/UpdateScriptRequest.ts +15 -1
- package/script/request/index.d.ts +2 -1
- package/script/request/index.js +3 -1
- package/script/request/index.js.map +1 -1
- package/script/request/index.ts +2 -0
- package/script/rest.d.ts +1 -0
- package/script/rest.js +47 -12
- package/script/rest.js.map +1 -1
- package/script/rest.ts +39 -0
- package/script/result/InvokeByStampSheetResult.d.ts +38 -0
- package/script/result/InvokeByStampSheetResult.js +138 -0
- package/script/result/InvokeByStampSheetResult.js.map +1 -0
- package/script/result/InvokeByStampSheetResult.ts +157 -0
- package/script/result/index.d.ts +2 -1
- package/script/result/index.js +3 -1
- package/script/result/index.js.map +1 -1
- package/script/result/index.ts +2 -0
- package/serialKey/request/IssueOnceRequest.d.ts +29 -0
- package/serialKey/request/IssueOnceRequest.js +97 -0
- package/serialKey/request/IssueOnceRequest.js.map +1 -0
- package/serialKey/request/IssueOnceRequest.ts +104 -0
- package/serialKey/request/VerifyByStampTaskRequest.d.ts +25 -0
- package/serialKey/request/VerifyByStampTaskRequest.js +83 -0
- package/serialKey/request/VerifyByStampTaskRequest.js.map +1 -0
- package/serialKey/request/VerifyByStampTaskRequest.ts +90 -0
- package/serialKey/request/VerifyCodeByUserIdRequest.d.ts +41 -0
- package/serialKey/request/VerifyCodeByUserIdRequest.js +137 -0
- package/serialKey/request/VerifyCodeByUserIdRequest.js.map +1 -0
- package/serialKey/request/VerifyCodeByUserIdRequest.ts +147 -0
- package/serialKey/request/VerifyCodeRequest.d.ts +37 -0
- package/serialKey/request/VerifyCodeRequest.js +123 -0
- package/serialKey/request/VerifyCodeRequest.js.map +1 -0
- package/serialKey/request/VerifyCodeRequest.ts +133 -0
- package/serialKey/request/index.d.ts +5 -1
- package/serialKey/request/index.js +9 -1
- package/serialKey/request/index.js.map +1 -1
- package/serialKey/request/index.ts +8 -0
- package/serialKey/rest.d.ts +4 -0
- package/serialKey/rest.js +124 -0
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +140 -0
- package/serialKey/result/IssueOnceResult.d.ts +14 -0
- package/serialKey/result/IssueOnceResult.js +48 -0
- package/serialKey/result/IssueOnceResult.js.map +1 -0
- package/serialKey/result/IssueOnceResult.ts +47 -0
- package/serialKey/result/VerifyByStampTaskResult.d.ts +18 -0
- package/serialKey/result/VerifyByStampTaskResult.js +62 -0
- package/serialKey/result/VerifyByStampTaskResult.js.map +1 -0
- package/serialKey/result/VerifyByStampTaskResult.ts +64 -0
- package/serialKey/result/VerifyCodeByUserIdResult.d.ts +14 -0
- package/serialKey/result/VerifyCodeByUserIdResult.js +48 -0
- package/serialKey/result/VerifyCodeByUserIdResult.js.map +1 -0
- package/serialKey/result/VerifyCodeByUserIdResult.ts +47 -0
- package/serialKey/result/VerifyCodeResult.d.ts +14 -0
- package/serialKey/result/VerifyCodeResult.js +48 -0
- package/serialKey/result/VerifyCodeResult.js.map +1 -0
- package/serialKey/result/VerifyCodeResult.ts +47 -0
- package/serialKey/result/index.d.ts +5 -1
- package/serialKey/result/index.js +9 -1
- package/serialKey/result/index.js.map +1 -1
- package/serialKey/result/index.ts +8 -0
package/serialKey/rest.ts
CHANGED
|
@@ -565,6 +565,38 @@ export default class Gs2SerialKeyRestClient extends AbstractGs2RestClient {
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
+
public issueOnce(request: Request.IssueOnceRequest): Promise<Result.IssueOnceResult> {
|
|
569
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/serialKey')
|
|
570
|
+
.replace('{service}', 'serial-key')
|
|
571
|
+
.replace('{region}', this.session.region)
|
|
572
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
573
|
+
.replace('{campaignModelName}', String(request.getCampaignModelName() ?? 'null') === "" ? "null" : String(request.getCampaignModelName() ?? 'null'));
|
|
574
|
+
|
|
575
|
+
const headers = this.createAuthorizedHeaders();
|
|
576
|
+
if (request.getRequestId()) {
|
|
577
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
578
|
+
}
|
|
579
|
+
const body: {[key: string]: any} = {
|
|
580
|
+
'contextStack': request.getContextStack() ?? null,
|
|
581
|
+
'metadata': request.getMetadata() ?? null,
|
|
582
|
+
};
|
|
583
|
+
return axios.post(
|
|
584
|
+
url,
|
|
585
|
+
body,
|
|
586
|
+
{
|
|
587
|
+
headers,
|
|
588
|
+
},
|
|
589
|
+
).then((response: any) => {
|
|
590
|
+
return Result.IssueOnceResult.fromDict(response.data);
|
|
591
|
+
}).catch((error: any) => {
|
|
592
|
+
if (error.response) {
|
|
593
|
+
throw JSON.parse(error.response.data.message);
|
|
594
|
+
} else {
|
|
595
|
+
throw [];
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
|
|
568
600
|
public getSerialKey(request: Request.GetSerialKeyRequest): Promise<Result.GetSerialKeyResult> {
|
|
569
601
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/serialKey/{code}')
|
|
570
602
|
.replace('{service}', 'serial-key')
|
|
@@ -592,6 +624,83 @@ export default class Gs2SerialKeyRestClient extends AbstractGs2RestClient {
|
|
|
592
624
|
});
|
|
593
625
|
}
|
|
594
626
|
|
|
627
|
+
public verifyCode(request: Request.VerifyCodeRequest): Promise<Result.VerifyCodeResult> {
|
|
628
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/serialKey/verify')
|
|
629
|
+
.replace('{service}', 'serial-key')
|
|
630
|
+
.replace('{region}', this.session.region)
|
|
631
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
632
|
+
|
|
633
|
+
const headers = this.createAuthorizedHeaders();
|
|
634
|
+
if (request.getRequestId()) {
|
|
635
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
636
|
+
}
|
|
637
|
+
if (request.getAccessToken()) {
|
|
638
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
639
|
+
}
|
|
640
|
+
if (request.getDuplicationAvoider()) {
|
|
641
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
642
|
+
}
|
|
643
|
+
const body: {[key: string]: any} = {
|
|
644
|
+
'contextStack': request.getContextStack() ?? null,
|
|
645
|
+
'code': request.getCode() ?? null,
|
|
646
|
+
'verifyType': request.getVerifyType() ?? null,
|
|
647
|
+
};
|
|
648
|
+
return axios.post(
|
|
649
|
+
url,
|
|
650
|
+
body,
|
|
651
|
+
{
|
|
652
|
+
headers,
|
|
653
|
+
},
|
|
654
|
+
).then((response: any) => {
|
|
655
|
+
return Result.VerifyCodeResult.fromDict(response.data);
|
|
656
|
+
}).catch((error: any) => {
|
|
657
|
+
if (error.response) {
|
|
658
|
+
throw JSON.parse(error.response.data.message);
|
|
659
|
+
} else {
|
|
660
|
+
throw [];
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
public verifyCodeByUserId(request: Request.VerifyCodeByUserIdRequest): Promise<Result.VerifyCodeByUserIdResult> {
|
|
666
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/serialKey/verify')
|
|
667
|
+
.replace('{service}', 'serial-key')
|
|
668
|
+
.replace('{region}', this.session.region)
|
|
669
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
670
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
671
|
+
|
|
672
|
+
const headers = this.createAuthorizedHeaders();
|
|
673
|
+
if (request.getRequestId()) {
|
|
674
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
675
|
+
}
|
|
676
|
+
if (request.getDuplicationAvoider()) {
|
|
677
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
678
|
+
}
|
|
679
|
+
if (request.getTimeOffsetToken()) {
|
|
680
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
681
|
+
}
|
|
682
|
+
const body: {[key: string]: any} = {
|
|
683
|
+
'contextStack': request.getContextStack() ?? null,
|
|
684
|
+
'code': request.getCode() ?? null,
|
|
685
|
+
'verifyType': request.getVerifyType() ?? null,
|
|
686
|
+
};
|
|
687
|
+
return axios.post(
|
|
688
|
+
url,
|
|
689
|
+
body,
|
|
690
|
+
{
|
|
691
|
+
headers,
|
|
692
|
+
},
|
|
693
|
+
).then((response: any) => {
|
|
694
|
+
return Result.VerifyCodeByUserIdResult.fromDict(response.data);
|
|
695
|
+
}).catch((error: any) => {
|
|
696
|
+
if (error.response) {
|
|
697
|
+
throw JSON.parse(error.response.data.message);
|
|
698
|
+
} else {
|
|
699
|
+
throw [];
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
|
|
595
704
|
public use(request: Request.UseRequest): Promise<Result.UseResult> {
|
|
596
705
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/serialKey')
|
|
597
706
|
.replace('{service}', 'serial-key')
|
|
@@ -767,6 +876,37 @@ export default class Gs2SerialKeyRestClient extends AbstractGs2RestClient {
|
|
|
767
876
|
});
|
|
768
877
|
}
|
|
769
878
|
|
|
879
|
+
public verifyByStampTask(request: Request.VerifyByStampTaskRequest): Promise<Result.VerifyByStampTaskResult> {
|
|
880
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/serialKey/verify')
|
|
881
|
+
.replace('{service}', 'serial-key')
|
|
882
|
+
.replace('{region}', this.session.region);
|
|
883
|
+
|
|
884
|
+
const headers = this.createAuthorizedHeaders();
|
|
885
|
+
if (request.getRequestId()) {
|
|
886
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
887
|
+
}
|
|
888
|
+
const body: {[key: string]: any} = {
|
|
889
|
+
'contextStack': request.getContextStack() ?? null,
|
|
890
|
+
'stampTask': request.getStampTask() ?? null,
|
|
891
|
+
'keyId': request.getKeyId() ?? null,
|
|
892
|
+
};
|
|
893
|
+
return axios.post(
|
|
894
|
+
url,
|
|
895
|
+
body,
|
|
896
|
+
{
|
|
897
|
+
headers,
|
|
898
|
+
},
|
|
899
|
+
).then((response: any) => {
|
|
900
|
+
return Result.VerifyByStampTaskResult.fromDict(response.data);
|
|
901
|
+
}).catch((error: any) => {
|
|
902
|
+
if (error.response) {
|
|
903
|
+
throw JSON.parse(error.response.data.message);
|
|
904
|
+
} else {
|
|
905
|
+
throw [];
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
|
|
770
910
|
public describeCampaignModels(request: Request.DescribeCampaignModelsRequest): Promise<Result.DescribeCampaignModelsResult> {
|
|
771
911
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign')
|
|
772
912
|
.replace('{service}', 'serial-key')
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2SerialKey from '../model';
|
|
3
|
+
export default class IssueOnceResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2SerialKey.SerialKey | null;
|
|
6
|
+
setItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
7
|
+
withItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): IssueOnceResult;
|
|
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 Gs2SerialKey = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var IssueOnceResult = /** @class */ (function () {
|
|
21
|
+
function IssueOnceResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
IssueOnceResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
IssueOnceResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
IssueOnceResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
IssueOnceResult.fromDict = function (data) {
|
|
36
|
+
return new IssueOnceResult()
|
|
37
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
IssueOnceResult.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 IssueOnceResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = IssueOnceResult;
|
|
48
|
+
//# sourceMappingURL=IssueOnceResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssueOnceResult.js","sourceRoot":"","sources":["IssueOnceResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAAgC,IAAI,CAAC;IA0BrD,CAAC;IAxBU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iCAAO,GAAd,UAAe,IAAiC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAAiC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,eAAe,EAAE;aACvB,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;IAEM,gCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import * as Gs2SerialKey from '../model'
|
|
19
|
+
|
|
20
|
+
export default class IssueOnceResult implements IResult {
|
|
21
|
+
private item: Gs2SerialKey.SerialKey|null = null;
|
|
22
|
+
|
|
23
|
+
public getItem(): Gs2SerialKey.SerialKey|null {
|
|
24
|
+
return this.item;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItem(item: Gs2SerialKey.SerialKey|null) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItem(item: Gs2SerialKey.SerialKey|null): this {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): IssueOnceResult {
|
|
38
|
+
return new IssueOnceResult()
|
|
39
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public toDict(): {[key: string]: any} {
|
|
43
|
+
return {
|
|
44
|
+
"item": this.getItem()?.toDict(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2SerialKey from '../model';
|
|
3
|
+
export default class VerifyByStampTaskResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private newContextStack;
|
|
6
|
+
getItem(): Gs2SerialKey.SerialKey | null;
|
|
7
|
+
setItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
8
|
+
withItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
9
|
+
getNewContextStack(): string | null;
|
|
10
|
+
setNewContextStack(newContextStack: string | null): this;
|
|
11
|
+
withNewContextStack(newContextStack: string | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): VerifyByStampTaskResult;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 Gs2SerialKey = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var VerifyByStampTaskResult = /** @class */ (function () {
|
|
21
|
+
function VerifyByStampTaskResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
this.newContextStack = null;
|
|
24
|
+
}
|
|
25
|
+
VerifyByStampTaskResult.prototype.getItem = function () {
|
|
26
|
+
return this.item;
|
|
27
|
+
};
|
|
28
|
+
VerifyByStampTaskResult.prototype.setItem = function (item) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
VerifyByStampTaskResult.prototype.withItem = function (item) {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
VerifyByStampTaskResult.prototype.getNewContextStack = function () {
|
|
37
|
+
return this.newContextStack;
|
|
38
|
+
};
|
|
39
|
+
VerifyByStampTaskResult.prototype.setNewContextStack = function (newContextStack) {
|
|
40
|
+
this.newContextStack = newContextStack;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
VerifyByStampTaskResult.prototype.withNewContextStack = function (newContextStack) {
|
|
44
|
+
this.newContextStack = newContextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
VerifyByStampTaskResult.fromDict = function (data) {
|
|
48
|
+
return new VerifyByStampTaskResult()
|
|
49
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]))
|
|
50
|
+
.withNewContextStack(data["newContextStack"]);
|
|
51
|
+
};
|
|
52
|
+
VerifyByStampTaskResult.prototype.toDict = function () {
|
|
53
|
+
var _a;
|
|
54
|
+
return {
|
|
55
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
56
|
+
"newContextStack": this.getNewContextStack(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return VerifyByStampTaskResult;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = VerifyByStampTaskResult;
|
|
62
|
+
//# sourceMappingURL=VerifyByStampTaskResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyByStampTaskResult.js","sourceRoot":"","sources":["VerifyByStampTaskResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAAgC,IAAI,CAAC;QACzC,oBAAe,GAAgB,IAAI,CAAC;IA0ChD,CAAC;IAxCU,yCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,yCAAO,GAAd,UAAe,IAAiC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAQ,GAAf,UAAgB,IAAiC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAkB,GAAzB;QACI,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAEM,oDAAkB,GAAzB,UAA0B,eAA4B;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qDAAmB,GAA1B,UAA2B,eAA4B;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,gCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,uBAAuB,EAAE;aAC/B,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;aACvD,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,wCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;SAC/C,CAAC;IACN,CAAC;IACL,8BAAC;AAAD,CAAC,AA5CD,IA4CC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import * as Gs2SerialKey from '../model'
|
|
19
|
+
|
|
20
|
+
export default class VerifyByStampTaskResult implements IResult {
|
|
21
|
+
private item: Gs2SerialKey.SerialKey|null = null;
|
|
22
|
+
private newContextStack: string|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2SerialKey.SerialKey|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2SerialKey.SerialKey|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2SerialKey.SerialKey|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getNewContextStack(): string|null {
|
|
39
|
+
return this.newContextStack;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public setNewContextStack(newContextStack: string|null) {
|
|
43
|
+
this.newContextStack = newContextStack;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public withNewContextStack(newContextStack: string|null): this {
|
|
48
|
+
this.newContextStack = newContextStack;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static fromDict(data: {[key: string]: any}): VerifyByStampTaskResult {
|
|
53
|
+
return new VerifyByStampTaskResult()
|
|
54
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]))
|
|
55
|
+
.withNewContextStack(data["newContextStack"]);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public toDict(): {[key: string]: any} {
|
|
59
|
+
return {
|
|
60
|
+
"item": this.getItem()?.toDict(),
|
|
61
|
+
"newContextStack": this.getNewContextStack(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2SerialKey from '../model';
|
|
3
|
+
export default class VerifyCodeByUserIdResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2SerialKey.SerialKey | null;
|
|
6
|
+
setItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
7
|
+
withItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): VerifyCodeByUserIdResult;
|
|
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 Gs2SerialKey = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var VerifyCodeByUserIdResult = /** @class */ (function () {
|
|
21
|
+
function VerifyCodeByUserIdResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
VerifyCodeByUserIdResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
VerifyCodeByUserIdResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
VerifyCodeByUserIdResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
VerifyCodeByUserIdResult.fromDict = function (data) {
|
|
36
|
+
return new VerifyCodeByUserIdResult()
|
|
37
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
VerifyCodeByUserIdResult.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 VerifyCodeByUserIdResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = VerifyCodeByUserIdResult;
|
|
48
|
+
//# sourceMappingURL=VerifyCodeByUserIdResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyCodeByUserIdResult.js","sourceRoot":"","sources":["VerifyCodeByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAAgC,IAAI,CAAC;IA0BrD,CAAC;IAxBU,0CAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,0CAAO,GAAd,UAAe,IAAiC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAQ,GAAf,UAAgB,IAAiC;QAC7C,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,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjE,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,47 @@
|
|
|
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
|
+
import * as Gs2SerialKey from '../model'
|
|
19
|
+
|
|
20
|
+
export default class VerifyCodeByUserIdResult implements IResult {
|
|
21
|
+
private item: Gs2SerialKey.SerialKey|null = null;
|
|
22
|
+
|
|
23
|
+
public getItem(): Gs2SerialKey.SerialKey|null {
|
|
24
|
+
return this.item;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItem(item: Gs2SerialKey.SerialKey|null) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItem(item: Gs2SerialKey.SerialKey|null): this {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): VerifyCodeByUserIdResult {
|
|
38
|
+
return new VerifyCodeByUserIdResult()
|
|
39
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public toDict(): {[key: string]: any} {
|
|
43
|
+
return {
|
|
44
|
+
"item": this.getItem()?.toDict(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2SerialKey from '../model';
|
|
3
|
+
export default class VerifyCodeResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2SerialKey.SerialKey | null;
|
|
6
|
+
setItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
7
|
+
withItem(item: Gs2SerialKey.SerialKey | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): VerifyCodeResult;
|
|
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 Gs2SerialKey = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var VerifyCodeResult = /** @class */ (function () {
|
|
21
|
+
function VerifyCodeResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
VerifyCodeResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
VerifyCodeResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
VerifyCodeResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
VerifyCodeResult.fromDict = function (data) {
|
|
36
|
+
return new VerifyCodeResult()
|
|
37
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
VerifyCodeResult.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 VerifyCodeResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = VerifyCodeResult;
|
|
48
|
+
//# sourceMappingURL=VerifyCodeResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyCodeResult.js","sourceRoot":"","sources":["VerifyCodeResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,6DAAwC;AAExC;IAAA;QACY,SAAI,GAAgC,IAAI,CAAC;IA0BrD,CAAC;IAxBU,kCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,kCAAO,GAAd,UAAe,IAAiC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAQ,GAAf,UAAgB,IAAiC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,gBAAgB,EAAE;aACxB,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;IAEM,iCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import * as Gs2SerialKey from '../model'
|
|
19
|
+
|
|
20
|
+
export default class VerifyCodeResult implements IResult {
|
|
21
|
+
private item: Gs2SerialKey.SerialKey|null = null;
|
|
22
|
+
|
|
23
|
+
public getItem(): Gs2SerialKey.SerialKey|null {
|
|
24
|
+
return this.item;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItem(item: Gs2SerialKey.SerialKey|null) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItem(item: Gs2SerialKey.SerialKey|null): this {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): VerifyCodeResult {
|
|
38
|
+
return new VerifyCodeResult()
|
|
39
|
+
.withItem(Gs2SerialKey.SerialKey.fromDict(data["item"]));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public toDict(): {[key: string]: any} {
|
|
43
|
+
return {
|
|
44
|
+
"item": this.getItem()?.toDict(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|