@xmobitea/gn-typescript-client 2.6.12 → 2.6.13
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/gearn.js.client.js +183 -57
- package/dist/gearn.js.client.min.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +183 -57
- package/dist/runtime/GNNetwork.d.ts +1 -1
- package/dist/runtime/helper/GNSupport.d.ts +20 -0
- package/dist/runtime/{entity → helper}/OperationHelper.d.ts +1 -1
- package/dist/runtime/helper/StorageService.d.ts +18 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +1 -1
- package/dist/runtime/typescript/ServiceUpdate.d.ts +2 -0
- package/docs/COCOS_CREATOR_INTEGRATION.md +116 -0
- package/examples/cocos-creator/GearNExample.ts.txt +176 -0
- package/package.json +3 -2
- package/srcSwift/Package.swift +32 -0
- package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +530 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +178 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +1162 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +154 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +208 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +240 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +1369 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +1100 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +937 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +2323 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +298 -0
- package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +397 -0
- package/srcSwift/Sources/GearN/runtime/common/Action0.swift +3 -0
- package/srcSwift/Sources/GearN/runtime/common/Action1.swift +3 -0
- package/srcSwift/Sources/GearN/runtime/common/Action2.swift +3 -0
- package/srcSwift/Sources/GearN/runtime/common/Action3.swift +3 -0
- package/srcSwift/Sources/GearN/runtime/common/Action4.swift +3 -0
- package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +204 -0
- package/srcSwift/Sources/GearN/runtime/common/GNData.swift +108 -0
- package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +200 -0
- package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +95 -0
- package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +28 -0
- package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +10 -0
- package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +252 -0
- package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +19 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +9 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +8 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +6 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +8 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +19 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +6 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +7 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +9 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +10 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +6 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +6 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +7 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +16 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +6 -0
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +9 -0
- package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +58 -0
- package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +672 -0
- package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +196 -0
- package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +9 -0
- package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +11 -0
- package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +38 -0
- package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +28 -0
- package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +62 -0
- package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +98 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +351 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +81 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +108 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +1045 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +821 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +588 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +187 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +84 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +59 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +195 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +116 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +81 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +426 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +160 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +82 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +1334 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +643 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +213 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +171 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +850 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +485 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +165 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +679 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +413 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +141 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +378 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +147 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +318 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +319 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +125 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +45 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +633 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +173 -0
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +61 -0
- package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +42 -0
- package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +49 -0
- package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +43 -0
- package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +86 -0
- package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +15 -0
- package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +107 -0
- package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +98 -0
- package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +34 -0
- package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +41 -0
- package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +66 -0
- package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +21 -0
- package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +29 -0
- package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +33 -0
- package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +24 -0
- package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +8 -0
- package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +368 -0
- package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +81 -0
- package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +228 -0
- package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +20 -0
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +226 -0
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +24 -0
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +13 -0
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +125 -0
- package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +19 -0
- package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +13 -0
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +244 -0
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +59 -0
- package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +136 -0
- package/tsconfig-build.cocos.json +31 -0
- package/webpack.config.cocos.mjs +78 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
public struct OperationCode {
|
|
4
|
+
public static let LoginByAdminAccount: String = "loginByAdminAccount"
|
|
5
|
+
public static let ChangePasswordAdminAccount: String = "changePasswordAdminAccount"
|
|
6
|
+
public static let GetGameList: String = "getGameList"
|
|
7
|
+
public static let GetMasterGameSettings: String = "getMasterGameSettings"
|
|
8
|
+
public static let SetMasterGameSettings: String = "setMasterGameSettings"
|
|
9
|
+
public static let CreateAdminAccount: String = "createAdminAccount"
|
|
10
|
+
public static let RemoveAdminAccount: String = "removeAdminAccount"
|
|
11
|
+
public static let SetPasswordAdminAccount: String = "setPasswordAdminAccount"
|
|
12
|
+
public static let SetSecretKeyAdminAccount: String = "setSecretKeyAdminAccount"
|
|
13
|
+
public static let GetGameInformation: String = "getGameInformation"
|
|
14
|
+
public static let SetGameInformation: String = "setGameInformation"
|
|
15
|
+
public static let GetAdminAccountList: String = "getAdminAccountList"
|
|
16
|
+
public static let CreateGame: String = "createGame"
|
|
17
|
+
public static let GetServerLog: String = "getServerLog"
|
|
18
|
+
public static let GetSecretInfoInformation: String = "getSecretInfoInformation"
|
|
19
|
+
public static let GetSecretInfoList: String = "getSecretInfoList"
|
|
20
|
+
public static let CreateSecretInfo: String = "createSecretInfo"
|
|
21
|
+
public static let SetSecretInfoInformation: String = "setSecretInfoInformation"
|
|
22
|
+
public static let GetUsernameAdminAccount: String = "getUsernameAdminAccount"
|
|
23
|
+
public static let GetAnalytics: String = "getAnalytics"
|
|
24
|
+
public static let GetEventCallbackCloudScript: String = "getEventCallbackCloudScript"
|
|
25
|
+
public static let SetEventCallbackCloudScript: String = "setEventCallbackCloudScript"
|
|
26
|
+
public static let ResetStatisticsLeaderboard: String = "resetStatisticsLeaderboard"
|
|
27
|
+
public static let GetBackupStatisticsLeaderboardVersion: String = "getBackupStatisticsLeaderboardVersion"
|
|
28
|
+
public static let GetServerGameData: String = "getServerGameData"
|
|
29
|
+
public static let DeleteInDatabase: String = "deleteInDatabase"
|
|
30
|
+
|
|
31
|
+
public static let LoginByAccount: String = "loginByAccount"
|
|
32
|
+
public static let LoginByAndroidDeviceId: String = "loginByAndroidDeviceId"
|
|
33
|
+
public static let LoginByApple: String = "loginByApple"
|
|
34
|
+
public static let LoginByCustomDeviceId: String = "loginByCustomDeviceId"
|
|
35
|
+
public static let LoginByCustomId: String = "loginByCustomId"
|
|
36
|
+
public static let LoginByEditorDeviceId: String = "loginByEditorDeviceId"
|
|
37
|
+
public static let LoginByFacebook: String = "loginByFacebook"
|
|
38
|
+
public static let LoginByGenericService: String = "loginByGenericService"
|
|
39
|
+
public static let LoginByGoogle: String = "loginByGoogle"
|
|
40
|
+
public static let LoginByiOSDeviceId: String = "loginByiOSDeviceId"
|
|
41
|
+
public static let LoginByLinuxDeviceId: String = "loginByLinuxDeviceId"
|
|
42
|
+
public static let LoginByMacOSDeviceId: String = "loginByMacOSDeviceId"
|
|
43
|
+
public static let LoginByWindowsDeviceId: String = "loginByWindowsDeviceId"
|
|
44
|
+
public static let LoginByWindowsPhoneDeviceId: String = "loginByWindowsPhoneDeviceId"
|
|
45
|
+
public static let RegisterAccount: String = "registerAccount"
|
|
46
|
+
|
|
47
|
+
public static let LinkAccount: String = "linkAccount"
|
|
48
|
+
public static let LinkAndroidDeviceId: String = "linkAndroidDeviceId"
|
|
49
|
+
public static let LinkApple: String = "linkApple"
|
|
50
|
+
public static let LinkCustomDeviceId: String = "linkCustomDeviceId"
|
|
51
|
+
public static let LinkCustomId: String = "linkCustomId"
|
|
52
|
+
public static let LinkEditorDeviceId: String = "linkEditorDeviceId"
|
|
53
|
+
public static let LinkFacebook: String = "linkFacebook"
|
|
54
|
+
public static let LinkGenericService: String = "linkGenericService"
|
|
55
|
+
public static let LinkGoogle: String = "linkGoogle"
|
|
56
|
+
public static let LinkiOSDeviceId: String = "linkiOSDeviceId"
|
|
57
|
+
public static let LinkLinuxDeviceId: String = "linkLinuxDeviceId"
|
|
58
|
+
public static let LinkMacOSDeviceId: String = "linkMacOSDeviceId"
|
|
59
|
+
public static let LinkWindowsDeviceId: String = "linkWindowsDeviceId"
|
|
60
|
+
public static let LinkWindowsPhoneDeviceId: String = "linkWindowsPhoneDeviceId"
|
|
61
|
+
|
|
62
|
+
public static let UnlinkAccount: String = "unlinkAccount"
|
|
63
|
+
public static let UnlinkAndroidDeviceId: String = "unlinkAndroidDeviceId"
|
|
64
|
+
public static let UnlinkApple: String = "unlinkApple"
|
|
65
|
+
public static let UnlinkCustomDeviceId: String = "unlinkCustomDeviceId"
|
|
66
|
+
public static let UnlinkCustomId: String = "unlinkCustomId"
|
|
67
|
+
public static let UnlinkEditorDeviceId: String = "unlinkEditorDeviceId"
|
|
68
|
+
public static let UnlinkFacebook: String = "unlinkFacebook"
|
|
69
|
+
public static let UnlinkGenericService: String = "unlinkGenericService"
|
|
70
|
+
public static let UnlinkGoogle: String = "unlinkGoogle"
|
|
71
|
+
public static let UnlinkiOSDeviceId: String = "unlinkiOSDeviceId"
|
|
72
|
+
public static let UnlinkLinuxDeviceId: String = "unlinkLinuxDeviceId"
|
|
73
|
+
public static let UnlinkMacOSDeviceId: String = "unlinkMacOSDeviceId"
|
|
74
|
+
public static let UnlinkWindowsDeviceId: String = "unlinkWindowsDeviceId"
|
|
75
|
+
public static let UnlinkWindowsPhoneDeviceId: String = "unlinkWindowsPhoneDeviceId"
|
|
76
|
+
|
|
77
|
+
public static let AddSegment: String = "addSegment"
|
|
78
|
+
public static let RemoveSegment: String = "removeSegment"
|
|
79
|
+
public static let GetSegment: String = "getSegment"
|
|
80
|
+
|
|
81
|
+
public static let SetTag: String = "setTag"
|
|
82
|
+
public static let GetTag: String = "getTag"
|
|
83
|
+
|
|
84
|
+
public static let SetDisplayName: String = "setDisplayName"
|
|
85
|
+
public static let GetDisplayName: String = "getDisplayName"
|
|
86
|
+
|
|
87
|
+
public static let GetTsCreate: String = "getTsCreate"
|
|
88
|
+
public static let GetIpAddressCreate: String = "getIpAddressCreate"
|
|
89
|
+
public static let GetTsLastLogin: String = "getTsLastLogin"
|
|
90
|
+
|
|
91
|
+
public static let SetPlayerBan: String = "setPlayerBan"
|
|
92
|
+
public static let GetPlayerBan: String = "getPlayerBan"
|
|
93
|
+
|
|
94
|
+
public static let SetCountryCode: String = "setCountryCode"
|
|
95
|
+
public static let GetCountryCode: String = "getCountryCode"
|
|
96
|
+
|
|
97
|
+
public static let ChangeAccountPassword: String = "changeAccountPassword"
|
|
98
|
+
public static let ResetAccountPassword: String = "resetAccountPassword"
|
|
99
|
+
|
|
100
|
+
public static let SetAvatar: String = "setAvatar"
|
|
101
|
+
public static let GetAvatar: String = "getAvatar"
|
|
102
|
+
|
|
103
|
+
public static let ChangePlayerCurrency: String = "changePlayerCurrency"
|
|
104
|
+
public static let GetPlayerCurrency: String = "getPlayerCurrency"
|
|
105
|
+
|
|
106
|
+
public static let ChangePlayerStatistics: String = "changePlayerStatistics"
|
|
107
|
+
public static let GetPlayerStatistics: String = "getPlayerStatistics"
|
|
108
|
+
|
|
109
|
+
public static let GetStatisticsLeaderboard: String = "getStatisticsLeaderboard"
|
|
110
|
+
public static let GetStatisticsLeaderboardAroundPlayer: String = "getStatisticsLeaderboardAroundPlayer"
|
|
111
|
+
|
|
112
|
+
public static let SetCustomData: String = "setCustomData"
|
|
113
|
+
public static let GetCustomData: String = "getCustomData"
|
|
114
|
+
|
|
115
|
+
public static let SetPlayerData: String = "setPlayerData"
|
|
116
|
+
public static let GetPlayerData: String = "getPlayerData"
|
|
117
|
+
|
|
118
|
+
public static let GetPlayerInformation: String = "getPlayerInformation"
|
|
119
|
+
|
|
120
|
+
public static let GetPlayersWithApple: String = "getPlayersWithApple"
|
|
121
|
+
public static let GetPlayersWithFacebook: String = "getPlayersWithFacebook"
|
|
122
|
+
public static let GetPlayersWithGoogle: String = "getPlayersWithGoogle"
|
|
123
|
+
public static let GetPlayersWithGenericService: String = "getPlayersWithGenericService"
|
|
124
|
+
public static let GetPlayersWithSegment: String = "getPlayersWithSegment"
|
|
125
|
+
public static let GetPlayersWithTag: String = "getPlayersWithTag"
|
|
126
|
+
public static let GetExternal: String = "getExternal"
|
|
127
|
+
public static let GetCatalogId: String = "getCatalogId"
|
|
128
|
+
public static let GetOwnerInfo: String = "getOwnerInfo"
|
|
129
|
+
public static let GetOnlineStatus: String = "getOnlineStatus"
|
|
130
|
+
public static readonly RemovePlayerItem: String = "removePlayerItem"
|
|
131
|
+
public static readonly RemovePlayerCharacter: String = "removePlayerCharacter"
|
|
132
|
+
public static readonly AddPlayerFriend: String = "addPlayerFriend"
|
|
133
|
+
public static readonly RemovePlayerFriend: String = "removePlayerFriend"
|
|
134
|
+
public static readonly GetPlayerInventory: String = "getPlayerInventory"
|
|
135
|
+
public static readonly GetPlayerCharacter: String = "getPlayerCharacter"
|
|
136
|
+
public static readonly GetPlayerFriend: String = "getPlayerFriend"
|
|
137
|
+
public static readonly GetPlayerGroup: String = "getPlayerGroup"
|
|
138
|
+
public static readonly CreateGroup: String = "createGroup"
|
|
139
|
+
public static readonly JoinGroup: String = "joinGroup"
|
|
140
|
+
public static readonly CreatePlayerItem: String = "createPlayerItem"
|
|
141
|
+
public static readonly CreatePlayerCharacter: String = "createPlayerCharacter"
|
|
142
|
+
public static readonly GetOwner: String = "getOwner"
|
|
143
|
+
public static readonly GetRemoveStatus: String = "getRemoveStatus"
|
|
144
|
+
public static readonly ChangeGroupStatistics: String = "changeGroupStatistics"
|
|
145
|
+
public static readonly SetGroupData: String = "setGroupData"
|
|
146
|
+
public static readonly GetGroupCurrency: String = "getGroupCurrency"
|
|
147
|
+
public static readonly ChangeGroupCurrency: String = "changeGroupCurrency"
|
|
148
|
+
public static readonly CreateGroupItem: String = "createGroupItem"
|
|
149
|
+
public static readonly GetStatisticsLeaderboardAroundGroup: String = "getStatisticsLeaderboardAroundGroup"
|
|
150
|
+
public static readonly GetGroupsWithTag: String = "getGroupsWithTag"
|
|
151
|
+
public static readonly GetGroupsWithSegment: String = "getGroupsWithSegment"
|
|
152
|
+
public static readonly GetGroupStatistics: String = "getGroupStatistics"
|
|
153
|
+
public static readonly GetGroupInventory: String = "getGroupInventory"
|
|
154
|
+
public static readonly GetGroupData: String = "getGroupData"
|
|
155
|
+
public static readonly GetGroupInformation: String = "getGroupInformation"
|
|
156
|
+
public static readonly GetMembers: String = "getMembers"
|
|
157
|
+
public static readonly ChangeItemStatistics: String = "changeItemStatistics"
|
|
158
|
+
public static readonly SetItemData: String = "setItemData"
|
|
159
|
+
public static readonly GetItemData: String = "getItemData"
|
|
160
|
+
public static readonly GetStatisticsLeaderboardAroundItem: String = "getStatisticsLeaderboardAroundItem"
|
|
161
|
+
public static readonly GetItemsWithTag: String = "getItemsWithTag"
|
|
162
|
+
public static readonly GetItemsWithSegment: String = "getItemsWithSegment"
|
|
163
|
+
public static readonly GetItemStatistics: String = "getItemStatistics"
|
|
164
|
+
public static readonly GetItemInformation: String = "getItemInformation"
|
|
165
|
+
public static readonly GetAmount: String = "getAmount"
|
|
166
|
+
public static readonly GetItemType: String = "getItemType"
|
|
167
|
+
public static readonly SetTsLastLogin: String = "setTsLastLogin"
|
|
168
|
+
public static readonly SetRemoveStatus: String = "setRemoveStatus"
|
|
169
|
+
public static readonly SetAmount: String = "setAmount"
|
|
170
|
+
public static readonly RemoveGroup: String = "removeGroup"
|
|
171
|
+
public static readonly LeaveGroup: String = "leaveGroup"
|
|
172
|
+
public static readonly AddMember: String = "addMember"
|
|
173
|
+
public static readonly RemoveMember: String = "removeMember"
|
|
174
|
+
public static readonly GetContentData: String = "getContentData"
|
|
175
|
+
public static readonly SetContentData: String = "setContentData"
|
|
176
|
+
public static readonly GetGroupMessage: String = "getGroupMessage"
|
|
177
|
+
public static readonly SendGroupMessage: String = "sendGroupMessage"
|
|
178
|
+
public static readonly GetPlayersWithDisplayName: String = "getPlayersWithDisplayName"
|
|
179
|
+
public static readonly GetItemsWithDisplayName: String = "getItemsWithDisplayName"
|
|
180
|
+
public static readonly GetGroupsWithDisplayName: String = "getGroupsWithDisplayName"
|
|
181
|
+
public static readonly SetOwner: String = "setOwner"
|
|
182
|
+
public static readonly RemoveGroupItem: String = "removeGroupItem"
|
|
183
|
+
public static readonly GetClassId: String = "getClassId"
|
|
184
|
+
|
|
185
|
+
public static let GetStoreItemInformation: String = "getStoreItemInformation"
|
|
186
|
+
public static let GetStoreItemsWithTag: String = "getStoreItemsWithTag"
|
|
187
|
+
public static let CreateStoreItem: String = "createStoreItem"
|
|
188
|
+
// public static let RemoveTag: String = "removeTag" // Duplicate
|
|
189
|
+
public static let BuyStoreItem: String = "buyStoreItem"
|
|
190
|
+
public static let ValidateAppleAppStoreReceipt: String = "validateAppleAppStoreReceipt"
|
|
191
|
+
public static let ValidateGooglePlayStoreReceipt: String = "validateGooglePlayStoreReceipt"
|
|
192
|
+
public static let ValidateFacebookStoreReceipt: String = "validateFacebookStoreReceipt"
|
|
193
|
+
public static let GetFriendStatisticsLeaderboardAroundPlayer: String = "getFriendStatisticsLeaderboardAroundPlayer"
|
|
194
|
+
public static let GetFriendStatisticsLeaderboard: String = "getFriendStatisticsLeaderboard"
|
|
195
|
+
public static let SetEmail: String = "setEmail"
|
|
196
|
+
public static let GetEmail: String = "getEmail"
|
|
197
|
+
|
|
198
|
+
public static let CreateNewFileUploadInfo: String = "createNewFileUploadInfo"
|
|
199
|
+
public static let GetFileUploadInfo: String = "getFileUploadInfo"
|
|
200
|
+
public static let RequestDownloadFileUploadInfo: String = "requestDownloadFileUploadInfo"
|
|
201
|
+
public static let RemoveFileUploadInfo: String = "removeFileUploadInfo"
|
|
202
|
+
public static let GetFileUploadInfoList: String = "getFileUploadInfoList"
|
|
203
|
+
public static let SetStoreItemInformation: String = "setStoreItemInformation"
|
|
204
|
+
public static let RefreshAuthToken: String = "refreshAuthToken"
|
|
205
|
+
|
|
206
|
+
public static let CancelAllMatchmakingTicket: String = "cancelAllMatchmakingTicket"
|
|
207
|
+
public static let CancelMatchmakingTicket: String = "cancelMatchmakingTicket"
|
|
208
|
+
public static let CreateMatchmakingTicket: String = "createMatchmakingTicket"
|
|
209
|
+
public static let GetMatch: String = "getMatch"
|
|
210
|
+
public static let GetMatchmakingTicket: String = "getMatchmakingTicket"
|
|
211
|
+
public static let GetQueueStatistics: String = "getQueueStatistics"
|
|
212
|
+
public static let JoinMatchmakingTicket: String = "joinMatchmakingTicket"
|
|
213
|
+
public static let ListMatchmakingTicketsForPlayer: String = "listMatchmakingTicketsForPlayer"
|
|
214
|
+
|
|
215
|
+
public static let GetCurrencyLeaderboard: String = "getCurrencyLeaderboard"
|
|
216
|
+
|
|
217
|
+
public static let ExecuteFunction: String = "executeFunction"
|
|
218
|
+
public static let GetFunctions: String = "getFunctions"
|
|
219
|
+
public static let AddFunction: String = "addFunction"
|
|
220
|
+
public static let EditFunction: String = "editFunction"
|
|
221
|
+
public static let GetFunction: String = "getFunction"
|
|
222
|
+
|
|
223
|
+
public static let LoginByGooglePlayGameService: String = "loginByGooglePlayGameService"
|
|
224
|
+
public static let LoginByGameCenter: String = "loginByGameCenter"
|
|
225
|
+
public static let LinkGooglePlayGameService: String = "linkGooglePlayGameService"
|
|
226
|
+
public static let LinkGameCenter: String = "linkGameCenter"
|
|
227
|
+
public static let UnlinkGooglePlayGameService: String = "unlinkGooglePlayGameService"
|
|
228
|
+
public static let UnlinkGameCenter: String = "unlinkGameCenter"
|
|
229
|
+
public static let GetPlayersWithGooglePlayGameService: String = "getPlayersWithGooglePlayGameService"
|
|
230
|
+
public static let GetPlayersWithGameCenter: String = "getPlayersWithGameCenter"
|
|
231
|
+
public static let GetLastLoginLeaderboard: String = "getLastLoginLeaderboard"
|
|
232
|
+
public static let GetCreateLeaderboard: String = "getCreateLeaderboard"
|
|
233
|
+
|
|
234
|
+
public static let GetAllMatchmakingTicket: String = "getAllMatchmakingTicket"
|
|
235
|
+
public static let GetAllMatch: String = "getAllMatch"
|
|
236
|
+
|
|
237
|
+
public static let SendSocketOperationEvent: String = "sendSocketOperationEvent"
|
|
238
|
+
// public static let GetStatisticsLog: String = "getStatisticsLog" // Duplicate? No, separated
|
|
239
|
+
// public static let GetCurrencyLog: String = "getCurrencyLog" // Duplicate?
|
|
240
|
+
|
|
241
|
+
public static let PresentStoreItem: String = "presentStoreItem"
|
|
242
|
+
public static let GetStoreLog: String = "getStoreLog"
|
|
243
|
+
|
|
244
|
+
public static let SendEmail: String = "sendEmail"
|
|
245
|
+
public static let SendPushNotification: String = "sendPushNotification"
|
|
246
|
+
public static let AddPushNotification: String = "addPushNotification"
|
|
247
|
+
public static let RemovePushNotification: String = "removePushNotification"
|
|
248
|
+
public static let GetPushNotification: String = "getPushNotification"
|
|
249
|
+
|
|
250
|
+
public static let GetStoreUsed: String = "getStoreUsed"
|
|
251
|
+
public static let RemoveStoreUsed: String = "removeStoreUsed"
|
|
252
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
public struct ReturnCode {
|
|
4
|
+
public static let SecretInvalid: Int = -10
|
|
5
|
+
public static let MaxSizeRequestReject: Int = -9
|
|
6
|
+
public static let MaxRequestReject: Int = -8
|
|
7
|
+
public static let MaxCCUReject: Int = -7
|
|
8
|
+
|
|
9
|
+
public static let OperationNotAuthorized: Int = -6
|
|
10
|
+
public static let InvalidRequestParameters: Int = -5
|
|
11
|
+
public static let OperationInvalid: Int = -4
|
|
12
|
+
public static let InternalServerError: Int = -3
|
|
13
|
+
public static let OperationNotAllow: Int = -2
|
|
14
|
+
public static let OperationTimeout: Int = -1
|
|
15
|
+
|
|
16
|
+
public static let UnknownError: Int = 0
|
|
17
|
+
|
|
18
|
+
public static let Ok: Int = 1
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
public enum InvalidMemberType: Int {
|
|
4
|
+
case UnknownError = 1
|
|
5
|
+
case DataRequired = 2
|
|
6
|
+
case TypeInvalid = 3
|
|
7
|
+
case StringNull = 4
|
|
8
|
+
case StringMinLength = 5
|
|
9
|
+
case StringMaxLength = 6
|
|
10
|
+
case NumberMinValue = 7
|
|
11
|
+
case NumberMaxValue = 8
|
|
12
|
+
case NumberMustInt = 9
|
|
13
|
+
case GNHashtableNull = 10
|
|
14
|
+
case GNHashtableMinLength = 11
|
|
15
|
+
case GNHashtableMaxLength = 12
|
|
16
|
+
case GNArrayNull = 13
|
|
17
|
+
case GNArrayMinLength = 14
|
|
18
|
+
case GNArrayMaxLength = 15
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
public enum RequestType: Int, CaseIterable {
|
|
4
|
+
case Custom = 0
|
|
5
|
+
case Authenticate = 1
|
|
6
|
+
case CharacterPlayer = 2
|
|
7
|
+
case Content = 3
|
|
8
|
+
case GamePlayer = 4
|
|
9
|
+
case Group = 5
|
|
10
|
+
case Inventory = 6
|
|
11
|
+
case MasterPlayer = 7
|
|
12
|
+
case StoreInventory = 8
|
|
13
|
+
case Dashboard = 9
|
|
14
|
+
case Multiplayer = 10
|
|
15
|
+
case CloudScript = 11
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
public struct ErrorCode {
|
|
4
|
+
public static let Ok: Int = 1
|
|
5
|
+
|
|
6
|
+
public static let AccountNotFound: Int = 2
|
|
7
|
+
public static let AccountPasswordWrong: Int = 3
|
|
8
|
+
public static let AccountUsernameExists: Int = 4
|
|
9
|
+
public static let VerifyTokenError: Int = 5
|
|
10
|
+
public static let VerifyFailed: Int = 6
|
|
11
|
+
public static let CharacterPlayerNotFound: Int = 7
|
|
12
|
+
public static let NotEnoughCurrency: Int = 8
|
|
13
|
+
public static let KeyNotFound: Int = 9
|
|
14
|
+
public static let ItemNotFound: Int = 10
|
|
15
|
+
public static let CatalogIdNotFound: Int = 11
|
|
16
|
+
public static let GroupNotFound: Int = 12
|
|
17
|
+
public static let OwnerNotFound: Int = 13
|
|
18
|
+
public static let ClassIdNotFound: Int = 14
|
|
19
|
+
public static let MemberNotFound: Int = 15
|
|
20
|
+
public static let PlayerNotMember: Int = 16
|
|
21
|
+
public static let GamePlayerNotFound: Int = 17
|
|
22
|
+
public static let FileNotFound: Int = 18
|
|
23
|
+
public static let FileNotUpload: Int = 19
|
|
24
|
+
public static let OwnerTypeNotSupport: Int = 20
|
|
25
|
+
public static let ItemNotStackable: Int = 21
|
|
26
|
+
public static let GameNotFound: Int = 22
|
|
27
|
+
public static let GameIsExists: Int = 23
|
|
28
|
+
public static let SecretInfoNotFound: Int = 24
|
|
29
|
+
public static let SecretInfoIsExists: Int = 25
|
|
30
|
+
public static let ExternalNotLinked: Int = 26
|
|
31
|
+
public static let ExternalLinkedOtherAccount: Int = 27
|
|
32
|
+
public static let ExternalLinkedOtherValue: Int = 28
|
|
33
|
+
public static let MasterPlayerNotFound: Int = 29
|
|
34
|
+
public static let StoreItemNotFound: Int = 30
|
|
35
|
+
public static let BuyerNotFound: Int = 31
|
|
36
|
+
public static let CanNotBuyThisStoreItem: Int = 32
|
|
37
|
+
public static let ExceptionWhenValidateReceipt: Int = 33
|
|
38
|
+
public static let StoreInvalid: Int = 34
|
|
39
|
+
public static let ReceiptInvalid: Int = 35
|
|
40
|
+
public static let StoreItemHadBeenRemove: Int = 36
|
|
41
|
+
public static let DisplayNameHasUse: Int = 37
|
|
42
|
+
public static let PlayerBan: Int = 38
|
|
43
|
+
|
|
44
|
+
public static let MatchmakingTicketNotFound: Int = 39
|
|
45
|
+
public static let MatchmakingTicketAlreadyCompleted: Int = 40
|
|
46
|
+
public static let MatchmakingPlayerHasNotJoinedTicket: Int = 41
|
|
47
|
+
public static let MatchNotFound: Int = 42
|
|
48
|
+
public static let MatchmakingPlayerHasJoinedOtherTicket: Int = 43
|
|
49
|
+
public static let MatchmakingQueueNotFound: Int = 44
|
|
50
|
+
public static let TicketSizeError: Int = 45
|
|
51
|
+
|
|
52
|
+
public static let ExecuteError: Int = 46
|
|
53
|
+
public static let VersionInvalid: Int = 47
|
|
54
|
+
public static let EmailInvalid: Int = 48
|
|
55
|
+
|
|
56
|
+
public static let StoreItemHadPurchaseAndNonConsumable: Int = 49
|
|
57
|
+
public static let StoreItemHadExists: Int = 50
|
|
58
|
+
}
|