@xmobitea/gn-typescript-client 2.6.3 → 2.6.5-tsc

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.
Files changed (182) hide show
  1. package/{GNServerSettingsConfig.debug.json → GNServerSettings.debug.json} +1 -0
  2. package/dist/index.d.ts +2 -4
  3. package/dist/index.js +340 -34516
  4. package/dist/runtime/GNNetwork.d.ts +11 -11
  5. package/dist/runtime/GNNetwork.js +250 -0
  6. package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
  7. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +24 -24
  8. package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
  9. package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
  10. package/dist/runtime/GNNetworkContentApi.js +140 -0
  11. package/dist/runtime/GNNetworkDashboardApi.d.ts +6 -6
  12. package/dist/runtime/GNNetworkDashboardApi.js +170 -0
  13. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +30 -30
  14. package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
  15. package/dist/runtime/GNNetworkGroupApi.d.ts +18 -18
  16. package/dist/runtime/GNNetworkGroupApi.js +734 -0
  17. package/dist/runtime/GNNetworkInventoryApi.d.ts +6 -6
  18. package/dist/runtime/GNNetworkInventoryApi.js +626 -0
  19. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +12 -12
  20. package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
  21. package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
  22. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +6 -6
  23. package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
  24. package/dist/runtime/common/Action0.js +1 -0
  25. package/dist/runtime/common/Action1.js +1 -0
  26. package/dist/runtime/common/Action2.js +1 -0
  27. package/dist/runtime/common/Action3.js +1 -0
  28. package/dist/runtime/common/Action4.js +1 -0
  29. package/dist/runtime/common/GNData.js +211 -0
  30. package/dist/runtime/config/GNServerSettings.d.ts +4 -0
  31. package/dist/runtime/config/GNServerSettings.js +149 -0
  32. package/dist/runtime/constant/Commands.js +19 -0
  33. package/dist/runtime/constant/EventCode.d.ts +6 -6
  34. package/dist/runtime/constant/EventCode.js +8 -0
  35. package/dist/runtime/constant/OperationCode.d.ts +219 -219
  36. package/dist/runtime/constant/OperationCode.js +221 -0
  37. package/dist/runtime/constant/ReturnCode.js +14 -0
  38. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
  39. package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
  40. package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
  41. package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
  42. package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
  43. package/dist/runtime/constant/enumType/ItemType.js +5 -0
  44. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
  45. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
  46. package/dist/runtime/constant/enumType/OwnerType.js +9 -0
  47. package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
  48. package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
  49. package/dist/runtime/constant/enumType/RequestRole.js +6 -0
  50. package/dist/runtime/constant/enumType/RequestType.js +15 -0
  51. package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
  52. package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
  53. package/dist/runtime/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +2 -2
  54. package/dist/runtime/constant/errorCode/ErrorCode.js +52 -0
  55. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +610 -0
  56. package/dist/runtime/constant/parameterCode/ParameterCode.js +616 -0
  57. package/dist/runtime/entity/DataMember.js +208 -0
  58. package/dist/runtime/entity/GNMetadata.js +11 -0
  59. package/dist/runtime/entity/InvalidMember.js +1 -0
  60. package/dist/runtime/entity/OperationEvent.d.ts +2 -5
  61. package/dist/runtime/entity/OperationEvent.js +24 -0
  62. package/dist/runtime/entity/OperationHelper.d.ts +2 -2
  63. package/dist/runtime/entity/OperationHelper.js +24 -0
  64. package/dist/runtime/entity/OperationRequest.d.ts +2 -5
  65. package/dist/runtime/entity/OperationRequest.js +42 -0
  66. package/dist/runtime/entity/OperationResponse.d.ts +2 -5
  67. package/dist/runtime/entity/OperationResponse.js +73 -0
  68. package/dist/runtime/entity/models/AuthenticateModels.d.ts +3 -0
  69. package/dist/runtime/entity/models/AuthenticateModels.js +426 -0
  70. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +36 -54
  71. package/dist/runtime/entity/models/AuthenticateRequestModels.js +188 -0
  72. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +1 -1
  73. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  74. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +16 -16
  75. package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
  76. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +236 -289
  77. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1386 -0
  78. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +4 -4
  79. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
  80. package/dist/runtime/entity/models/CloudScriptModels.d.ts +3 -2
  81. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  82. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +20 -25
  83. package/dist/runtime/entity/models/CloudScriptRequestModels.js +138 -0
  84. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  85. package/dist/runtime/entity/models/ContentModels.js +203 -0
  86. package/dist/runtime/entity/models/ContentRequestModels.d.ts +28 -35
  87. package/dist/runtime/entity/models/ContentRequestModels.js +190 -0
  88. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  89. package/dist/runtime/entity/models/DashboardModels.d.ts +39 -39
  90. package/dist/runtime/entity/models/DashboardModels.js +2990 -0
  91. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +58 -84
  92. package/dist/runtime/entity/models/DashboardRequestModels.js +268 -0
  93. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +3 -3
  94. package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
  95. package/dist/runtime/entity/models/GamePlayerModels.d.ts +19 -19
  96. package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
  97. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +238 -290
  98. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1360 -0
  99. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +5 -5
  100. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  101. package/dist/runtime/entity/models/GenericModels.js +177 -0
  102. package/dist/runtime/entity/models/GroupModels.d.ts +13 -13
  103. package/dist/runtime/entity/models/GroupModels.js +1139 -0
  104. package/dist/runtime/entity/models/GroupRequestModels.d.ts +178 -218
  105. package/dist/runtime/entity/models/GroupRequestModels.js +1048 -0
  106. package/dist/runtime/entity/models/GroupResponseModels.d.ts +3 -3
  107. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  108. package/dist/runtime/entity/models/InventoryModels.d.ts +7 -7
  109. package/dist/runtime/entity/models/InventoryModels.js +915 -0
  110. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +142 -176
  111. package/dist/runtime/entity/models/InventoryRequestModels.js +892 -0
  112. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +1 -1
  113. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  114. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +13 -11
  115. package/dist/runtime/entity/models/MasterPlayerModels.js +2573 -0
  116. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +354 -440
  117. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2228 -0
  118. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +3 -3
  119. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
  120. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  121. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +40 -50
  122. package/dist/runtime/entity/models/MultiplayerRequestModels.js +268 -0
  123. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  124. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +11 -11
  125. package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
  126. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +62 -76
  127. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +372 -0
  128. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +1 -1
  129. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
  130. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +3 -4
  131. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  132. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +1 -1
  133. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  134. package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
  135. package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
  136. package/dist/runtime/helper/CodeHelper.d.ts +8 -8
  137. package/dist/runtime/helper/CodeHelper.js +63 -0
  138. package/dist/runtime/helper/ConverterService.js +275 -0
  139. package/dist/runtime/helper/EnumUtility.d.ts +6 -0
  140. package/dist/runtime/helper/EnumUtility.js +33 -0
  141. package/dist/runtime/helper/GNSupport.js +8 -0
  142. package/dist/runtime/helper/GNUtils.js +72 -0
  143. package/dist/runtime/helper/MessagePackConverterService.js +9 -0
  144. package/dist/runtime/logger/GNDebug.js +29 -0
  145. package/dist/runtime/networking/AuthenticateStatus.js +14 -0
  146. package/dist/runtime/networking/IPeer.d.ts +1 -1
  147. package/dist/runtime/networking/IPeer.js +1 -0
  148. package/dist/runtime/networking/NetworkingPeer.d.ts +2 -2
  149. package/dist/runtime/networking/NetworkingPeer.js +178 -0
  150. package/dist/runtime/networking/OperationPending.d.ts +3 -3
  151. package/dist/runtime/networking/OperationPending.js +53 -0
  152. package/dist/runtime/networking/PeerBase.d.ts +3 -3
  153. package/dist/runtime/networking/PeerBase.js +161 -0
  154. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +1 -1
  155. package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
  156. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +1 -1
  157. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
  158. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +1 -1
  159. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
  160. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +1 -1
  161. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
  162. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +1 -1
  163. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
  164. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +1 -1
  165. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
  166. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +3 -1
  167. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +43 -0
  168. package/dist/runtime/networking/http/HttpPeer.js +122 -0
  169. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
  170. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
  171. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +1 -1
  172. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +130 -0
  173. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +10 -12
  174. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +165 -0
  175. package/dist/runtime/networking/socket/SocketPeer.d.ts +2 -2
  176. package/dist/runtime/networking/socket/SocketPeer.js +115 -0
  177. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  178. package/package.json +1 -1
  179. package/dist/gn.js.client.js +0 -47235
  180. package/dist/gn.js.client.min.js +0 -2
  181. package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
  182. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +0 -599
@@ -27,9 +27,9 @@ import { CloudScriptApi } from "./GNNetworkCloudScriptApi";
27
27
  import { GetAuthInfoResponse } from "./entity/response/GetAuthInfoResponse";
28
28
  import { UploadFileResponse } from "./entity/response/UploadFileResponse";
29
29
  export declare class GNNetwork {
30
- static readonly AUTH_TOKEN_KEY = "[GN]_AUTH_TOKEN_KEY";
31
- static readonly USER_ID_KEY = "[GN]_USER_ID_KEY";
32
- static readonly GAME_ID_KEY = "[GN]_GAME_ID_KEY";
30
+ static readonly AUTH_TOKEN_KEY = "[GearN]_AUTH_TOKEN_KEY";
31
+ static readonly USER_ID_KEY = "[GearN]_USER_ID_KEY";
32
+ static readonly GAME_ID_KEY = "[GearN]_GAME_ID_KEY";
33
33
  private static gnServerSettings;
34
34
  static getGNServerSettings(): GNServerSettings;
35
35
  static peer: NetworkingPeer;
@@ -59,18 +59,18 @@ export declare class GNNetwork {
59
59
  private static initServerSettings;
60
60
  private static initGNDebug;
61
61
  private static initGNSocketObject;
62
- static sendViaSocket(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse: Action1<OperationResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): void;
63
- static sendViaSocketAsync(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): Promise<OperationResponse>;
64
- static sendViaHttp(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse: Action1<OperationResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): void;
65
- static sendViaHttpAsync(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): Promise<OperationResponse>;
62
+ static sendViaSocket(requestType: RequestType, role: RequestRole, request: OperationRequest, onResponse: Action1<OperationResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): void;
63
+ static sendViaSocketAsync(requestType: RequestType, role: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): Promise<OperationResponse>;
64
+ static sendViaHttp(requestType: RequestType, role: RequestRole, request: OperationRequest, onResponse: Action1<OperationResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): void;
65
+ static sendViaHttpAsync(requestType: RequestType, role: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable): Promise<OperationResponse>;
66
66
  static sendViaSocketTRequestTResponse<TRequest extends CustomOperationRequest, TResponse extends CustomOperationResponse>(request: TRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
67
67
  static sendViaSocketTRequestTResponseAsync<TRequest extends CustomOperationRequest, TResponse extends CustomOperationResponse>(request: TRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
68
68
  static sendViaHttpTRequestTResponse<TRequest extends CustomOperationRequest, TResponse extends CustomOperationResponse>(request: TRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
69
69
  static sendViaHttpTRequestTResponseAsync<TRequest extends CustomOperationRequest, TResponse extends CustomOperationResponse>(request: TRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
70
- static sendViaSocketTResponse<TResponse extends CustomOperationResponse>(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
71
- static sendViaSocketTResponseAsync<TResponse extends CustomOperationResponse>(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
72
- static sendViaHttpTResponse<TResponse extends CustomOperationResponse>(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
73
- static sendViaHttpTResponseAsync<TResponse extends CustomOperationResponse>(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
70
+ static sendViaSocketTResponse<TResponse extends CustomOperationResponse>(requestType: RequestType, role: RequestRole, request: OperationRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
71
+ static sendViaSocketTResponseAsync<TResponse extends CustomOperationResponse>(requestType: RequestType, role: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
72
+ static sendViaHttpTResponse<TResponse extends CustomOperationResponse>(requestType: RequestType, role: RequestRole, request: OperationRequest, onResponse: Action1<TResponse>, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): void;
73
+ static sendViaHttpTResponseAsync<TResponse extends CustomOperationResponse>(requestType: RequestType, role: RequestRole, request: OperationRequest, overrideAuthToken: string, overrideSecretKey: string, customTags: GNHashtable, customOperationResponseCls: Constructor<TResponse>): Promise<TResponse>;
74
74
  static connectSocket(_onSocketConnect?: Action0): void;
75
75
  static disconnectSocket(_onSocketDisconnect?: Action0): void;
76
76
  static setOnEventHandler(_onEventHandler: Action1<OperationEvent>): void;
@@ -0,0 +1,250 @@
1
+ const VERSION = "2.6";
2
+ import { GNDebug } from "./logger/GNDebug";
3
+ import { GNSupport } from "./helper/GNSupport";
4
+ import { NetworkingPeer } from "./networking/NetworkingPeer";
5
+ import { CodeHelper } from "./helper/CodeHelper";
6
+ import store from "store";
7
+ import { ServiceUpdate } from "./typescript/ServiceUpdate";
8
+ import { AuthenticateApi } from "./GNNetworkAuthenticateApi";
9
+ import { CharacterPlayerApi } from "./GNNetworkCharacterPlayerApi";
10
+ import { ContentApi } from "./GNNetworkContentApi";
11
+ import { DashboardApi } from "./GNNetworkDashboardApi";
12
+ import { GamePlayerApi } from "./GNNetworkGamePlayerApi";
13
+ import { GroupApi } from "./GNNetworkGroupApi";
14
+ import { InventoryApi } from "./GNNetworkInventoryApi";
15
+ import { MasterPlayerApi } from "./GNNetworkMasterPlayerApi";
16
+ import { StoreInventoryApi } from "./GNNetworkStoreInventoryApi";
17
+ import { ConverterService } from "./helper/ConverterService";
18
+ import { MultiplayerApi } from "./GNNetworkMultiplayerApi";
19
+ import { CloudScriptApi } from "./GNNetworkCloudScriptApi";
20
+ export class GNNetwork {
21
+ static getGNServerSettings() {
22
+ return GNNetwork.gnServerSettings;
23
+ }
24
+ static getPing() {
25
+ return GNNetwork.peer != null ? GNNetwork.peer.getPing() : -1;
26
+ }
27
+ static getSocketSId() {
28
+ return GNNetwork.peer != null ? GNNetwork.peer.getClientId() : "";
29
+ }
30
+ static sendRequestAuthSocket() {
31
+ return GNNetwork.peer.sendRequestAuthSocket();
32
+ }
33
+ static isSocketConnected() {
34
+ let socketSId = GNNetwork.getSocketSId();
35
+ if (socketSId)
36
+ return true;
37
+ return false;
38
+ }
39
+ static getServerTimestamp() {
40
+ return GNNetwork.peer != null ? GNNetwork.peer.getServerTimestamp() : new Date().getUTCMilliseconds();
41
+ }
42
+ static getAuthenticateStatus() {
43
+ return GNNetwork.peer.authenticateStatus;
44
+ }
45
+ static getGameId() {
46
+ return GNNetwork.peer.gameId;
47
+ }
48
+ static getPlatform() {
49
+ return 17;
50
+ }
51
+ static init(gnServerSettings) {
52
+ if (GNNetwork.gnServerSettings != null) {
53
+ GNDebug.log("GNNetwork has been init!");
54
+ return;
55
+ }
56
+ GNSupport.init();
57
+ CodeHelper.init();
58
+ ConverterService.init();
59
+ GNNetwork.gnServerSettings = gnServerSettings;
60
+ GNNetwork.initServerSettings();
61
+ GNNetwork.initGNDebug();
62
+ GNDebug.log("GNNetwork init on " + (GNSupport.isBrowser() ? "browser." : "server.") + " Version: " + GNNetwork.getClientSdkVersion());
63
+ GNNetwork.initGNSocketObject();
64
+ GNNetwork.peer.authenticateStatus.setAuthToken(store.get(GNNetwork.AUTH_TOKEN_KEY, ""));
65
+ GNNetwork.peer.authenticateStatus.setUserId(store.get(GNNetwork.USER_ID_KEY, ""));
66
+ GNNetwork.peer.gameId = store.get(GNNetwork.GAME_ID_KEY, "");
67
+ GNNetwork.authenticate = new AuthenticateApi();
68
+ GNNetwork.characterPlayer = new CharacterPlayerApi();
69
+ GNNetwork.content = new ContentApi();
70
+ GNNetwork.dashboard = new DashboardApi();
71
+ GNNetwork.gamePlayer = new GamePlayerApi();
72
+ GNNetwork.group = new GroupApi();
73
+ GNNetwork.inventory = new InventoryApi();
74
+ GNNetwork.masterPlayer = new MasterPlayerApi();
75
+ GNNetwork.storeInventory = new StoreInventoryApi();
76
+ GNNetwork.multiplayer = new MultiplayerApi();
77
+ GNNetwork.cloudScript = new CloudScriptApi();
78
+ }
79
+ static setNewAuthenticateStatus(authenticateStatus) {
80
+ store.set(GNNetwork.AUTH_TOKEN_KEY, authenticateStatus.getAuthToken());
81
+ store.set(GNNetwork.USER_ID_KEY, authenticateStatus.getUserId());
82
+ GNNetwork.peer.authenticateStatus.setAuthToken(authenticateStatus.getAuthToken());
83
+ GNNetwork.peer.authenticateStatus.setUserId(authenticateStatus.getUserId());
84
+ }
85
+ static setGameId(gameId) {
86
+ store.set(GNNetwork.GAME_ID_KEY, gameId);
87
+ GNNetwork.peer.gameId = gameId;
88
+ }
89
+ static getClientSdkVersion() {
90
+ return VERSION;
91
+ }
92
+ static initServerSettings() {
93
+ // gnServerSettings = Resources.Load(GNServerSettings.ResourcesPath) as GNServerSettings;
94
+ // if (gnServerSettings == null)
95
+ // {
96
+ // #if UNITY_EDITOR
97
+ // UnityEditor.EditorApplication.ExecuteMenuItem("XmobiTea GN/Open Settings");
98
+ // gnServerSettings = Resources.Load(GNServerSettings.ResourcesPath) as GNServerSettings;
99
+ // if (gnServerSettings == null) throw new NullReferenceException("Null GN Server Settings, please find it now");
100
+ // #endif
101
+ // }
102
+ }
103
+ static initGNDebug() {
104
+ if (GNNetwork.gnServerSettings == null)
105
+ throw new Error("Null GN Server Settings, please find it now");
106
+ GNDebug.setLogType(GNNetwork.gnServerSettings.getLogType());
107
+ }
108
+ static initGNSocketObject() {
109
+ let peer = new NetworkingPeer();
110
+ peer.initPeer();
111
+ GNNetwork.peer = peer;
112
+ let serviceUpdate = new ServiceUpdate();
113
+ serviceUpdate.peer = peer;
114
+ serviceUpdate.run();
115
+ }
116
+ static sendViaSocket(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
117
+ GNNetwork.peer.sendViaSocket(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
118
+ }
119
+ static async sendViaSocketAsync(requestType, role, request, overrideAuthToken, overrideSecretKey, customTags) {
120
+ return new Promise((resolve) => {
121
+ GNNetwork.sendViaSocket(requestType, role, request, (response) => {
122
+ resolve(response);
123
+ }, overrideAuthToken, overrideSecretKey, customTags);
124
+ });
125
+ }
126
+ static sendViaHttp(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
127
+ GNNetwork.peer.sendViaHttp(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
128
+ }
129
+ static async sendViaHttpAsync(requestType, role, request, overrideAuthToken, overrideSecretKey, customTags) {
130
+ return new Promise((resolve) => {
131
+ GNNetwork.sendViaHttp(requestType, role, request, (response) => {
132
+ resolve(response);
133
+ }, overrideAuthToken, overrideSecretKey, customTags);
134
+ });
135
+ }
136
+ static sendViaSocketTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
137
+ GNNetwork.sendViaSocketTResponse(request.getRequestType(), request.getRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
138
+ }
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);
144
+ });
145
+ }
146
+ static sendViaHttpTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
147
+ GNNetwork.sendViaHttpTResponse(request.getRequestType(), request.getRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
148
+ }
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);
154
+ });
155
+ }
156
+ static sendViaSocketTResponse(requestType, role, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
157
+ GNNetwork.sendViaSocket(requestType, role, request, response => {
158
+ if (response == null)
159
+ return;
160
+ let customOperationResponse = new customOperationResponseCls();
161
+ customOperationResponse.setupOperationResponse(response);
162
+ if (onResponse != null)
163
+ onResponse(customOperationResponse);
164
+ }, overrideAuthToken, overrideSecretKey, customTags);
165
+ }
166
+ static async sendViaSocketTResponseAsync(requestType, role, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
167
+ return new Promise((resolve) => {
168
+ GNNetwork.sendViaSocketTResponse(requestType, role, request, (response) => {
169
+ resolve(response);
170
+ }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
171
+ });
172
+ }
173
+ static sendViaHttpTResponse(requestType, role, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
174
+ GNNetwork.sendViaHttp(requestType, role, request, response => {
175
+ if (response == null)
176
+ return;
177
+ let customOperationResponse = new customOperationResponseCls();
178
+ customOperationResponse.setupOperationResponse(response);
179
+ if (onResponse != null)
180
+ onResponse(customOperationResponse);
181
+ }, overrideAuthToken, overrideSecretKey, customTags);
182
+ }
183
+ static async sendViaHttpTResponseAsync(requestType, role, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
184
+ return new Promise((resolve) => {
185
+ GNNetwork.sendViaHttpTResponse(requestType, role, request, (response) => {
186
+ resolve(response);
187
+ }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
188
+ });
189
+ }
190
+ static connectSocket(_onSocketConnect = null) {
191
+ GNNetwork.peer.connectSocket(_onSocketConnect);
192
+ }
193
+ static disconnectSocket(_onSocketDisconnect = null) {
194
+ GNNetwork.peer.disconnectSocket(_onSocketDisconnect);
195
+ }
196
+ static setOnEventHandler(_onEventHandler) {
197
+ GNNetwork.peer.setOnEventHandler(_onEventHandler);
198
+ }
199
+ static subscriberOnConnectHandler(_onConnectHandler) {
200
+ GNNetwork.peer.setOnConnectHandler(_onConnectHandler);
201
+ }
202
+ static subscriberOnDisconnectHandler(_onDisconnectHandler) {
203
+ GNNetwork.peer.setOnDisconnectHandler(_onDisconnectHandler);
204
+ }
205
+ static unscriberOnConnectHandler(_onConnectHandler) {
206
+ GNNetwork.peer.removeOnConnectHandler(_onConnectHandler);
207
+ }
208
+ static unsubscriberOnDisconnectHandler(_onDisconnectHandler) {
209
+ GNNetwork.peer.removeOnDisconnectHandler(_onDisconnectHandler);
210
+ }
211
+ static subscriberServerEventHandler(serverEventHandler) {
212
+ GNNetwork.peer.subscriberServerEventHandler(serverEventHandler);
213
+ }
214
+ static syncTs(onResponse = null) {
215
+ GNNetwork.peer.syncTs(onResponse);
216
+ }
217
+ static syncTsAsync() {
218
+ return new Promise((resolve) => {
219
+ GNNetwork.syncTs((response) => {
220
+ resolve(response);
221
+ });
222
+ });
223
+ }
224
+ static getAuthInfo(authToken, onResponse = null) {
225
+ GNNetwork.peer.getAuthInfo(authToken, onResponse);
226
+ }
227
+ static getAuthInfoAsync(authToken) {
228
+ return new Promise((resolve) => {
229
+ GNNetwork.getAuthInfo(authToken, (response) => {
230
+ resolve(response);
231
+ });
232
+ });
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
+ }
247
+ }
248
+ GNNetwork.AUTH_TOKEN_KEY = "[GearN]_AUTH_TOKEN_KEY";
249
+ GNNetwork.USER_ID_KEY = "[GearN]_USER_ID_KEY";
250
+ GNNetwork.GAME_ID_KEY = "[GearN]_GAME_ID_KEY";
@@ -0,0 +1,122 @@
1
+ import { GNNetwork } from "./GNNetwork";
2
+ import { OperationRequest } from "./entity/OperationRequest";
3
+ import { AuthenticateRequestModels } from "./entity/models/AuthenticateRequestModels";
4
+ import { AuthenticateResponseModels } from "./entity/models/AuthenticateResponseModels";
5
+ export class AuthenticateApi {
6
+ constructor() {
7
+ this.server = new ServerAuthenticateApi();
8
+ this.admin = new AdminAuthenticateApi();
9
+ }
10
+ loginByAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
11
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
12
+ }
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);
15
+ }
16
+ loginByAndroidDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
17
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
18
+ }
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);
21
+ }
22
+ loginByApple(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
23
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
24
+ }
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);
27
+ }
28
+ loginByCustomDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
29
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
30
+ }
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);
33
+ }
34
+ loginByCustomId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
35
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
36
+ }
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);
39
+ }
40
+ loginByEditorDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
41
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
42
+ }
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);
45
+ }
46
+ loginByFacebook(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
47
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
48
+ }
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);
51
+ }
52
+ loginByGenericService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
53
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
54
+ }
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);
57
+ }
58
+ loginByGoogle(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
59
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
60
+ }
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);
63
+ }
64
+ loginByGooglePlayGameService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
65
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
66
+ }
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);
69
+ }
70
+ loginByGameCenter(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
71
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
72
+ }
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);
75
+ }
76
+ loginByiOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
77
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
78
+ }
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);
81
+ }
82
+ loginByLinuxDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
83
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
84
+ }
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);
87
+ }
88
+ loginByMacOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
89
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
90
+ }
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);
93
+ }
94
+ loginByWindowsDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
95
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
96
+ }
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);
99
+ }
100
+ loginByWindowsPhoneDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
101
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
102
+ }
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);
105
+ }
106
+ registerAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
107
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
108
+ }
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);
111
+ }
112
+ refreshAuthToken(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
113
+ GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
114
+ }
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);
117
+ }
118
+ }
119
+ export class ServerAuthenticateApi {
120
+ }
121
+ export class AdminAuthenticateApi {
122
+ }
@@ -63,10 +63,10 @@ export declare class CharacterPlayerApi {
63
63
  getTsCreateAsync(requestData: CharacterPlayerModels.GetTsCreateRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsCreateOperationResponse>;
64
64
  getTsLastLogin(requestData: CharacterPlayerModels.GetTsLastLoginRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
65
65
  getTsLastLoginAsync(requestData: CharacterPlayerModels.GetTsLastLoginRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>;
66
- grantGroup(requestData: CharacterPlayerModels.GrantGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
67
- grantGroupAsync(requestData: CharacterPlayerModels.GrantGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantGroupOperationResponse>;
68
- grantPlayerItem(requestData: CharacterPlayerModels.GrantPlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
69
- grantPlayerItemAsync(requestData: CharacterPlayerModels.GrantPlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>;
66
+ createGroup(requestData: CharacterPlayerModels.CreateGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreateGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
67
+ createGroupAsync(requestData: CharacterPlayerModels.CreateGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreateGroupOperationResponse>;
68
+ createPlayerItem(requestData: CharacterPlayerModels.CreatePlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
69
+ createPlayerItemAsync(requestData: CharacterPlayerModels.CreatePlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>;
70
70
  joinGroup(requestData: CharacterPlayerModels.JoinGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.JoinGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
71
71
  joinGroupAsync(requestData: CharacterPlayerModels.JoinGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.JoinGroupOperationResponse>;
72
72
  leaveGroup(requestData: CharacterPlayerModels.LeaveGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.LeaveGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
@@ -91,12 +91,12 @@ export declare class CharacterPlayerApi {
91
91
  setOwnerAsync(requestData: CharacterPlayerModels.SetOwnerRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetOwnerOperationResponse>;
92
92
  setPlayerBan(requestData: CharacterPlayerModels.SetPlayerBanRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
93
93
  setPlayerBanAsync(requestData: CharacterPlayerModels.SetPlayerBanRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>;
94
- setPlayerCurrency(requestData: CharacterPlayerModels.SetPlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
95
- setPlayerCurrencyAsync(requestData: CharacterPlayerModels.SetPlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>;
94
+ changePlayerCurrency(requestData: CharacterPlayerModels.ChangePlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
95
+ changePlayerCurrencyAsync(requestData: CharacterPlayerModels.ChangePlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>;
96
96
  setPlayerData(requestData: CharacterPlayerModels.SetPlayerDataRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
97
97
  setPlayerDataAsync(requestData: CharacterPlayerModels.SetPlayerDataRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>;
98
- setPlayerStatistics(requestData: CharacterPlayerModels.SetPlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
99
- setPlayerStatisticsAsync(requestData: CharacterPlayerModels.SetPlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>;
98
+ changePlayerStatistics(requestData: CharacterPlayerModels.ChangePlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
99
+ changePlayerStatisticsAsync(requestData: CharacterPlayerModels.ChangePlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>;
100
100
  setRemoveStatus(requestData: CharacterPlayerModels.SetRemoveStatusRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
101
101
  setRemoveStatusAsync(requestData: CharacterPlayerModels.SetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>;
102
102
  setTag(requestData: CharacterPlayerModels.SetTagRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
@@ -171,10 +171,10 @@ export declare class ServerCharacterPlayerApi {
171
171
  getTsCreateAsync(requestData: CharacterPlayerModels.ServerGetTsCreateRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsCreateOperationResponse>;
172
172
  getTsLastLogin(requestData: CharacterPlayerModels.ServerGetTsLastLoginRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
173
173
  getTsLastLoginAsync(requestData: CharacterPlayerModels.ServerGetTsLastLoginRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>;
174
- grantGroup(requestData: CharacterPlayerModels.ServerGrantGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
175
- grantGroupAsync(requestData: CharacterPlayerModels.ServerGrantGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantGroupOperationResponse>;
176
- grantPlayerItem(requestData: CharacterPlayerModels.ServerGrantPlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
177
- grantPlayerItemAsync(requestData: CharacterPlayerModels.ServerGrantPlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>;
174
+ createGroup(requestData: CharacterPlayerModels.ServerCreateGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreateGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
175
+ createGroupAsync(requestData: CharacterPlayerModels.ServerCreateGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreateGroupOperationResponse>;
176
+ createPlayerItem(requestData: CharacterPlayerModels.ServerCreatePlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
177
+ createPlayerItemAsync(requestData: CharacterPlayerModels.ServerCreatePlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>;
178
178
  joinGroup(requestData: CharacterPlayerModels.ServerJoinGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.JoinGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
179
179
  joinGroupAsync(requestData: CharacterPlayerModels.ServerJoinGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.JoinGroupOperationResponse>;
180
180
  leaveGroup(requestData: CharacterPlayerModels.ServerLeaveGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.LeaveGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
@@ -199,12 +199,12 @@ export declare class ServerCharacterPlayerApi {
199
199
  setOwnerAsync(requestData: CharacterPlayerModels.ServerSetOwnerRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetOwnerOperationResponse>;
200
200
  setPlayerBan(requestData: CharacterPlayerModels.ServerSetPlayerBanRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
201
201
  setPlayerBanAsync(requestData: CharacterPlayerModels.ServerSetPlayerBanRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>;
202
- setPlayerCurrency(requestData: CharacterPlayerModels.ServerSetPlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
203
- setPlayerCurrencyAsync(requestData: CharacterPlayerModels.ServerSetPlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>;
202
+ changePlayerCurrency(requestData: CharacterPlayerModels.ServerChangePlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
203
+ changePlayerCurrencyAsync(requestData: CharacterPlayerModels.ServerChangePlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>;
204
204
  setPlayerData(requestData: CharacterPlayerModels.ServerSetPlayerDataRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
205
205
  setPlayerDataAsync(requestData: CharacterPlayerModels.ServerSetPlayerDataRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>;
206
- setPlayerStatistics(requestData: CharacterPlayerModels.ServerSetPlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
207
- setPlayerStatisticsAsync(requestData: CharacterPlayerModels.ServerSetPlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>;
206
+ changePlayerStatistics(requestData: CharacterPlayerModels.ServerChangePlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
207
+ changePlayerStatisticsAsync(requestData: CharacterPlayerModels.ServerChangePlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>;
208
208
  setRemoveStatus(requestData: CharacterPlayerModels.ServerSetRemoveStatusRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
209
209
  setRemoveStatusAsync(requestData: CharacterPlayerModels.ServerSetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>;
210
210
  setTag(requestData: CharacterPlayerModels.ServerSetTagRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
@@ -279,10 +279,10 @@ export declare class AdminCharacterPlayerApi {
279
279
  getTsCreateAsync(requestData: CharacterPlayerModels.AdminGetTsCreateRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsCreateOperationResponse>;
280
280
  getTsLastLogin(requestData: CharacterPlayerModels.AdminGetTsLastLoginRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
281
281
  getTsLastLoginAsync(requestData: CharacterPlayerModels.AdminGetTsLastLoginRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GetTsLastLoginOperationResponse>;
282
- grantGroup(requestData: CharacterPlayerModels.AdminGrantGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
283
- grantGroupAsync(requestData: CharacterPlayerModels.AdminGrantGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantGroupOperationResponse>;
284
- grantPlayerItem(requestData: CharacterPlayerModels.AdminGrantPlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
285
- grantPlayerItemAsync(requestData: CharacterPlayerModels.AdminGrantPlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.GrantPlayerItemOperationResponse>;
282
+ createGroup(requestData: CharacterPlayerModels.AdminCreateGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreateGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
283
+ createGroupAsync(requestData: CharacterPlayerModels.AdminCreateGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreateGroupOperationResponse>;
284
+ createPlayerItem(requestData: CharacterPlayerModels.AdminCreatePlayerItemRequestData, onResponse?: Action1<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
285
+ createPlayerItemAsync(requestData: CharacterPlayerModels.AdminCreatePlayerItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.CreatePlayerItemOperationResponse>;
286
286
  joinGroup(requestData: CharacterPlayerModels.AdminJoinGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.JoinGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
287
287
  joinGroupAsync(requestData: CharacterPlayerModels.AdminJoinGroupRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.JoinGroupOperationResponse>;
288
288
  leaveGroup(requestData: CharacterPlayerModels.AdminLeaveGroupRequestData, onResponse?: Action1<CharacterPlayerResponseModels.LeaveGroupOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
@@ -307,12 +307,12 @@ export declare class AdminCharacterPlayerApi {
307
307
  setOwnerAsync(requestData: CharacterPlayerModels.AdminSetOwnerRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetOwnerOperationResponse>;
308
308
  setPlayerBan(requestData: CharacterPlayerModels.AdminSetPlayerBanRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
309
309
  setPlayerBanAsync(requestData: CharacterPlayerModels.AdminSetPlayerBanRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerBanOperationResponse>;
310
- setPlayerCurrency(requestData: CharacterPlayerModels.AdminSetPlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
311
- setPlayerCurrencyAsync(requestData: CharacterPlayerModels.AdminSetPlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerCurrencyOperationResponse>;
310
+ changePlayerCurrency(requestData: CharacterPlayerModels.AdminChangePlayerCurrencyRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
311
+ changePlayerCurrencyAsync(requestData: CharacterPlayerModels.AdminChangePlayerCurrencyRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerCurrencyOperationResponse>;
312
312
  setPlayerData(requestData: CharacterPlayerModels.AdminSetPlayerDataRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
313
313
  setPlayerDataAsync(requestData: CharacterPlayerModels.AdminSetPlayerDataRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerDataOperationResponse>;
314
- setPlayerStatistics(requestData: CharacterPlayerModels.AdminSetPlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
315
- setPlayerStatisticsAsync(requestData: CharacterPlayerModels.AdminSetPlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetPlayerStatisticsOperationResponse>;
314
+ changePlayerStatistics(requestData: CharacterPlayerModels.AdminChangePlayerStatisticsRequestData, onResponse?: Action1<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
315
+ changePlayerStatisticsAsync(requestData: CharacterPlayerModels.AdminChangePlayerStatisticsRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.ChangePlayerStatisticsOperationResponse>;
316
316
  setRemoveStatus(requestData: CharacterPlayerModels.AdminSetRemoveStatusRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
317
317
  setRemoveStatusAsync(requestData: CharacterPlayerModels.AdminSetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<CharacterPlayerResponseModels.SetRemoveStatusOperationResponse>;
318
318
  setTag(requestData: CharacterPlayerModels.AdminSetTagRequestData, onResponse?: Action1<CharacterPlayerResponseModels.SetTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;