@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.
Files changed (127) hide show
  1. package/dist/gearn.js.client.js +183 -57
  2. package/dist/gearn.js.client.min.js +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.js +183 -57
  5. package/dist/runtime/GNNetwork.d.ts +1 -1
  6. package/dist/runtime/helper/GNSupport.d.ts +20 -0
  7. package/dist/runtime/{entity → helper}/OperationHelper.d.ts +1 -1
  8. package/dist/runtime/helper/StorageService.d.ts +18 -0
  9. package/dist/runtime/networking/NetworkingPeer.d.ts +1 -1
  10. package/dist/runtime/typescript/ServiceUpdate.d.ts +2 -0
  11. package/docs/COCOS_CREATOR_INTEGRATION.md +116 -0
  12. package/examples/cocos-creator/GearNExample.ts.txt +176 -0
  13. package/package.json +3 -2
  14. package/srcSwift/Package.swift +32 -0
  15. package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +530 -0
  16. package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +178 -0
  17. package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +1162 -0
  18. package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +154 -0
  19. package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +208 -0
  20. package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +240 -0
  21. package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +1369 -0
  22. package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +1100 -0
  23. package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +937 -0
  24. package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +2323 -0
  25. package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +298 -0
  26. package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +397 -0
  27. package/srcSwift/Sources/GearN/runtime/common/Action0.swift +3 -0
  28. package/srcSwift/Sources/GearN/runtime/common/Action1.swift +3 -0
  29. package/srcSwift/Sources/GearN/runtime/common/Action2.swift +3 -0
  30. package/srcSwift/Sources/GearN/runtime/common/Action3.swift +3 -0
  31. package/srcSwift/Sources/GearN/runtime/common/Action4.swift +3 -0
  32. package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +204 -0
  33. package/srcSwift/Sources/GearN/runtime/common/GNData.swift +108 -0
  34. package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +200 -0
  35. package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +95 -0
  36. package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +28 -0
  37. package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +10 -0
  38. package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +252 -0
  39. package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +19 -0
  40. package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +9 -0
  41. package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +8 -0
  42. package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +6 -0
  43. package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +8 -0
  44. package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +19 -0
  45. package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +6 -0
  46. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +7 -0
  47. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +9 -0
  48. package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +10 -0
  49. package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +6 -0
  50. package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +6 -0
  51. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +7 -0
  52. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +16 -0
  53. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +6 -0
  54. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +9 -0
  55. package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +58 -0
  56. package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +672 -0
  57. package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +196 -0
  58. package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +9 -0
  59. package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +11 -0
  60. package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +38 -0
  61. package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +28 -0
  62. package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +62 -0
  63. package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +98 -0
  64. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +351 -0
  65. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +81 -0
  66. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +108 -0
  67. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +1045 -0
  68. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +821 -0
  69. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +588 -0
  70. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +187 -0
  71. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +84 -0
  72. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +59 -0
  73. package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +195 -0
  74. package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +116 -0
  75. package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +81 -0
  76. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +426 -0
  77. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +160 -0
  78. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +82 -0
  79. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +1334 -0
  80. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +643 -0
  81. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +213 -0
  82. package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +171 -0
  83. package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +850 -0
  84. package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +485 -0
  85. package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +165 -0
  86. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +679 -0
  87. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +413 -0
  88. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +141 -0
  89. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +378 -0
  90. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +147 -0
  91. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +318 -0
  92. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +319 -0
  93. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +125 -0
  94. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +45 -0
  95. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +633 -0
  96. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +173 -0
  97. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +61 -0
  98. package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +42 -0
  99. package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +49 -0
  100. package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +43 -0
  101. package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +86 -0
  102. package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +15 -0
  103. package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +107 -0
  104. package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +98 -0
  105. package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +34 -0
  106. package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +41 -0
  107. package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +66 -0
  108. package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +21 -0
  109. package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +29 -0
  110. package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +33 -0
  111. package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +24 -0
  112. package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +8 -0
  113. package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +368 -0
  114. package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +81 -0
  115. package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +228 -0
  116. package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +20 -0
  117. package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +226 -0
  118. package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +24 -0
  119. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +13 -0
  120. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +125 -0
  121. package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +19 -0
  122. package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +13 -0
  123. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +244 -0
  124. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +59 -0
  125. package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +136 -0
  126. package/tsconfig-build.cocos.json +31 -0
  127. package/webpack.config.cocos.mjs +78 -0
@@ -0,0 +1,213 @@
1
+ import Foundation
2
+
3
+ /// GamePlayer Response Models - Operation response classes for GamePlayer API
4
+ public enum GamePlayerResponseModels {
5
+
6
+ public class AddPlayerFriendOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
7
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
8
+ }
9
+
10
+ public class AddSegmentOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
11
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
12
+ }
13
+
14
+ public class GetAvatarOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
15
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
16
+ }
17
+
18
+ public class GetCountryCodeOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
19
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
20
+ }
21
+
22
+ public class GetCustomDataOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
23
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
24
+ }
25
+
26
+ public class GetDisplayNameOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
27
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
28
+ }
29
+
30
+ public class GetFriendStatisticsLeaderboardAroundPlayerOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
31
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetStatisticsLeaderboardResponseData.self }
32
+ }
33
+
34
+ public class GetFriendStatisticsLeaderboardOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
35
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetStatisticsLeaderboardResponseData.self }
36
+ }
37
+
38
+ public class GetIpAddressCreateOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
39
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
40
+ }
41
+
42
+ public class GetOnlineStatusOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.OnlineStatusResponseData> {
43
+ public override init() { super.init(); responseDataCls = GamePlayerModels.OnlineStatusResponseData.self }
44
+ }
45
+
46
+ public class GetPlayerBanOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
47
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
48
+ }
49
+
50
+ public class GetPlayerCharacterOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
51
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
52
+ }
53
+
54
+ public class GetPlayerCurrencyOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
55
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
56
+ }
57
+
58
+ public class GetPlayerDataOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
59
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
60
+ }
61
+
62
+ public class GetPlayerFriendOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
63
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
64
+ }
65
+
66
+ public class GetPlayerGroupOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
67
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
68
+ }
69
+
70
+ public class GetPlayerInformationOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
71
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
72
+ }
73
+
74
+ public class GetPlayerInventoryOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
75
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
76
+ }
77
+
78
+ public class GetPlayerStatisticsOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
79
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
80
+ }
81
+
82
+ public class GetPlayersWithDisplayNameOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
83
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayersWithUserIdResponseData.self }
84
+ }
85
+
86
+ public class GetPlayersWithSegmentOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
87
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayersWithUserIdResponseData.self }
88
+ }
89
+
90
+ public class GetPlayersWithTagOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
91
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayersWithUserIdResponseData.self }
92
+ }
93
+
94
+ public class GetSegmentOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
95
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
96
+ }
97
+
98
+ public class GetStatisticsLeaderboardAroundPlayerOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
99
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetStatisticsLeaderboardResponseData.self }
100
+ }
101
+
102
+ public class GetStatisticsLeaderboardOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
103
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetStatisticsLeaderboardResponseData.self }
104
+ }
105
+
106
+ public class GetTagOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
107
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
108
+ }
109
+
110
+ public class GetTsCreateOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
111
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
112
+ }
113
+
114
+ public class GetTsLastLoginOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
115
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
116
+ }
117
+
118
+ public class CreateGroupOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
119
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
120
+ }
121
+
122
+ public class CreatePlayerCharacterOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
123
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
124
+ }
125
+
126
+ public class CreatePlayerItemOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
127
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
128
+ }
129
+
130
+ public class JoinGroupOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
131
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
132
+ }
133
+
134
+ public class LeaveGroupOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
135
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
136
+ }
137
+
138
+ public class RemovePlayerCharacterOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
139
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
140
+ }
141
+
142
+ public class RemovePlayerFriendOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
143
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
144
+ }
145
+
146
+ public class RemovePlayerItemOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
147
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
148
+ }
149
+
150
+ public class RemoveSegmentOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
151
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
152
+ }
153
+
154
+ public class RemoveTagOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
155
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
156
+ }
157
+
158
+ public class SetAvatarOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
159
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
160
+ }
161
+
162
+ public class SetCountryCodeOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
163
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
164
+ }
165
+
166
+ public class SetCustomDataOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
167
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
168
+ }
169
+
170
+ public class SetDisplayNameOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
171
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
172
+ }
173
+
174
+ public class SetPlayerBanOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
175
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
176
+ }
177
+
178
+ public class ChangePlayerCurrencyOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
179
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
180
+ }
181
+
182
+ public class SetPlayerDataOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
183
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
184
+ }
185
+
186
+ public class ChangePlayerStatisticsOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
187
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GamePlayerResponseData.self }
188
+ }
189
+
190
+ public class SetTagOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
191
+ public override init() { super.init(); responseDataCls = GamePlayerModels.EmptyResponseData.self }
192
+ }
193
+
194
+ public class GetCurrencyLeaderboardOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetCurrencyLeaderboardResponseData> {
195
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetCurrencyLeaderboardResponseData.self }
196
+ }
197
+
198
+ public class GetLastLoginLeaderboardOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetLastLoginLeaderboardResponseData> {
199
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetLastLoginLeaderboardResponseData.self }
200
+ }
201
+
202
+ public class GetCreateLeaderboardOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetCreateLeaderboardResponseData> {
203
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetCreateLeaderboardResponseData.self }
204
+ }
205
+
206
+ public class GetStatisticsLogOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLogResponseData> {
207
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetStatisticsLogResponseData.self }
208
+ }
209
+
210
+ public class GetCurrencyLogOperationResponse: CustomOperationResponseAbstract<GamePlayerModels.GetCurrencyLogResponseData> {
211
+ public override init() { super.init(); responseDataCls = GamePlayerModels.GetCurrencyLogResponseData.self }
212
+ }
213
+ }
@@ -0,0 +1,171 @@
1
+ import Foundation
2
+
3
+ public struct GenericModels {
4
+
5
+ public class AvatarItem {
6
+ @NumberDataMember(code: ParameterCode.Type)
7
+ public var type: Int
8
+
9
+ @StringDataMember(code: ParameterCode.Value)
10
+ public var value: String?
11
+
12
+ public required init() {}
13
+ }
14
+
15
+ public class TagItem {
16
+ @StringDataMember(code: ParameterCode.Key)
17
+ public var key: String?
18
+
19
+ @StringDataMember(code: ParameterCode.Value)
20
+ public var value: String?
21
+
22
+ public required init() {}
23
+ }
24
+
25
+ public class BanItem {
26
+ @NumberDataMember(code: ParameterCode.TsExpire)
27
+ public var tsExpire: Int
28
+
29
+ @StringDataMember(code: ParameterCode.Reason)
30
+ public var reason: String?
31
+
32
+ public required init() {}
33
+ }
34
+
35
+ public class DataItem {
36
+ @StringDataMember(code: ParameterCode.Key)
37
+ public var key: String?
38
+
39
+ // 'any' in TS. In wrappers we need explicit type.
40
+ // Assuming DataMember can handle 'Any' or we use GNHashtableDataMember/StringDataMember etc?
41
+ // DataItem value is 'any'.
42
+ // We probably need AnyDataMember logic or just manual handling if Wrapper fails.
43
+ // But we removed IGNModel manual handling.
44
+ // Let's assume it's String or Number for now or basic primitives.
45
+ // Or implement a generic AnyDataMember?
46
+ // For now, let's use @StringDataMember? No, value can be anything.
47
+ // Let's skip wrapper for 'value' and see if we can handle 'Any' manually?
48
+ // No manual code allowed.
49
+ // Let's assume it's a string/primitive for simple cases or GNHashtable.
50
+ // TS DataItem often wraps any.
51
+ // Let's try to define AnyDataMember later. For now, let's look at Usage.
52
+ // Usually it's String/Int/Bool.
53
+ // Let's ignore wrappers for 'value' and assume it's not serialized automatically yet?
54
+ // Or define @DataMember? DataMember wrapper is generic T.
55
+ // @DataMember(code: ParameterCode.Value) var value: Any?
56
+ // But T must be specific.
57
+ // Let's use @DataMember<Any?> ... but wrappedValue: Any?
58
+ // Let's try.
59
+
60
+ // @DataMember(code: ParameterCode.Value)
61
+ // public var value: Any?
62
+
63
+ }
64
+
65
+ public class CurrencyItem {
66
+ @StringDataMember(code: ParameterCode.Key)
67
+ public var key: String?
68
+
69
+ @NumberDataMember(code: ParameterCode.Value)
70
+ public var value: Int
71
+
72
+ public required init() {}
73
+ }
74
+
75
+ public class StatisticsItem {
76
+ @StringDataMember(code: ParameterCode.Key)
77
+ public var key: String?
78
+
79
+ @NumberDataMember(code: ParameterCode.Value)
80
+ public var value: Int
81
+
82
+ public required init() {}
83
+ }
84
+
85
+ public class CharacterItem {
86
+ @StringDataMember(code: ParameterCode.CharacterId)
87
+ public var characterId: String?
88
+
89
+ @StringDataMember(code: ParameterCode.CatalogId)
90
+ public var catalogId: String?
91
+
92
+ public required init() {}
93
+ }
94
+
95
+ // ... [Other items similar structure]
96
+
97
+ public class OwnerItem {
98
+ @NumberDataMember(code: ParameterCode.Type)
99
+ public var type: Int
100
+
101
+ @StringDataMember(code: ParameterCode.Id)
102
+ public var id: String?
103
+
104
+ public required init() {}
105
+ }
106
+
107
+ public class RemoveStatusItem {
108
+ @NumberDataMember(code: ParameterCode.TsRemove)
109
+ public var tsRemove: Int
110
+
111
+ @StringDataMember(code: ParameterCode.Reason, isOptional: true)
112
+ public var reason: String?
113
+
114
+ public required init() {}
115
+ }
116
+
117
+ public class InventoryItem {
118
+ @StringDataMember(code: ParameterCode.ItemId)
119
+ public var itemId: String?
120
+
121
+ @StringDataMember(code: ParameterCode.CatalogId)
122
+ public var catalogId: String?
123
+
124
+ @StringDataMember(code: ParameterCode.ClassId)
125
+ public var classId: String?
126
+
127
+ public required init() {}
128
+ }
129
+
130
+ public class GroupItem {
131
+ @StringDataMember(code: ParameterCode.GroupId)
132
+ public var groupId: String?
133
+
134
+ @StringDataMember(code: ParameterCode.CatalogId)
135
+ public var catalogId: String?
136
+
137
+ @NumberDataMember(code: ParameterCode.Status)
138
+ public var status: Int
139
+
140
+ @NumberDataMember(code: ParameterCode.TsLastStatusUpdate)
141
+ public var tsLastStatusUpdate: Int
142
+
143
+ public required init() {}
144
+ }
145
+
146
+ public class FriendItem {
147
+ @StringDataMember(code: ParameterCode.FriendId)
148
+ public var friendId: String?
149
+
150
+ @StringDataMember(code: ParameterCode.CatalogId)
151
+ public var catalogId: String?
152
+
153
+ @NumberDataMember(code: ParameterCode.Status)
154
+ public var status: Int
155
+
156
+ @NumberDataMember(code: ParameterCode.TsLastStatusUpdate)
157
+ public var tsLastStatusUpdate: Int
158
+
159
+ public required init() {}
160
+ }
161
+
162
+ public class MemberItem {
163
+ @StringDataMember(code: ParameterCode.MemberId)
164
+ public var memberId: String?
165
+
166
+ @NumberDataMember(code: ParameterCode.Status)
167
+ public var status: Int
168
+
169
+ public required init() {}
170
+ }
171
+ }