gs2 1.4.43 → 1.4.45
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/formation/request/SetFormRequest.d.ts +42 -0
- package/formation/request/SetFormRequest.js +145 -0
- package/formation/request/SetFormRequest.js.map +1 -0
- package/formation/request/SetFormRequest.ts +155 -0
- package/formation/request/SetPropertyFormRequest.d.ts +42 -0
- package/formation/request/SetPropertyFormRequest.js +145 -0
- package/formation/request/SetPropertyFormRequest.js.map +1 -0
- package/formation/request/SetPropertyFormRequest.ts +155 -0
- package/formation/request/index.d.ts +3 -1
- package/formation/request/index.js +5 -1
- package/formation/request/index.js.map +1 -1
- package/formation/request/index.ts +4 -0
- package/formation/rest.d.ts +2 -0
- package/formation/rest.js +70 -0
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +78 -0
- package/formation/result/SetFormResult.d.ts +26 -0
- package/formation/result/SetFormResult.js +90 -0
- package/formation/result/SetFormResult.js.map +1 -0
- package/formation/result/SetFormResult.ts +98 -0
- package/formation/result/SetPropertyFormResult.d.ts +18 -0
- package/formation/result/SetPropertyFormResult.js +62 -0
- package/formation/result/SetPropertyFormResult.js.map +1 -0
- package/formation/result/SetPropertyFormResult.ts +64 -0
- package/formation/result/index.d.ts +3 -1
- package/formation/result/index.js +5 -1
- package/formation/result/index.js.map +1 -1
- package/formation/result/index.ts +4 -0
- package/package.json +1 -1
- package/stamina/request/ApplyStaminaByUserIdRequest.d.ts +37 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.js +123 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.js.map +1 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.ts +133 -0
- package/stamina/request/ApplyStaminaRequest.d.ts +33 -0
- package/stamina/request/ApplyStaminaRequest.js +109 -0
- package/stamina/request/ApplyStaminaRequest.js.map +1 -0
- package/stamina/request/ApplyStaminaRequest.ts +119 -0
- package/stamina/request/index.d.ts +3 -1
- package/stamina/request/index.js +6 -2
- package/stamina/request/index.js.map +1 -1
- package/stamina/request/index.ts +4 -0
- package/stamina/rest.d.ts +2 -0
- package/stamina/rest.js +67 -0
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +75 -0
- package/stamina/result/ApplyStaminaByUserIdResult.d.ts +18 -0
- package/stamina/result/ApplyStaminaByUserIdResult.js +62 -0
- package/stamina/result/ApplyStaminaByUserIdResult.js.map +1 -0
- package/stamina/result/ApplyStaminaByUserIdResult.ts +64 -0
- package/stamina/result/ApplyStaminaResult.d.ts +18 -0
- package/stamina/result/ApplyStaminaResult.js +62 -0
- package/stamina/result/ApplyStaminaResult.js.map +1 -0
- package/stamina/result/ApplyStaminaResult.ts +64 -0
- package/stamina/result/index.d.ts +3 -1
- package/stamina/result/index.js +6 -2
- package/stamina/result/index.js.map +1 -1
- package/stamina/result/index.ts +4 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Formation from '../model';
|
|
3
|
+
export default class SetFormRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private accessToken;
|
|
8
|
+
private moldModelName;
|
|
9
|
+
private index;
|
|
10
|
+
private slots;
|
|
11
|
+
private duplicationAvoider;
|
|
12
|
+
getRequestId(): string | null;
|
|
13
|
+
setRequestId(requestId: string | null): this;
|
|
14
|
+
withRequestId(requestId: string | null): this;
|
|
15
|
+
getContextStack(): string | null;
|
|
16
|
+
setContextStack(contextStack: string | null): this;
|
|
17
|
+
withContextStack(contextStack: string | null): this;
|
|
18
|
+
getNamespaceName(): string | null;
|
|
19
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
21
|
+
getAccessToken(): string | null;
|
|
22
|
+
setAccessToken(accessToken: string | null): this;
|
|
23
|
+
withAccessToken(accessToken: string | null): this;
|
|
24
|
+
getMoldModelName(): string | null;
|
|
25
|
+
setMoldModelName(moldModelName: string | null): this;
|
|
26
|
+
withMoldModelName(moldModelName: string | null): this;
|
|
27
|
+
getIndex(): number | null;
|
|
28
|
+
setIndex(index: number | null): this;
|
|
29
|
+
withIndex(index: number | null): this;
|
|
30
|
+
getSlots(): Gs2Formation.Slot[] | null;
|
|
31
|
+
setSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
32
|
+
withSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
33
|
+
getDuplicationAvoider(): string | null;
|
|
34
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
35
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
36
|
+
static fromDict(data: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}): SetFormRequest;
|
|
39
|
+
toDict(): {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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 Gs2Formation = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetFormRequest = /** @class */ (function () {
|
|
21
|
+
function SetFormRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.accessToken = null;
|
|
26
|
+
this.moldModelName = null;
|
|
27
|
+
this.index = null;
|
|
28
|
+
this.slots = null;
|
|
29
|
+
this.duplicationAvoider = null;
|
|
30
|
+
}
|
|
31
|
+
SetFormRequest.prototype.getRequestId = function () {
|
|
32
|
+
return this.requestId;
|
|
33
|
+
};
|
|
34
|
+
SetFormRequest.prototype.setRequestId = function (requestId) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
SetFormRequest.prototype.withRequestId = function (requestId) {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
SetFormRequest.prototype.getContextStack = function () {
|
|
43
|
+
return this.contextStack;
|
|
44
|
+
};
|
|
45
|
+
SetFormRequest.prototype.setContextStack = function (contextStack) {
|
|
46
|
+
this.contextStack = contextStack;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
SetFormRequest.prototype.withContextStack = function (contextStack) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
SetFormRequest.prototype.getNamespaceName = function () {
|
|
54
|
+
return this.namespaceName;
|
|
55
|
+
};
|
|
56
|
+
SetFormRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
57
|
+
this.namespaceName = namespaceName;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
SetFormRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
SetFormRequest.prototype.getAccessToken = function () {
|
|
65
|
+
return this.accessToken;
|
|
66
|
+
};
|
|
67
|
+
SetFormRequest.prototype.setAccessToken = function (accessToken) {
|
|
68
|
+
this.accessToken = accessToken;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
SetFormRequest.prototype.withAccessToken = function (accessToken) {
|
|
72
|
+
this.accessToken = accessToken;
|
|
73
|
+
return this;
|
|
74
|
+
};
|
|
75
|
+
SetFormRequest.prototype.getMoldModelName = function () {
|
|
76
|
+
return this.moldModelName;
|
|
77
|
+
};
|
|
78
|
+
SetFormRequest.prototype.setMoldModelName = function (moldModelName) {
|
|
79
|
+
this.moldModelName = moldModelName;
|
|
80
|
+
return this;
|
|
81
|
+
};
|
|
82
|
+
SetFormRequest.prototype.withMoldModelName = function (moldModelName) {
|
|
83
|
+
this.moldModelName = moldModelName;
|
|
84
|
+
return this;
|
|
85
|
+
};
|
|
86
|
+
SetFormRequest.prototype.getIndex = function () {
|
|
87
|
+
return this.index;
|
|
88
|
+
};
|
|
89
|
+
SetFormRequest.prototype.setIndex = function (index) {
|
|
90
|
+
this.index = index;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
SetFormRequest.prototype.withIndex = function (index) {
|
|
94
|
+
this.index = index;
|
|
95
|
+
return this;
|
|
96
|
+
};
|
|
97
|
+
SetFormRequest.prototype.getSlots = function () {
|
|
98
|
+
return this.slots;
|
|
99
|
+
};
|
|
100
|
+
SetFormRequest.prototype.setSlots = function (slots) {
|
|
101
|
+
this.slots = slots;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
SetFormRequest.prototype.withSlots = function (slots) {
|
|
105
|
+
this.slots = slots;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
SetFormRequest.prototype.getDuplicationAvoider = function () {
|
|
109
|
+
return this.duplicationAvoider;
|
|
110
|
+
};
|
|
111
|
+
SetFormRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
112
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
SetFormRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
116
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
SetFormRequest.fromDict = function (data) {
|
|
120
|
+
return new SetFormRequest()
|
|
121
|
+
.withNamespaceName(data["namespaceName"])
|
|
122
|
+
.withAccessToken(data["accessToken"])
|
|
123
|
+
.withMoldModelName(data["moldModelName"])
|
|
124
|
+
.withIndex(data["index"])
|
|
125
|
+
.withSlots(data.slots ?
|
|
126
|
+
data.slots.map(function (item) {
|
|
127
|
+
return Gs2Formation.Slot.fromDict(item);
|
|
128
|
+
}) : null);
|
|
129
|
+
};
|
|
130
|
+
SetFormRequest.prototype.toDict = function () {
|
|
131
|
+
return {
|
|
132
|
+
"namespaceName": this.getNamespaceName(),
|
|
133
|
+
"accessToken": this.getAccessToken(),
|
|
134
|
+
"moldModelName": this.getMoldModelName(),
|
|
135
|
+
"index": this.getIndex(),
|
|
136
|
+
"slots": this.getSlots() ?
|
|
137
|
+
this.getSlots().map(function (item) {
|
|
138
|
+
return item.toDict();
|
|
139
|
+
}) : null,
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
return SetFormRequest;
|
|
143
|
+
}());
|
|
144
|
+
exports.default = SetFormRequest;
|
|
145
|
+
//# sourceMappingURL=SetFormRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetFormRequest.js","sourceRoot":"","sources":["SetFormRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,kBAAa,GAAgB,IAAI,CAAC;QAClC,UAAK,GAAgB,IAAI,CAAC;QAC1B,UAAK,GAA6B,IAAI,CAAC;QACvC,uBAAkB,GAAgB,IAAI,CAAC;IA6HnD,CAAC;IA3HU,qCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS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AAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aACxC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,+BAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAuB;oBACzC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,qBAAC;AAAD,CAAC,AAtID,IAsIC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Formation from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetFormRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private accessToken: string|null = null;
|
|
27
|
+
private moldModelName: string|null = null;
|
|
28
|
+
private index: number|null = null;
|
|
29
|
+
private slots: Gs2Formation.Slot[]|null = null;
|
|
30
|
+
private duplicationAvoider: string|null = null;
|
|
31
|
+
|
|
32
|
+
public getRequestId(): string|null {
|
|
33
|
+
return this.requestId;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public setRequestId(requestId: string|null) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public withRequestId(requestId: string|null): this {
|
|
42
|
+
this.requestId = requestId;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public getContextStack(): string|null {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public setContextStack(contextStack: string|null) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public withContextStack(contextStack: string|null): this {
|
|
56
|
+
this.contextStack = contextStack;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
public getNamespaceName(): string|null {
|
|
60
|
+
return this.namespaceName;
|
|
61
|
+
}
|
|
62
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
63
|
+
this.namespaceName = namespaceName;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
67
|
+
this.namespaceName = namespaceName;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
public getAccessToken(): string|null {
|
|
71
|
+
return this.accessToken;
|
|
72
|
+
}
|
|
73
|
+
public setAccessToken(accessToken: string|null) {
|
|
74
|
+
this.accessToken = accessToken;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
public withAccessToken(accessToken: string|null): this {
|
|
78
|
+
this.accessToken = accessToken;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
public getMoldModelName(): string|null {
|
|
82
|
+
return this.moldModelName;
|
|
83
|
+
}
|
|
84
|
+
public setMoldModelName(moldModelName: string|null) {
|
|
85
|
+
this.moldModelName = moldModelName;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
public withMoldModelName(moldModelName: string|null): this {
|
|
89
|
+
this.moldModelName = moldModelName;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
public getIndex(): number|null {
|
|
93
|
+
return this.index;
|
|
94
|
+
}
|
|
95
|
+
public setIndex(index: number|null) {
|
|
96
|
+
this.index = index;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
public withIndex(index: number|null): this {
|
|
100
|
+
this.index = index;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
public getSlots(): Gs2Formation.Slot[]|null {
|
|
104
|
+
return this.slots;
|
|
105
|
+
}
|
|
106
|
+
public setSlots(slots: Gs2Formation.Slot[]|null) {
|
|
107
|
+
this.slots = slots;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
public withSlots(slots: Gs2Formation.Slot[]|null): this {
|
|
111
|
+
this.slots = slots;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public static fromDict(data: {[key: string]: any}): SetFormRequest {
|
|
130
|
+
return new SetFormRequest()
|
|
131
|
+
.withNamespaceName(data["namespaceName"])
|
|
132
|
+
.withAccessToken(data["accessToken"])
|
|
133
|
+
.withMoldModelName(data["moldModelName"])
|
|
134
|
+
.withIndex(data["index"])
|
|
135
|
+
.withSlots(data.slots ?
|
|
136
|
+
data.slots.map((item: {[key: string]: any}) => {
|
|
137
|
+
return Gs2Formation.Slot.fromDict(item);
|
|
138
|
+
}
|
|
139
|
+
) : null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public toDict(): {[key: string]: any} {
|
|
143
|
+
return {
|
|
144
|
+
"namespaceName": this.getNamespaceName(),
|
|
145
|
+
"accessToken": this.getAccessToken(),
|
|
146
|
+
"moldModelName": this.getMoldModelName(),
|
|
147
|
+
"index": this.getIndex(),
|
|
148
|
+
"slots": this.getSlots() ?
|
|
149
|
+
this.getSlots()!.map((item: Gs2Formation.Slot) => {
|
|
150
|
+
return item.toDict();
|
|
151
|
+
}
|
|
152
|
+
) : null,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Formation from '../model';
|
|
3
|
+
export default class SetPropertyFormRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private accessToken;
|
|
8
|
+
private propertyFormModelName;
|
|
9
|
+
private propertyId;
|
|
10
|
+
private slots;
|
|
11
|
+
private duplicationAvoider;
|
|
12
|
+
getRequestId(): string | null;
|
|
13
|
+
setRequestId(requestId: string | null): this;
|
|
14
|
+
withRequestId(requestId: string | null): this;
|
|
15
|
+
getContextStack(): string | null;
|
|
16
|
+
setContextStack(contextStack: string | null): this;
|
|
17
|
+
withContextStack(contextStack: string | null): this;
|
|
18
|
+
getNamespaceName(): string | null;
|
|
19
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
21
|
+
getAccessToken(): string | null;
|
|
22
|
+
setAccessToken(accessToken: string | null): this;
|
|
23
|
+
withAccessToken(accessToken: string | null): this;
|
|
24
|
+
getPropertyFormModelName(): string | null;
|
|
25
|
+
setPropertyFormModelName(propertyFormModelName: string | null): this;
|
|
26
|
+
withPropertyFormModelName(propertyFormModelName: string | null): this;
|
|
27
|
+
getPropertyId(): string | null;
|
|
28
|
+
setPropertyId(propertyId: string | null): this;
|
|
29
|
+
withPropertyId(propertyId: string | null): this;
|
|
30
|
+
getSlots(): Gs2Formation.Slot[] | null;
|
|
31
|
+
setSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
32
|
+
withSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
33
|
+
getDuplicationAvoider(): string | null;
|
|
34
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
35
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
36
|
+
static fromDict(data: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}): SetPropertyFormRequest;
|
|
39
|
+
toDict(): {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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 Gs2Formation = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetPropertyFormRequest = /** @class */ (function () {
|
|
21
|
+
function SetPropertyFormRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.accessToken = null;
|
|
26
|
+
this.propertyFormModelName = null;
|
|
27
|
+
this.propertyId = null;
|
|
28
|
+
this.slots = null;
|
|
29
|
+
this.duplicationAvoider = null;
|
|
30
|
+
}
|
|
31
|
+
SetPropertyFormRequest.prototype.getRequestId = function () {
|
|
32
|
+
return this.requestId;
|
|
33
|
+
};
|
|
34
|
+
SetPropertyFormRequest.prototype.setRequestId = function (requestId) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
SetPropertyFormRequest.prototype.withRequestId = function (requestId) {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
SetPropertyFormRequest.prototype.getContextStack = function () {
|
|
43
|
+
return this.contextStack;
|
|
44
|
+
};
|
|
45
|
+
SetPropertyFormRequest.prototype.setContextStack = function (contextStack) {
|
|
46
|
+
this.contextStack = contextStack;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
SetPropertyFormRequest.prototype.withContextStack = function (contextStack) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
SetPropertyFormRequest.prototype.getNamespaceName = function () {
|
|
54
|
+
return this.namespaceName;
|
|
55
|
+
};
|
|
56
|
+
SetPropertyFormRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
57
|
+
this.namespaceName = namespaceName;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
SetPropertyFormRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
SetPropertyFormRequest.prototype.getAccessToken = function () {
|
|
65
|
+
return this.accessToken;
|
|
66
|
+
};
|
|
67
|
+
SetPropertyFormRequest.prototype.setAccessToken = function (accessToken) {
|
|
68
|
+
this.accessToken = accessToken;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
SetPropertyFormRequest.prototype.withAccessToken = function (accessToken) {
|
|
72
|
+
this.accessToken = accessToken;
|
|
73
|
+
return this;
|
|
74
|
+
};
|
|
75
|
+
SetPropertyFormRequest.prototype.getPropertyFormModelName = function () {
|
|
76
|
+
return this.propertyFormModelName;
|
|
77
|
+
};
|
|
78
|
+
SetPropertyFormRequest.prototype.setPropertyFormModelName = function (propertyFormModelName) {
|
|
79
|
+
this.propertyFormModelName = propertyFormModelName;
|
|
80
|
+
return this;
|
|
81
|
+
};
|
|
82
|
+
SetPropertyFormRequest.prototype.withPropertyFormModelName = function (propertyFormModelName) {
|
|
83
|
+
this.propertyFormModelName = propertyFormModelName;
|
|
84
|
+
return this;
|
|
85
|
+
};
|
|
86
|
+
SetPropertyFormRequest.prototype.getPropertyId = function () {
|
|
87
|
+
return this.propertyId;
|
|
88
|
+
};
|
|
89
|
+
SetPropertyFormRequest.prototype.setPropertyId = function (propertyId) {
|
|
90
|
+
this.propertyId = propertyId;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
SetPropertyFormRequest.prototype.withPropertyId = function (propertyId) {
|
|
94
|
+
this.propertyId = propertyId;
|
|
95
|
+
return this;
|
|
96
|
+
};
|
|
97
|
+
SetPropertyFormRequest.prototype.getSlots = function () {
|
|
98
|
+
return this.slots;
|
|
99
|
+
};
|
|
100
|
+
SetPropertyFormRequest.prototype.setSlots = function (slots) {
|
|
101
|
+
this.slots = slots;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
SetPropertyFormRequest.prototype.withSlots = function (slots) {
|
|
105
|
+
this.slots = slots;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
SetPropertyFormRequest.prototype.getDuplicationAvoider = function () {
|
|
109
|
+
return this.duplicationAvoider;
|
|
110
|
+
};
|
|
111
|
+
SetPropertyFormRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
112
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
SetPropertyFormRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
116
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
SetPropertyFormRequest.fromDict = function (data) {
|
|
120
|
+
return new SetPropertyFormRequest()
|
|
121
|
+
.withNamespaceName(data["namespaceName"])
|
|
122
|
+
.withAccessToken(data["accessToken"])
|
|
123
|
+
.withPropertyFormModelName(data["propertyFormModelName"])
|
|
124
|
+
.withPropertyId(data["propertyId"])
|
|
125
|
+
.withSlots(data.slots ?
|
|
126
|
+
data.slots.map(function (item) {
|
|
127
|
+
return Gs2Formation.Slot.fromDict(item);
|
|
128
|
+
}) : null);
|
|
129
|
+
};
|
|
130
|
+
SetPropertyFormRequest.prototype.toDict = function () {
|
|
131
|
+
return {
|
|
132
|
+
"namespaceName": this.getNamespaceName(),
|
|
133
|
+
"accessToken": this.getAccessToken(),
|
|
134
|
+
"propertyFormModelName": this.getPropertyFormModelName(),
|
|
135
|
+
"propertyId": this.getPropertyId(),
|
|
136
|
+
"slots": this.getSlots() ?
|
|
137
|
+
this.getSlots().map(function (item) {
|
|
138
|
+
return item.toDict();
|
|
139
|
+
}) : null,
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
return SetPropertyFormRequest;
|
|
143
|
+
}());
|
|
144
|
+
exports.default = SetPropertyFormRequest;
|
|
145
|
+
//# sourceMappingURL=SetPropertyFormRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetPropertyFormRequest.js","sourceRoot":"","sources":["SetPropertyFormRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,0BAAqB,GAAgB,IAAI,CAAC;QAC1C,eAAU,GAAgB,IAAI,CAAC;QAC/B,UAAK,GAA6B,IAAI,CAAC;QACvC,uBAAkB,GAAgB,IAAI,CAAC;IA6HnD,CAAC;IA3HU,6CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,6CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,gDAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iDAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IA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