@xmobitea/gn-typescript-client 2.5.2-esnext → 2.5.3-esnext
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/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/runtime/GNNetwork.d.ts +4 -0
- package/dist/runtime/GNNetwork.js +53 -61
- package/dist/runtime/GNNetworkAuthenticateApi.js +36 -81
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +318 -645
- package/dist/runtime/GNNetworkCloudScriptApi.js +30 -69
- package/dist/runtime/GNNetworkContentApi.js +42 -93
- package/dist/runtime/GNNetworkDashboardApi.js +52 -113
- package/dist/runtime/GNNetworkGamePlayerApi.js +312 -633
- package/dist/runtime/GNNetworkGroupApi.js +240 -489
- package/dist/runtime/GNNetworkInventoryApi.js +204 -417
- package/dist/runtime/GNNetworkMasterPlayerApi.js +512 -1033
- package/dist/runtime/GNNetworkMultiplayerApi.js +60 -129
- package/dist/runtime/GNNetworkStoreInventoryApi.js +84 -177
- package/dist/runtime/constant/enumType/OwnerType.d.ts +2 -1
- package/dist/runtime/constant/enumType/OwnerType.js +1 -0
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +1 -1
- package/dist/runtime/entity/models/AuthenticateModels.js +1 -1
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +1 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.js +4 -0
- package/dist/runtime/entity/models/ContentModels.d.ts +0 -2
- package/dist/runtime/entity/models/ContentModels.js +0 -8
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +1 -0
- package/dist/runtime/entity/models/GamePlayerModels.js +4 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1 -1
- package/dist/runtime/entity/models/MasterPlayerModels.js +1 -1
- package/dist/runtime/entity/response/UploadFileResponse.d.ts +3 -0
- package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
- package/dist/runtime/helper/GNUtils.d.ts +1 -1
- package/dist/runtime/helper/MessagePackConverterService.d.ts +4 -0
- package/dist/runtime/helper/MessagePackConverterService.js +9 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +3 -1
- package/dist/runtime/networking/NetworkingPeer.js +20 -1
- package/dist/runtime/networking/http/HttpPeer.d.ts +1 -1
- package/dist/runtime/networking/http/HttpPeer.js +4 -4
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +1 -1
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +2 -1
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +122 -104
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +0 -1
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +2 -2
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +3 -3
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ import { CustomOperationResponse, CustomOperationResponseAbstract } from "./runt
|
|
|
132
132
|
export { CustomOperationResponse, CustomOperationResponseAbstract };
|
|
133
133
|
import { GetAuthInfoResponse } from "./runtime/entity/response/GetAuthInfoResponse";
|
|
134
134
|
export { GetAuthInfoResponse };
|
|
135
|
+
import { UploadFileResponse } from "./runtime/entity/response/UploadFileResponse";
|
|
136
|
+
export { UploadFileResponse };
|
|
135
137
|
import { InvalidMember } from "./runtime/entity/InvalidMember";
|
|
136
138
|
import { OperationEvent } from "./runtime/entity/OperationEvent";
|
|
137
139
|
import { OperationHelper } from "./runtime/entity/OperationHelper";
|
package/dist/index.js
CHANGED
|
@@ -122,6 +122,8 @@ import { CustomOperationResponse, CustomOperationResponseAbstract } from "./runt
|
|
|
122
122
|
export { CustomOperationResponse, CustomOperationResponseAbstract };
|
|
123
123
|
import { GetAuthInfoResponse } from "./runtime/entity/response/GetAuthInfoResponse";
|
|
124
124
|
export { GetAuthInfoResponse };
|
|
125
|
+
import { UploadFileResponse } from "./runtime/entity/response/UploadFileResponse";
|
|
126
|
+
export { UploadFileResponse };
|
|
125
127
|
import { OperationEvent } from "./runtime/entity/OperationEvent";
|
|
126
128
|
import { OperationHelper } from "./runtime/entity/OperationHelper";
|
|
127
129
|
import { OperationRequest } from "./runtime/entity/OperationRequest";
|
|
@@ -279,6 +281,7 @@ const gn = {
|
|
|
279
281
|
CustomOperationResponse,
|
|
280
282
|
CustomOperationResponseAbstract,
|
|
281
283
|
GetAuthInfoResponse,
|
|
284
|
+
UploadFileResponse,
|
|
282
285
|
OperationEvent,
|
|
283
286
|
OperationHelper,
|
|
284
287
|
OperationRequest,
|
|
@@ -25,6 +25,7 @@ import { StoreInventoryApi } from "./GNNetworkStoreInventoryApi";
|
|
|
25
25
|
import { MultiplayerApi } from "./GNNetworkMultiplayerApi";
|
|
26
26
|
import { CloudScriptApi } from "./GNNetworkCloudScriptApi";
|
|
27
27
|
import { GetAuthInfoResponse } from "./entity/response/GetAuthInfoResponse";
|
|
28
|
+
import { UploadFileResponse } from "./entity/response/UploadFileResponse";
|
|
28
29
|
export declare class GNNetwork {
|
|
29
30
|
static readonly AUTH_TOKEN_KEY = "[GN]_AUTH_TOKEN_KEY";
|
|
30
31
|
static readonly USER_ID_KEY = "[GN]_USER_ID_KEY";
|
|
@@ -82,4 +83,7 @@ export declare class GNNetwork {
|
|
|
82
83
|
static syncTsAsync(): Promise<number>;
|
|
83
84
|
static getAuthInfo(authToken: string, onResponse?: Action1<GetAuthInfoResponse>): void;
|
|
84
85
|
static getAuthInfoAsync(authToken: string): Promise<GetAuthInfoResponse>;
|
|
86
|
+
static uploadFile(fileId: string, content: Uint8Array, filename: string, mimetype: string, onResponse?: Action1<UploadFileResponse>): void;
|
|
87
|
+
static uploadFileAsync(fileId: string, content: Uint8Array, filename: string, mimetype: string): Promise<UploadFileResponse>;
|
|
88
|
+
static getDownloadFileUrl(downloadToken: string): string;
|
|
85
89
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
const VERSION = "2.5";
|
|
11
2
|
import { GNDebug } from "./logger/GNDebug";
|
|
12
3
|
import { GNSupport } from "./helper/GNSupport";
|
|
@@ -125,49 +116,41 @@ export class GNNetwork {
|
|
|
125
116
|
static sendViaSocket(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
|
|
126
117
|
GNNetwork.peer.sendViaSocket(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
127
118
|
}
|
|
128
|
-
static sendViaSocketAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
134
|
-
});
|
|
119
|
+
static async sendViaSocketAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
|
|
120
|
+
return new Promise((resolve) => {
|
|
121
|
+
GNNetwork.sendViaSocket(requestType, requestRole, request, (response) => {
|
|
122
|
+
resolve(response);
|
|
123
|
+
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
135
124
|
});
|
|
136
125
|
}
|
|
137
126
|
static sendViaHttp(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
|
|
138
127
|
GNNetwork.peer.sendViaHttp(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
139
128
|
}
|
|
140
|
-
static sendViaHttpAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
146
|
-
});
|
|
129
|
+
static async sendViaHttpAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
|
|
130
|
+
return new Promise((resolve) => {
|
|
131
|
+
GNNetwork.sendViaHttp(requestType, requestRole, request, (response) => {
|
|
132
|
+
resolve(response);
|
|
133
|
+
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
147
134
|
});
|
|
148
135
|
}
|
|
149
136
|
static sendViaSocketTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
150
137
|
GNNetwork.sendViaSocketTResponse(request.getRequestType(), request.getRequestRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
151
138
|
}
|
|
152
|
-
static sendViaSocketTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
153
|
-
return
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
158
|
-
});
|
|
139
|
+
static async sendViaSocketTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
140
|
+
return new Promise((resolve) => {
|
|
141
|
+
GNNetwork.sendViaSocketTRequestTResponse(request, (response) => {
|
|
142
|
+
resolve(response);
|
|
143
|
+
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
159
144
|
});
|
|
160
145
|
}
|
|
161
146
|
static sendViaHttpTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
162
147
|
GNNetwork.sendViaHttpTResponse(request.getRequestType(), request.getRequestRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
163
148
|
}
|
|
164
|
-
static sendViaHttpTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
165
|
-
return
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
170
|
-
});
|
|
149
|
+
static async sendViaHttpTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
|
|
150
|
+
return new Promise((resolve) => {
|
|
151
|
+
GNNetwork.sendViaHttpTRequestTResponse(request, (response) => {
|
|
152
|
+
resolve(response);
|
|
153
|
+
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
171
154
|
});
|
|
172
155
|
}
|
|
173
156
|
static sendViaSocketTResponse(requestType, requestRole, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
|
|
@@ -180,13 +163,11 @@ export class GNNetwork {
|
|
|
180
163
|
onResponse(customOperationResponse);
|
|
181
164
|
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
182
165
|
}
|
|
183
|
-
static sendViaSocketTResponseAsync(
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
189
|
-
});
|
|
166
|
+
static async sendViaSocketTResponseAsync(requestType, requestRole, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
|
|
167
|
+
return new Promise((resolve) => {
|
|
168
|
+
GNNetwork.sendViaSocketTResponse(requestType, requestRole, request, (response) => {
|
|
169
|
+
resolve(response);
|
|
170
|
+
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
190
171
|
});
|
|
191
172
|
}
|
|
192
173
|
static sendViaHttpTResponse(requestType, requestRole, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
|
|
@@ -199,41 +180,39 @@ export class GNNetwork {
|
|
|
199
180
|
onResponse(customOperationResponse);
|
|
200
181
|
}, overrideAuthToken, overrideSecretKey, customTags);
|
|
201
182
|
}
|
|
202
|
-
static sendViaHttpTResponseAsync(
|
|
203
|
-
return
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
208
|
-
});
|
|
183
|
+
static async sendViaHttpTResponseAsync(requestType, requestRole, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
|
|
184
|
+
return new Promise((resolve) => {
|
|
185
|
+
GNNetwork.sendViaHttpTResponse(requestType, requestRole, request, (response) => {
|
|
186
|
+
resolve(response);
|
|
187
|
+
}, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
|
|
209
188
|
});
|
|
210
189
|
}
|
|
211
190
|
static connectSocket(_onSocketConnect = null) {
|
|
212
|
-
|
|
191
|
+
GNNetwork.peer.connectSocket(_onSocketConnect);
|
|
213
192
|
}
|
|
214
193
|
static disconnectSocket(_onSocketDisconnect = null) {
|
|
215
|
-
|
|
194
|
+
GNNetwork.peer.disconnectSocket(_onSocketDisconnect);
|
|
216
195
|
}
|
|
217
196
|
static setOnEventHandler(_onEventHandler) {
|
|
218
|
-
|
|
197
|
+
GNNetwork.peer.setOnEventHandler(_onEventHandler);
|
|
219
198
|
}
|
|
220
199
|
static subscriberOnConnectHandler(_onConnectHandler) {
|
|
221
|
-
|
|
200
|
+
GNNetwork.peer.setOnConnectHandler(_onConnectHandler);
|
|
222
201
|
}
|
|
223
202
|
static subscriberOnDisconnectHandler(_onDisconnectHandler) {
|
|
224
|
-
|
|
203
|
+
GNNetwork.peer.setOnDisconnectHandler(_onDisconnectHandler);
|
|
225
204
|
}
|
|
226
205
|
static unscriberOnConnectHandler(_onConnectHandler) {
|
|
227
|
-
|
|
206
|
+
GNNetwork.peer.removeOnConnectHandler(_onConnectHandler);
|
|
228
207
|
}
|
|
229
208
|
static unsubscriberOnDisconnectHandler(_onDisconnectHandler) {
|
|
230
|
-
|
|
209
|
+
GNNetwork.peer.removeOnDisconnectHandler(_onDisconnectHandler);
|
|
231
210
|
}
|
|
232
211
|
static subscriberServerEventHandler(serverEventHandler) {
|
|
233
|
-
|
|
212
|
+
GNNetwork.peer.subscriberServerEventHandler(serverEventHandler);
|
|
234
213
|
}
|
|
235
214
|
static syncTs(onResponse = null) {
|
|
236
|
-
|
|
215
|
+
GNNetwork.peer.syncTs(onResponse);
|
|
237
216
|
}
|
|
238
217
|
static syncTsAsync() {
|
|
239
218
|
return new Promise((resolve) => {
|
|
@@ -243,7 +222,7 @@ export class GNNetwork {
|
|
|
243
222
|
});
|
|
244
223
|
}
|
|
245
224
|
static getAuthInfo(authToken, onResponse = null) {
|
|
246
|
-
|
|
225
|
+
GNNetwork.peer.getAuthInfo(authToken, onResponse);
|
|
247
226
|
}
|
|
248
227
|
static getAuthInfoAsync(authToken) {
|
|
249
228
|
return new Promise((resolve) => {
|
|
@@ -252,6 +231,19 @@ export class GNNetwork {
|
|
|
252
231
|
});
|
|
253
232
|
});
|
|
254
233
|
}
|
|
234
|
+
static uploadFile(fileId, content, filename, mimetype, onResponse = null) {
|
|
235
|
+
GNNetwork.peer.uploadFile(fileId, content, filename, mimetype, onResponse);
|
|
236
|
+
}
|
|
237
|
+
static uploadFileAsync(fileId, content, filename, mimetype) {
|
|
238
|
+
return new Promise((resolve) => {
|
|
239
|
+
GNNetwork.uploadFile(fileId, content, filename, mimetype, (response) => {
|
|
240
|
+
resolve(response);
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
static getDownloadFileUrl(downloadToken) {
|
|
245
|
+
return GNNetwork.gnServerSettings.getHttpUrl() + "/" + NetworkingPeer.DOWNLOAD_FILE + "/" + downloadToken;
|
|
246
|
+
}
|
|
255
247
|
}
|
|
256
248
|
GNNetwork.AUTH_TOKEN_KEY = "[GN]_AUTH_TOKEN_KEY";
|
|
257
249
|
GNNetwork.USER_ID_KEY = "[GN]_USER_ID_KEY";
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { GNNetwork } from "./GNNetwork";
|
|
11
2
|
import { OperationRequest } from "./entity/OperationRequest";
|
|
12
3
|
import { AuthenticateRequestModels } from "./entity/models/AuthenticateRequestModels";
|
|
@@ -19,146 +10,110 @@ export class AuthenticateApi {
|
|
|
19
10
|
loginByAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
20
11
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
|
|
21
12
|
}
|
|
22
|
-
loginByAccountAsync(
|
|
23
|
-
return
|
|
24
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
|
|
25
|
-
});
|
|
13
|
+
async loginByAccountAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
14
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
|
|
26
15
|
}
|
|
27
16
|
loginByAndroidDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
28
17
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
|
|
29
18
|
}
|
|
30
|
-
loginByAndroidDeviceIdAsync(
|
|
31
|
-
return
|
|
32
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
|
|
33
|
-
});
|
|
19
|
+
async loginByAndroidDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
20
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
|
|
34
21
|
}
|
|
35
22
|
loginByApple(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
36
23
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
|
|
37
24
|
}
|
|
38
|
-
loginByAppleAsync(
|
|
39
|
-
return
|
|
40
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
|
|
41
|
-
});
|
|
25
|
+
async loginByAppleAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
26
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
|
|
42
27
|
}
|
|
43
28
|
loginByCustomDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
44
29
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
|
|
45
30
|
}
|
|
46
|
-
loginByCustomDeviceIdAsync(
|
|
47
|
-
return
|
|
48
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
|
|
49
|
-
});
|
|
31
|
+
async loginByCustomDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
32
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
|
|
50
33
|
}
|
|
51
34
|
loginByCustomId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
52
35
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
|
|
53
36
|
}
|
|
54
|
-
loginByCustomIdAsync(
|
|
55
|
-
return
|
|
56
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
|
|
57
|
-
});
|
|
37
|
+
async loginByCustomIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
38
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
|
|
58
39
|
}
|
|
59
40
|
loginByEditorDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
60
41
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
|
|
61
42
|
}
|
|
62
|
-
loginByEditorDeviceIdAsync(
|
|
63
|
-
return
|
|
64
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
|
|
65
|
-
});
|
|
43
|
+
async loginByEditorDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
44
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
|
|
66
45
|
}
|
|
67
46
|
loginByFacebook(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
68
47
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
|
|
69
48
|
}
|
|
70
|
-
loginByFacebookAsync(
|
|
71
|
-
return
|
|
72
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
|
|
73
|
-
});
|
|
49
|
+
async loginByFacebookAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
50
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
|
|
74
51
|
}
|
|
75
52
|
loginByGenericService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
76
53
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
|
|
77
54
|
}
|
|
78
|
-
loginByGenericServiceAsync(
|
|
79
|
-
return
|
|
80
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
|
|
81
|
-
});
|
|
55
|
+
async loginByGenericServiceAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
56
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
|
|
82
57
|
}
|
|
83
58
|
loginByGoogle(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
84
59
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
|
|
85
60
|
}
|
|
86
|
-
loginByGoogleAsync(
|
|
87
|
-
return
|
|
88
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
|
|
89
|
-
});
|
|
61
|
+
async loginByGoogleAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
62
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
|
|
90
63
|
}
|
|
91
64
|
loginByGooglePlayGameService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
92
65
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
|
|
93
66
|
}
|
|
94
|
-
loginByGooglePlayGameServiceAsync(
|
|
95
|
-
return
|
|
96
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
|
|
97
|
-
});
|
|
67
|
+
async loginByGooglePlayGameServiceAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
68
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
|
|
98
69
|
}
|
|
99
70
|
loginByGameCenter(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
100
71
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
|
|
101
72
|
}
|
|
102
|
-
loginByGameCenterAsync(
|
|
103
|
-
return
|
|
104
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
|
|
105
|
-
});
|
|
73
|
+
async loginByGameCenterAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
74
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
|
|
106
75
|
}
|
|
107
76
|
loginByiOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
108
77
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
|
|
109
78
|
}
|
|
110
|
-
loginByiOSDeviceIdAsync(
|
|
111
|
-
return
|
|
112
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
|
|
113
|
-
});
|
|
79
|
+
async loginByiOSDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
80
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
|
|
114
81
|
}
|
|
115
82
|
loginByLinuxDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
116
83
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
|
|
117
84
|
}
|
|
118
|
-
loginByLinuxDeviceIdAsync(
|
|
119
|
-
return
|
|
120
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
|
|
121
|
-
});
|
|
85
|
+
async loginByLinuxDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
86
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
|
|
122
87
|
}
|
|
123
88
|
loginByMacOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
124
89
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
|
|
125
90
|
}
|
|
126
|
-
loginByMacOSDeviceIdAsync(
|
|
127
|
-
return
|
|
128
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
|
|
129
|
-
});
|
|
91
|
+
async loginByMacOSDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
92
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
|
|
130
93
|
}
|
|
131
94
|
loginByWindowsDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
132
95
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
|
|
133
96
|
}
|
|
134
|
-
loginByWindowsDeviceIdAsync(
|
|
135
|
-
return
|
|
136
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
|
|
137
|
-
});
|
|
97
|
+
async loginByWindowsDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
98
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
|
|
138
99
|
}
|
|
139
100
|
loginByWindowsPhoneDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
140
101
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
|
|
141
102
|
}
|
|
142
|
-
loginByWindowsPhoneDeviceIdAsync(
|
|
143
|
-
return
|
|
144
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
|
|
145
|
-
});
|
|
103
|
+
async loginByWindowsPhoneDeviceIdAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
104
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
|
|
146
105
|
}
|
|
147
106
|
registerAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
148
107
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
|
|
149
108
|
}
|
|
150
|
-
registerAccountAsync(
|
|
151
|
-
return
|
|
152
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
|
|
153
|
-
});
|
|
109
|
+
async registerAccountAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
110
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
|
|
154
111
|
}
|
|
155
112
|
refreshAuthToken(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
156
113
|
GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
|
|
157
114
|
}
|
|
158
|
-
refreshAuthTokenAsync(
|
|
159
|
-
return
|
|
160
|
-
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
|
|
161
|
-
});
|
|
115
|
+
async refreshAuthTokenAsync(requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
116
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
|
|
162
117
|
}
|
|
163
118
|
}
|
|
164
119
|
export class ServerAuthenticateApi {
|