gs2 1.4.4 → 1.4.6
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/guild/model/GuildModel.d.ts +4 -0
- package/guild/model/GuildModel.js +14 -0
- package/guild/model/GuildModel.js.map +1 -1
- package/guild/model/GuildModel.ts +14 -0
- package/guild/model/GuildModelMaster.d.ts +4 -0
- package/guild/model/GuildModelMaster.js +14 -0
- package/guild/model/GuildModelMaster.js.map +1 -1
- package/guild/model/GuildModelMaster.ts +14 -0
- package/guild/model/LastGuildMasterActivity.d.ts +24 -0
- package/guild/model/LastGuildMasterActivity.js +149 -0
- package/guild/model/LastGuildMasterActivity.js.map +1 -0
- package/guild/model/LastGuildMasterActivity.ts +165 -0
- package/guild/model/Namespace.d.ts +17 -0
- package/guild/model/Namespace.js +59 -2
- package/guild/model/Namespace.js.map +1 -1
- package/guild/model/Namespace.ts +57 -0
- package/guild/model/index.d.ts +2 -1
- package/guild/model/index.js +3 -1
- package/guild/model/index.js.map +1 -1
- package/guild/model/index.ts +2 -0
- package/guild/request/CreateGuildModelMasterRequest.d.ts +4 -0
- package/guild/request/CreateGuildModelMasterRequest.js +14 -0
- package/guild/request/CreateGuildModelMasterRequest.js.map +1 -1
- package/guild/request/CreateGuildModelMasterRequest.ts +14 -0
- package/guild/request/CreateNamespaceRequest.d.ts +16 -0
- package/guild/request/CreateNamespaceRequest.js +58 -2
- package/guild/request/CreateNamespaceRequest.js.map +1 -1
- package/guild/request/CreateNamespaceRequest.ts +56 -0
- package/guild/request/GetLastGuildMasterActivityByGuildNameRequest.d.ts +29 -0
- package/guild/request/GetLastGuildMasterActivityByGuildNameRequest.js +97 -0
- package/guild/request/GetLastGuildMasterActivityByGuildNameRequest.js.map +1 -0
- package/guild/request/GetLastGuildMasterActivityByGuildNameRequest.ts +104 -0
- package/guild/request/GetLastGuildMasterActivityRequest.d.ts +29 -0
- package/guild/request/GetLastGuildMasterActivityRequest.js +97 -0
- package/guild/request/GetLastGuildMasterActivityRequest.js.map +1 -0
- package/guild/request/GetLastGuildMasterActivityRequest.ts +104 -0
- package/guild/request/PromoteSeniorMemberByGuildNameRequest.d.ts +33 -0
- package/guild/request/PromoteSeniorMemberByGuildNameRequest.js +109 -0
- package/guild/request/PromoteSeniorMemberByGuildNameRequest.js.map +1 -0
- package/guild/request/PromoteSeniorMemberByGuildNameRequest.ts +119 -0
- package/guild/request/PromoteSeniorMemberRequest.d.ts +33 -0
- package/guild/request/PromoteSeniorMemberRequest.js +109 -0
- package/guild/request/PromoteSeniorMemberRequest.js.map +1 -0
- package/guild/request/PromoteSeniorMemberRequest.ts +119 -0
- package/guild/request/UpdateGuildModelMasterRequest.d.ts +4 -0
- package/guild/request/UpdateGuildModelMasterRequest.js +14 -0
- package/guild/request/UpdateGuildModelMasterRequest.js.map +1 -1
- package/guild/request/UpdateGuildModelMasterRequest.ts +14 -0
- package/guild/request/UpdateNamespaceRequest.d.ts +16 -0
- package/guild/request/UpdateNamespaceRequest.js +58 -2
- package/guild/request/UpdateNamespaceRequest.js.map +1 -1
- package/guild/request/UpdateNamespaceRequest.ts +56 -0
- package/guild/request/index.d.ts +5 -1
- package/guild/request/index.js +9 -1
- package/guild/request/index.js.map +1 -1
- package/guild/request/index.ts +8 -0
- package/guild/rest.d.ts +4 -0
- package/guild/rest.js +138 -14
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +140 -0
- package/guild/result/GetLastGuildMasterActivityByGuildNameResult.d.ts +18 -0
- package/guild/result/GetLastGuildMasterActivityByGuildNameResult.js +62 -0
- package/guild/result/GetLastGuildMasterActivityByGuildNameResult.js.map +1 -0
- package/guild/result/GetLastGuildMasterActivityByGuildNameResult.ts +64 -0
- package/guild/result/GetLastGuildMasterActivityResult.d.ts +18 -0
- package/guild/result/GetLastGuildMasterActivityResult.js +62 -0
- package/guild/result/GetLastGuildMasterActivityResult.js.map +1 -0
- package/guild/result/GetLastGuildMasterActivityResult.ts +64 -0
- package/guild/result/PromoteSeniorMemberByGuildNameResult.d.ts +18 -0
- package/guild/result/PromoteSeniorMemberByGuildNameResult.js +62 -0
- package/guild/result/PromoteSeniorMemberByGuildNameResult.js.map +1 -0
- package/guild/result/PromoteSeniorMemberByGuildNameResult.ts +64 -0
- package/guild/result/PromoteSeniorMemberResult.d.ts +18 -0
- package/guild/result/PromoteSeniorMemberResult.js +62 -0
- package/guild/result/PromoteSeniorMemberResult.js.map +1 -0
- package/guild/result/PromoteSeniorMemberResult.ts +64 -0
- package/guild/result/index.d.ts +5 -1
- package/guild/result/index.js +9 -1
- package/guild/result/index.js.map +1 -1
- package/guild/result/index.ts +8 -0
- package/package.json +1 -1
- package/ranking/request/PutScoreByUserIdRequest.d.ts +4 -0
- package/ranking/request/PutScoreByUserIdRequest.js +12 -0
- package/ranking/request/PutScoreByUserIdRequest.js.map +1 -1
- package/ranking/request/PutScoreByUserIdRequest.ts +15 -0
- package/ranking/rest.js +8 -5
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +3 -0
- package/schedule/rest.js +4 -2
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +2 -0
package/guild/rest.ts
CHANGED
|
@@ -72,6 +72,10 @@ export default class Gs2GuildRestClient extends AbstractGs2RestClient {
|
|
|
72
72
|
'changeMemberNotification': request.getChangeMemberNotification()?.toDict() ?? null,
|
|
73
73
|
'receiveRequestNotification': request.getReceiveRequestNotification()?.toDict() ?? null,
|
|
74
74
|
'removeRequestNotification': request.getRemoveRequestNotification()?.toDict() ?? null,
|
|
75
|
+
'createGuildScript': request.getCreateGuildScript()?.toDict() ?? null,
|
|
76
|
+
'joinGuildScript': request.getJoinGuildScript()?.toDict() ?? null,
|
|
77
|
+
'leaveGuildScript': request.getLeaveGuildScript()?.toDict() ?? null,
|
|
78
|
+
'changeRoleScript': request.getChangeRoleScript()?.toDict() ?? null,
|
|
75
79
|
'logSetting': request.getLogSetting()?.toDict() ?? null,
|
|
76
80
|
};
|
|
77
81
|
return axios.post(
|
|
@@ -161,6 +165,10 @@ export default class Gs2GuildRestClient extends AbstractGs2RestClient {
|
|
|
161
165
|
'changeMemberNotification': request.getChangeMemberNotification()?.toDict() ?? null,
|
|
162
166
|
'receiveRequestNotification': request.getReceiveRequestNotification()?.toDict() ?? null,
|
|
163
167
|
'removeRequestNotification': request.getRemoveRequestNotification()?.toDict() ?? null,
|
|
168
|
+
'createGuildScript': request.getCreateGuildScript()?.toDict() ?? null,
|
|
169
|
+
'joinGuildScript': request.getJoinGuildScript()?.toDict() ?? null,
|
|
170
|
+
'leaveGuildScript': request.getLeaveGuildScript()?.toDict() ?? null,
|
|
171
|
+
'changeRoleScript': request.getChangeRoleScript()?.toDict() ?? null,
|
|
164
172
|
'logSetting': request.getLogSetting()?.toDict() ?? null,
|
|
165
173
|
};
|
|
166
174
|
return axios.put(
|
|
@@ -472,6 +480,7 @@ export default class Gs2GuildRestClient extends AbstractGs2RestClient {
|
|
|
472
480
|
'metadata': request.getMetadata() ?? null,
|
|
473
481
|
'defaultMaximumMemberCount': request.getDefaultMaximumMemberCount() ?? null,
|
|
474
482
|
'maximumMemberCount': request.getMaximumMemberCount() ?? null,
|
|
483
|
+
'inactivityPeriodDays': request.getInactivityPeriodDays() ?? null,
|
|
475
484
|
'roles': request.getRoles()?.map((item) => item.toDict()) ?? null,
|
|
476
485
|
'guildMasterRole': request.getGuildMasterRole() ?? null,
|
|
477
486
|
'guildMemberDefaultRole': request.getGuildMemberDefaultRole() ?? null,
|
|
@@ -538,6 +547,7 @@ export default class Gs2GuildRestClient extends AbstractGs2RestClient {
|
|
|
538
547
|
'metadata': request.getMetadata() ?? null,
|
|
539
548
|
'defaultMaximumMemberCount': request.getDefaultMaximumMemberCount() ?? null,
|
|
540
549
|
'maximumMemberCount': request.getMaximumMemberCount() ?? null,
|
|
550
|
+
'inactivityPeriodDays': request.getInactivityPeriodDays() ?? null,
|
|
541
551
|
'roles': request.getRoles()?.map((item) => item.toDict()) ?? null,
|
|
542
552
|
'guildMasterRole': request.getGuildMasterRole() ?? null,
|
|
543
553
|
'guildMemberDefaultRole': request.getGuildMemberDefaultRole() ?? null,
|
|
@@ -1885,6 +1895,136 @@ export default class Gs2GuildRestClient extends AbstractGs2RestClient {
|
|
|
1885
1895
|
});
|
|
1886
1896
|
}
|
|
1887
1897
|
|
|
1898
|
+
public getLastGuildMasterActivity(request: Request.GetLastGuildMasterActivityRequest): Promise<Result.GetLastGuildMasterActivityResult> {
|
|
1899
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/guild/{guildModelName}/me/activity/guildMaster/last')
|
|
1900
|
+
.replace('{service}', 'guild')
|
|
1901
|
+
.replace('{region}', this.session.region)
|
|
1902
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1903
|
+
.replace('{guildModelName}', String(request.getGuildModelName() ?? 'null') === "" ? "null" : String(request.getGuildModelName() ?? 'null'));
|
|
1904
|
+
|
|
1905
|
+
const headers = this.createAuthorizedHeaders();
|
|
1906
|
+
if (request.getRequestId()) {
|
|
1907
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1908
|
+
}
|
|
1909
|
+
if (request.getAccessToken()) {
|
|
1910
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
1911
|
+
}
|
|
1912
|
+
const params: {[key: string]: any} = {
|
|
1913
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1914
|
+
};
|
|
1915
|
+
return axios.get(
|
|
1916
|
+
url,
|
|
1917
|
+
{
|
|
1918
|
+
params,
|
|
1919
|
+
headers,
|
|
1920
|
+
},
|
|
1921
|
+
).then((response: any) => {
|
|
1922
|
+
return Result.GetLastGuildMasterActivityResult.fromDict(response.data);
|
|
1923
|
+
}).catch((error: any) => {
|
|
1924
|
+
throw JSON.parse(error.response.data.message);
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
public getLastGuildMasterActivityByGuildName(request: Request.GetLastGuildMasterActivityByGuildNameRequest): Promise<Result.GetLastGuildMasterActivityByGuildNameResult> {
|
|
1929
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/guild/{guildModelName}/{guildName}/activity/guildMaster/last')
|
|
1930
|
+
.replace('{service}', 'guild')
|
|
1931
|
+
.replace('{region}', this.session.region)
|
|
1932
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1933
|
+
.replace('{guildModelName}', String(request.getGuildModelName() ?? 'null') === "" ? "null" : String(request.getGuildModelName() ?? 'null'))
|
|
1934
|
+
.replace('{guildName}', String(request.getGuildName() ?? 'null') === "" ? "null" : String(request.getGuildName() ?? 'null'));
|
|
1935
|
+
|
|
1936
|
+
const headers = this.createAuthorizedHeaders();
|
|
1937
|
+
if (request.getRequestId()) {
|
|
1938
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1939
|
+
}
|
|
1940
|
+
const params: {[key: string]: any} = {
|
|
1941
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1942
|
+
};
|
|
1943
|
+
return axios.get(
|
|
1944
|
+
url,
|
|
1945
|
+
{
|
|
1946
|
+
params,
|
|
1947
|
+
headers,
|
|
1948
|
+
},
|
|
1949
|
+
).then((response: any) => {
|
|
1950
|
+
return Result.GetLastGuildMasterActivityByGuildNameResult.fromDict(response.data);
|
|
1951
|
+
}).catch((error: any) => {
|
|
1952
|
+
throw JSON.parse(error.response.data.message);
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
public promoteSeniorMember(request: Request.PromoteSeniorMemberRequest): Promise<Result.PromoteSeniorMemberResult> {
|
|
1957
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/guild/{guildModelName}/me/promote')
|
|
1958
|
+
.replace('{service}', 'guild')
|
|
1959
|
+
.replace('{region}', this.session.region)
|
|
1960
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1961
|
+
.replace('{guildModelName}', String(request.getGuildModelName() ?? 'null') === "" ? "null" : String(request.getGuildModelName() ?? 'null'));
|
|
1962
|
+
|
|
1963
|
+
const headers = this.createAuthorizedHeaders();
|
|
1964
|
+
if (request.getRequestId()) {
|
|
1965
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1966
|
+
}
|
|
1967
|
+
if (request.getAccessToken()) {
|
|
1968
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
1969
|
+
}
|
|
1970
|
+
if (request.getDuplicationAvoider()) {
|
|
1971
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
1972
|
+
}
|
|
1973
|
+
const body: {[key: string]: any} = {
|
|
1974
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1975
|
+
};
|
|
1976
|
+
return axios.post(
|
|
1977
|
+
url,
|
|
1978
|
+
body,
|
|
1979
|
+
{
|
|
1980
|
+
headers,
|
|
1981
|
+
},
|
|
1982
|
+
).then((response: any) => {
|
|
1983
|
+
return Result.PromoteSeniorMemberResult.fromDict(response.data);
|
|
1984
|
+
}).catch((error: any) => {
|
|
1985
|
+
if (error.response) {
|
|
1986
|
+
throw JSON.parse(error.response.data.message);
|
|
1987
|
+
} else {
|
|
1988
|
+
throw [];
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
public promoteSeniorMemberByGuildName(request: Request.PromoteSeniorMemberByGuildNameRequest): Promise<Result.PromoteSeniorMemberByGuildNameResult> {
|
|
1994
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/guild/{guildModelName}/{guildName}/promote')
|
|
1995
|
+
.replace('{service}', 'guild')
|
|
1996
|
+
.replace('{region}', this.session.region)
|
|
1997
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1998
|
+
.replace('{guildModelName}', String(request.getGuildModelName() ?? 'null') === "" ? "null" : String(request.getGuildModelName() ?? 'null'))
|
|
1999
|
+
.replace('{guildName}', String(request.getGuildName() ?? 'null') === "" ? "null" : String(request.getGuildName() ?? 'null'));
|
|
2000
|
+
|
|
2001
|
+
const headers = this.createAuthorizedHeaders();
|
|
2002
|
+
if (request.getRequestId()) {
|
|
2003
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2004
|
+
}
|
|
2005
|
+
if (request.getDuplicationAvoider()) {
|
|
2006
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2007
|
+
}
|
|
2008
|
+
const body: {[key: string]: any} = {
|
|
2009
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2010
|
+
};
|
|
2011
|
+
return axios.post(
|
|
2012
|
+
url,
|
|
2013
|
+
body,
|
|
2014
|
+
{
|
|
2015
|
+
headers,
|
|
2016
|
+
},
|
|
2017
|
+
).then((response: any) => {
|
|
2018
|
+
return Result.PromoteSeniorMemberByGuildNameResult.fromDict(response.data);
|
|
2019
|
+
}).catch((error: any) => {
|
|
2020
|
+
if (error.response) {
|
|
2021
|
+
throw JSON.parse(error.response.data.message);
|
|
2022
|
+
} else {
|
|
2023
|
+
throw [];
|
|
2024
|
+
}
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
|
|
1888
2028
|
public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
|
|
1889
2029
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1890
2030
|
.replace('{service}', 'guild')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Guild from '../model';
|
|
3
|
+
export default class GetLastGuildMasterActivityByGuildNameResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private guild;
|
|
6
|
+
getItem(): Gs2Guild.LastGuildMasterActivity | null;
|
|
7
|
+
setItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
8
|
+
withItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
9
|
+
getGuild(): Gs2Guild.Guild | null;
|
|
10
|
+
setGuild(guild: Gs2Guild.Guild | null): this;
|
|
11
|
+
withGuild(guild: Gs2Guild.Guild | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): GetLastGuildMasterActivityByGuildNameResult;
|
|
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 Gs2Guild = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var GetLastGuildMasterActivityByGuildNameResult = /** @class */ (function () {
|
|
21
|
+
function GetLastGuildMasterActivityByGuildNameResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
this.guild = null;
|
|
24
|
+
}
|
|
25
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.getItem = function () {
|
|
26
|
+
return this.item;
|
|
27
|
+
};
|
|
28
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.setItem = function (item) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.withItem = function (item) {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.getGuild = function () {
|
|
37
|
+
return this.guild;
|
|
38
|
+
};
|
|
39
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.setGuild = function (guild) {
|
|
40
|
+
this.guild = guild;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.withGuild = function (guild) {
|
|
44
|
+
this.guild = guild;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
GetLastGuildMasterActivityByGuildNameResult.fromDict = function (data) {
|
|
48
|
+
return new GetLastGuildMasterActivityByGuildNameResult()
|
|
49
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
50
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
51
|
+
};
|
|
52
|
+
GetLastGuildMasterActivityByGuildNameResult.prototype.toDict = function () {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
return {
|
|
55
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
56
|
+
"guild": (_b = this.getGuild()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return GetLastGuildMasterActivityByGuildNameResult;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = GetLastGuildMasterActivityByGuildNameResult;
|
|
62
|
+
//# sourceMappingURL=GetLastGuildMasterActivityByGuildNameResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLastGuildMasterActivityByGuildNameResult.js","sourceRoot":"","sources":["GetLastGuildMasterActivityByGuildNameResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yDAAoC;AAEpC;IAAA;QACY,SAAI,GAA0C,IAAI,CAAC;QACnD,UAAK,GAAwB,IAAI,CAAC;IA0C9C,CAAC;IAxCU,6DAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,6DAAO,GAAd,UAAe,IAA2C;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8DAAQ,GAAf,UAAgB,IAA2C;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8DAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,8DAAQ,GAAf,UAAgB,KAA0B;QACtC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+DAAS,GAAhB,UAAiB,KAA0B;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,oDAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,2CAA2C,EAAE;aACnD,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;aACjE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,4DAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,OAAO,EAAE,MAAA,IAAI,CAAC,QAAQ,EAAE,0CAAE,MAAM,EAAE;SACrC,CAAC;IACN,CAAC;IACL,kDAAC;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 Gs2Guild from '../model'
|
|
19
|
+
|
|
20
|
+
export default class GetLastGuildMasterActivityByGuildNameResult implements IResult {
|
|
21
|
+
private item: Gs2Guild.LastGuildMasterActivity|null = null;
|
|
22
|
+
private guild: Gs2Guild.Guild|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Guild.LastGuildMasterActivity|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Guild.LastGuildMasterActivity|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Guild.LastGuildMasterActivity|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getGuild(): Gs2Guild.Guild|null {
|
|
39
|
+
return this.guild;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public setGuild(guild: Gs2Guild.Guild|null) {
|
|
43
|
+
this.guild = guild;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public withGuild(guild: Gs2Guild.Guild|null): this {
|
|
48
|
+
this.guild = guild;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static fromDict(data: {[key: string]: any}): GetLastGuildMasterActivityByGuildNameResult {
|
|
53
|
+
return new GetLastGuildMasterActivityByGuildNameResult()
|
|
54
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
55
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public toDict(): {[key: string]: any} {
|
|
59
|
+
return {
|
|
60
|
+
"item": this.getItem()?.toDict(),
|
|
61
|
+
"guild": this.getGuild()?.toDict(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Guild from '../model';
|
|
3
|
+
export default class GetLastGuildMasterActivityResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private guild;
|
|
6
|
+
getItem(): Gs2Guild.LastGuildMasterActivity | null;
|
|
7
|
+
setItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
8
|
+
withItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
9
|
+
getGuild(): Gs2Guild.Guild | null;
|
|
10
|
+
setGuild(guild: Gs2Guild.Guild | null): this;
|
|
11
|
+
withGuild(guild: Gs2Guild.Guild | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): GetLastGuildMasterActivityResult;
|
|
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 Gs2Guild = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var GetLastGuildMasterActivityResult = /** @class */ (function () {
|
|
21
|
+
function GetLastGuildMasterActivityResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
this.guild = null;
|
|
24
|
+
}
|
|
25
|
+
GetLastGuildMasterActivityResult.prototype.getItem = function () {
|
|
26
|
+
return this.item;
|
|
27
|
+
};
|
|
28
|
+
GetLastGuildMasterActivityResult.prototype.setItem = function (item) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
GetLastGuildMasterActivityResult.prototype.withItem = function (item) {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
GetLastGuildMasterActivityResult.prototype.getGuild = function () {
|
|
37
|
+
return this.guild;
|
|
38
|
+
};
|
|
39
|
+
GetLastGuildMasterActivityResult.prototype.setGuild = function (guild) {
|
|
40
|
+
this.guild = guild;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
GetLastGuildMasterActivityResult.prototype.withGuild = function (guild) {
|
|
44
|
+
this.guild = guild;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
GetLastGuildMasterActivityResult.fromDict = function (data) {
|
|
48
|
+
return new GetLastGuildMasterActivityResult()
|
|
49
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
50
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
51
|
+
};
|
|
52
|
+
GetLastGuildMasterActivityResult.prototype.toDict = function () {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
return {
|
|
55
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
56
|
+
"guild": (_b = this.getGuild()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return GetLastGuildMasterActivityResult;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = GetLastGuildMasterActivityResult;
|
|
62
|
+
//# sourceMappingURL=GetLastGuildMasterActivityResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLastGuildMasterActivityResult.js","sourceRoot":"","sources":["GetLastGuildMasterActivityResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yDAAoC;AAEpC;IAAA;QACY,SAAI,GAA0C,IAAI,CAAC;QACnD,UAAK,GAAwB,IAAI,CAAC;IA0C9C,CAAC;IAxCU,kDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,kDAAO,GAAd,UAAe,IAA2C;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mDAAQ,GAAf,UAAgB,IAA2C;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mDAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,mDAAQ,GAAf,UAAgB,KAA0B;QACtC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAS,GAAhB,UAAiB,KAA0B;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,gCAAgC,EAAE;aACxC,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;aACjE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,iDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,OAAO,EAAE,MAAA,IAAI,CAAC,QAAQ,EAAE,0CAAE,MAAM,EAAE;SACrC,CAAC;IACN,CAAC;IACL,uCAAC;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 Gs2Guild from '../model'
|
|
19
|
+
|
|
20
|
+
export default class GetLastGuildMasterActivityResult implements IResult {
|
|
21
|
+
private item: Gs2Guild.LastGuildMasterActivity|null = null;
|
|
22
|
+
private guild: Gs2Guild.Guild|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Guild.LastGuildMasterActivity|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Guild.LastGuildMasterActivity|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Guild.LastGuildMasterActivity|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getGuild(): Gs2Guild.Guild|null {
|
|
39
|
+
return this.guild;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public setGuild(guild: Gs2Guild.Guild|null) {
|
|
43
|
+
this.guild = guild;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public withGuild(guild: Gs2Guild.Guild|null): this {
|
|
48
|
+
this.guild = guild;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static fromDict(data: {[key: string]: any}): GetLastGuildMasterActivityResult {
|
|
53
|
+
return new GetLastGuildMasterActivityResult()
|
|
54
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
55
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public toDict(): {[key: string]: any} {
|
|
59
|
+
return {
|
|
60
|
+
"item": this.getItem()?.toDict(),
|
|
61
|
+
"guild": this.getGuild()?.toDict(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Guild from '../model';
|
|
3
|
+
export default class PromoteSeniorMemberByGuildNameResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private guild;
|
|
6
|
+
getItem(): Gs2Guild.LastGuildMasterActivity | null;
|
|
7
|
+
setItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
8
|
+
withItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
9
|
+
getGuild(): Gs2Guild.Guild | null;
|
|
10
|
+
setGuild(guild: Gs2Guild.Guild | null): this;
|
|
11
|
+
withGuild(guild: Gs2Guild.Guild | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): PromoteSeniorMemberByGuildNameResult;
|
|
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 Gs2Guild = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var PromoteSeniorMemberByGuildNameResult = /** @class */ (function () {
|
|
21
|
+
function PromoteSeniorMemberByGuildNameResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
this.guild = null;
|
|
24
|
+
}
|
|
25
|
+
PromoteSeniorMemberByGuildNameResult.prototype.getItem = function () {
|
|
26
|
+
return this.item;
|
|
27
|
+
};
|
|
28
|
+
PromoteSeniorMemberByGuildNameResult.prototype.setItem = function (item) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
PromoteSeniorMemberByGuildNameResult.prototype.withItem = function (item) {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
PromoteSeniorMemberByGuildNameResult.prototype.getGuild = function () {
|
|
37
|
+
return this.guild;
|
|
38
|
+
};
|
|
39
|
+
PromoteSeniorMemberByGuildNameResult.prototype.setGuild = function (guild) {
|
|
40
|
+
this.guild = guild;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
PromoteSeniorMemberByGuildNameResult.prototype.withGuild = function (guild) {
|
|
44
|
+
this.guild = guild;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
PromoteSeniorMemberByGuildNameResult.fromDict = function (data) {
|
|
48
|
+
return new PromoteSeniorMemberByGuildNameResult()
|
|
49
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
50
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
51
|
+
};
|
|
52
|
+
PromoteSeniorMemberByGuildNameResult.prototype.toDict = function () {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
return {
|
|
55
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
56
|
+
"guild": (_b = this.getGuild()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return PromoteSeniorMemberByGuildNameResult;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = PromoteSeniorMemberByGuildNameResult;
|
|
62
|
+
//# sourceMappingURL=PromoteSeniorMemberByGuildNameResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromoteSeniorMemberByGuildNameResult.js","sourceRoot":"","sources":["PromoteSeniorMemberByGuildNameResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yDAAoC;AAEpC;IAAA;QACY,SAAI,GAA0C,IAAI,CAAC;QACnD,UAAK,GAAwB,IAAI,CAAC;IA0C9C,CAAC;IAxCU,sDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,sDAAO,GAAd,UAAe,IAA2C;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAQ,GAAf,UAAgB,IAA2C;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,uDAAQ,GAAf,UAAgB,KAA0B;QACtC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wDAAS,GAAhB,UAAiB,KAA0B;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,6CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,oCAAoC,EAAE;aAC5C,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;aACjE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,qDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;YAChC,OAAO,EAAE,MAAA,IAAI,CAAC,QAAQ,EAAE,0CAAE,MAAM,EAAE;SACrC,CAAC;IACN,CAAC;IACL,2CAAC;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 Gs2Guild from '../model'
|
|
19
|
+
|
|
20
|
+
export default class PromoteSeniorMemberByGuildNameResult implements IResult {
|
|
21
|
+
private item: Gs2Guild.LastGuildMasterActivity|null = null;
|
|
22
|
+
private guild: Gs2Guild.Guild|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Guild.LastGuildMasterActivity|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Guild.LastGuildMasterActivity|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Guild.LastGuildMasterActivity|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getGuild(): Gs2Guild.Guild|null {
|
|
39
|
+
return this.guild;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public setGuild(guild: Gs2Guild.Guild|null) {
|
|
43
|
+
this.guild = guild;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public withGuild(guild: Gs2Guild.Guild|null): this {
|
|
48
|
+
this.guild = guild;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static fromDict(data: {[key: string]: any}): PromoteSeniorMemberByGuildNameResult {
|
|
53
|
+
return new PromoteSeniorMemberByGuildNameResult()
|
|
54
|
+
.withItem(Gs2Guild.LastGuildMasterActivity.fromDict(data["item"]))
|
|
55
|
+
.withGuild(Gs2Guild.Guild.fromDict(data["guild"]));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public toDict(): {[key: string]: any} {
|
|
59
|
+
return {
|
|
60
|
+
"item": this.getItem()?.toDict(),
|
|
61
|
+
"guild": this.getGuild()?.toDict(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Guild from '../model';
|
|
3
|
+
export default class PromoteSeniorMemberResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private guild;
|
|
6
|
+
getItem(): Gs2Guild.LastGuildMasterActivity | null;
|
|
7
|
+
setItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
8
|
+
withItem(item: Gs2Guild.LastGuildMasterActivity | null): this;
|
|
9
|
+
getGuild(): Gs2Guild.Guild | null;
|
|
10
|
+
setGuild(guild: Gs2Guild.Guild | null): this;
|
|
11
|
+
withGuild(guild: Gs2Guild.Guild | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): PromoteSeniorMemberResult;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|