@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,318 @@
1
+ import Foundation
2
+
3
+ /// MasterPlayer Response Models - Operation response classes for MasterPlayer API
4
+ public enum MasterPlayerResponseModels {
5
+
6
+ public class AddSegmentOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
7
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
8
+ }
9
+
10
+ public class ChangeAccountPasswordOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
11
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
12
+ }
13
+
14
+ public class GetAvatarOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
15
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
16
+ }
17
+
18
+ public class GetCountryCodeOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
19
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
20
+ }
21
+
22
+ public class GetCustomDataOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
23
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
24
+ }
25
+
26
+ public class GetDisplayNameOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
27
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
28
+ }
29
+
30
+ public class GetEmailOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
31
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
32
+ }
33
+
34
+ public class GetExternalOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
35
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
36
+ }
37
+
38
+ public class GetIpAddressCreateOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
39
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
40
+ }
41
+
42
+ public class GetPlayerBanOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
43
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
44
+ }
45
+
46
+ public class GetPlayerCurrencyOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
47
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
48
+ }
49
+
50
+ public class GetPlayerDataOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
51
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
52
+ }
53
+
54
+ public class GetPlayerInformationOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
55
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
56
+ }
57
+
58
+ public class GetPlayerStatisticsOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
59
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
60
+ }
61
+
62
+ public class GetSegmentOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
63
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
64
+ }
65
+
66
+ public class GetTagOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
67
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
68
+ }
69
+
70
+ public class GetTsCreateOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
71
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
72
+ }
73
+
74
+ public class GetTsLastLoginOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
75
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
76
+ }
77
+
78
+ public class GetStatisticsLeaderboardOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetStatisticsLeaderboardResponseData> {
79
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetStatisticsLeaderboardResponseData.self }
80
+ }
81
+
82
+ public class GetCurrencyLeaderboardOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetCurrencyLeaderboardResponseData> {
83
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetCurrencyLeaderboardResponseData.self }
84
+ }
85
+
86
+ public class GetCreateLeaderboardOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetCreateLeaderboardResponseData> {
87
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetCreateLeaderboardResponseData.self }
88
+ }
89
+
90
+ public class GetLastLoginLeaderboardOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetLastLoginLeaderboardResponseData> {
91
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetLastLoginLeaderboardResponseData.self }
92
+ }
93
+
94
+ public class GetStatisticsLogOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetStatisticsLogResponseData> {
95
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetStatisticsLogResponseData.self }
96
+ }
97
+
98
+ public class GetCurrencyLogOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GetCurrencyLogResponseData> {
99
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GetCurrencyLogResponseData.self }
100
+ }
101
+
102
+ public class AddPushNotificationOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.AddPushNotificationResponseData> {
103
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.AddPushNotificationResponseData.self }
104
+ }
105
+
106
+ public class SendPushNotificationOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.SendPushNotificationResponseData> {
107
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.SendPushNotificationResponseData.self }
108
+ }
109
+
110
+ // Link/Unlink responses - all return MasterPlayerResponseData
111
+ public class LinkAccountOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
112
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
113
+ }
114
+
115
+ public class LinkAndroidDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
116
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
117
+ }
118
+
119
+ public class LinkAppleOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
120
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
121
+ }
122
+
123
+ public class LinkCustomDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
124
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
125
+ }
126
+
127
+ public class LinkCustomIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
128
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
129
+ }
130
+
131
+ public class LinkEditorDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
132
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
133
+ }
134
+
135
+ public class LinkFacebookOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
136
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
137
+ }
138
+
139
+ public class LinkGenericServiceOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.GenericServiceMasterPlayerResponseData> {
140
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.GenericServiceMasterPlayerResponseData.self }
141
+ }
142
+
143
+ public class LinkGoogleOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
144
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
145
+ }
146
+
147
+ public class LinkGooglePlayGameServiceOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
148
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
149
+ }
150
+
151
+ public class LinkGameCenterOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
152
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
153
+ }
154
+
155
+ public class LinkiOSDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
156
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
157
+ }
158
+
159
+ public class LinkLinuxDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
160
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
161
+ }
162
+
163
+ public class LinkMacOSDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
164
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
165
+ }
166
+
167
+ public class LinkWindowsDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
168
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
169
+ }
170
+
171
+ public class LinkWindowsPhoneDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
172
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
173
+ }
174
+
175
+ // Unlink responses
176
+ public class UnlinkAccountOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
177
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
178
+ }
179
+
180
+ public class UnlinkAndroidDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
181
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
182
+ }
183
+
184
+ public class UnlinkAppleOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
185
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
186
+ }
187
+
188
+ public class UnlinkCustomDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
189
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
190
+ }
191
+
192
+ public class UnlinkCustomIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
193
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
194
+ }
195
+
196
+ public class UnlinkEditorDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
197
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
198
+ }
199
+
200
+ public class UnlinkFacebookOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
201
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
202
+ }
203
+
204
+ public class UnlinkGenericServiceOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
205
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
206
+ }
207
+
208
+ public class UnlinkGoogleOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
209
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
210
+ }
211
+
212
+ public class UnlinkGooglePlayGameServiceOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
213
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
214
+ }
215
+
216
+ public class UnlinkGameCenterOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
217
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
218
+ }
219
+
220
+ public class UnlinkiOSDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
221
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
222
+ }
223
+
224
+ public class UnlinkLinuxDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
225
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
226
+ }
227
+
228
+ public class UnlinkMacOSDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
229
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
230
+ }
231
+
232
+ public class UnlinkWindowsDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
233
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
234
+ }
235
+
236
+ public class UnlinkWindowsPhoneDeviceIdOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
237
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
238
+ }
239
+
240
+ // Set operations responses
241
+ public class SetAvatarOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
242
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
243
+ }
244
+
245
+ public class SetCountryCodeOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
246
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
247
+ }
248
+
249
+ public class SetCustomDataOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
250
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
251
+ }
252
+
253
+ public class SetDisplayNameOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
254
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
255
+ }
256
+
257
+ public class SetEmailOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
258
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
259
+ }
260
+
261
+ public class SetPlayerBanOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
262
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
263
+ }
264
+
265
+ public class SetPlayerDataOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
266
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
267
+ }
268
+
269
+ public class SetTagOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
270
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
271
+ }
272
+
273
+ public class SetTsLastLoginOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
274
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
275
+ }
276
+
277
+ // Change operations responses
278
+ public class ChangePlayerCurrencyOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
279
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
280
+ }
281
+
282
+ public class ChangePlayerStatisticsOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
283
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
284
+ }
285
+
286
+ // Other operations
287
+ public class RemoveSegmentOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
288
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
289
+ }
290
+
291
+ public class RemoveTagOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
292
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
293
+ }
294
+
295
+ public class ResetAccountPasswordOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
296
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
297
+ }
298
+
299
+ public class SendSocketOperationEventOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
300
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
301
+ }
302
+
303
+ public class SendEmailOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
304
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
305
+ }
306
+
307
+ public class GetPushNotificationOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayerResponseData> {
308
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayerResponseData.self }
309
+ }
310
+
311
+ public class RemovePushNotificationOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.EmptyResponseData> {
312
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.EmptyResponseData.self }
313
+ }
314
+
315
+ public class GetPlayersWithUserIdsOperationResponse: CustomOperationResponseAbstract<MasterPlayerModels.MasterPlayersWithUserIdResponseData> {
316
+ public override init() { super.init(); self.responseDataCls = MasterPlayerModels.MasterPlayersWithUserIdResponseData.self }
317
+ }
318
+ }
@@ -0,0 +1,319 @@
1
+ import Foundation
2
+
3
+ /// Multiplayer Models - Data structures for Multiplayer API operations
4
+ public enum MultiplayerModels {
5
+
6
+ // MARK: - Request Data Classes
7
+
8
+ public class CancelAllMatchmakingTicketRequestData: Initiable {
9
+ @StringDataMember(code: ParameterCode.QueueName)
10
+ public var queueName: String?
11
+
12
+ public required init() {}
13
+ }
14
+ public class ServerCancelAllMatchmakingTicketRequestData: CancelAllMatchmakingTicketRequestData {
15
+ @StringDataMember(code: ParameterCode.UserId)
16
+ public var userId: String?
17
+ }
18
+ public class AdminCancelAllMatchmakingTicketRequestData: ServerCancelAllMatchmakingTicketRequestData {}
19
+
20
+ public class CancelMatchmakingTicketRequestData: Initiable {
21
+ @StringDataMember(code: ParameterCode.TicketId)
22
+ public var ticketId: String?
23
+
24
+ public required init() {}
25
+ }
26
+ public class ServerCancelMatchmakingTicketRequestData: CancelMatchmakingTicketRequestData {
27
+ @StringDataMember(code: ParameterCode.UserId)
28
+ public var userId: String?
29
+ }
30
+ public class AdminCancelMatchmakingTicketRequestData: ServerCancelMatchmakingTicketRequestData {}
31
+
32
+ public class CreateMatchmakingTicketRequestData: Initiable {
33
+ @NumberDataMember(code: ParameterCode.GiveUpAfterSeconds)
34
+ public var giveUpAfterSeconds: NSNumber?
35
+
36
+ @StringDataMember(code: ParameterCode.QueueName)
37
+ public var queueName: String?
38
+
39
+ @GNHashtableDataMember(code: ParameterCode.Attribute, elementCls: GNHashtable.self)
40
+ public var attribute: GNHashtable?
41
+
42
+ @GNArrayDataMember(code: ParameterCode.Members, elementCls: String.self)
43
+ public var members: GNArray?
44
+
45
+ public required init() {}
46
+ }
47
+ public class ServerCreateMatchmakingTicketRequestData: CreateMatchmakingTicketRequestData {
48
+ @StringDataMember(code: ParameterCode.UserId)
49
+ public var userId: String?
50
+ }
51
+ public class AdminCreateMatchmakingTicketRequestData: ServerCreateMatchmakingTicketRequestData {}
52
+
53
+ public class GetMatchmakingTicketRequestData: Initiable {
54
+ @StringDataMember(code: ParameterCode.TicketId)
55
+ public var ticketId: String?
56
+
57
+ @BooleanDataMember(code: ParameterCode.ReturnMember)
58
+ public var returnMember: Bool?
59
+
60
+ public required init() {}
61
+ }
62
+ public class ServerGetMatchmakingTicketRequestData: GetMatchmakingTicketRequestData {}
63
+ public class AdminGetMatchmakingTicketRequestData: ServerGetMatchmakingTicketRequestData {}
64
+
65
+ public class GetMatchRequestData: Initiable {
66
+ @StringDataMember(code: ParameterCode.MatchId)
67
+ public var matchId: String?
68
+
69
+ @BooleanDataMember(code: ParameterCode.ReturnMember)
70
+ public var returnMember: Bool?
71
+
72
+ public required init() {}
73
+ }
74
+ public class ServerGetMatchRequestData: GetMatchRequestData {}
75
+ public class AdminGetMatchRequestData: ServerGetMatchRequestData {}
76
+
77
+ public class GetAllMatchRequestData: Initiable {
78
+ @BooleanDataMember(code: ParameterCode.ReturnMember)
79
+ public var returnMember: Bool?
80
+
81
+ @NumberDataMember(code: ParameterCode.Skip)
82
+ public var skip: NSNumber?
83
+
84
+ @NumberDataMember(code: ParameterCode.Limit)
85
+ public var limit: NSNumber?
86
+
87
+ public required init() {}
88
+ }
89
+ public class ServerGetAllMatchRequestData: GetAllMatchRequestData {}
90
+ public class AdminGetAllMatchRequestData: ServerGetAllMatchRequestData {}
91
+
92
+ public class GetAllMatchmakingTicketRequestData: Initiable {
93
+ @NumberDataMember(code: ParameterCode.Status)
94
+ public var status: NSNumber?
95
+
96
+ @BooleanDataMember(code: ParameterCode.ReturnMember)
97
+ public var returnMember: Bool?
98
+
99
+ @NumberDataMember(code: ParameterCode.Skip)
100
+ public var skip: NSNumber?
101
+
102
+ @NumberDataMember(code: ParameterCode.Limit)
103
+ public var limit: NSNumber?
104
+
105
+ public required init() {}
106
+ }
107
+ public class ServerGetAllMatchmakingTicketRequestData: GetAllMatchmakingTicketRequestData {}
108
+ public class AdminGetAllMatchmakingTicketRequestData: ServerGetAllMatchmakingTicketRequestData {}
109
+
110
+ public class GetQueueStatisticsRequestData: Initiable {
111
+ @StringDataMember(code: ParameterCode.QueueName)
112
+ public var queueName: String?
113
+
114
+ @NumberDataMember(code: ParameterCode.TimeInSeconds)
115
+ public var timeInSeconds: NSNumber?
116
+
117
+ public required init() {}
118
+ }
119
+ public class ServerGetQueueStatisticsRequestData: GetQueueStatisticsRequestData {}
120
+ public class AdminGetQueueStatisticsRequestData: ServerGetQueueStatisticsRequestData {}
121
+
122
+ public class JoinMatchmakingTicketRequestData: Initiable {
123
+ @StringDataMember(code: ParameterCode.TicketId)
124
+ public var ticketId: String?
125
+
126
+ @GNHashtableDataMember(code: ParameterCode.Attribute, elementCls: GNHashtable.self)
127
+ public var attribute: GNHashtable?
128
+
129
+ public required init() {}
130
+ }
131
+ public class ServerJoinMatchmakingTicketRequestData: JoinMatchmakingTicketRequestData {
132
+ @StringDataMember(code: ParameterCode.UserId)
133
+ public var userId: String?
134
+ }
135
+ public class AdminJoinMatchmakingTicketRequestData: ServerJoinMatchmakingTicketRequestData {}
136
+
137
+ public class ListMatchmakingTicketsForPlayerRequestData: Initiable {
138
+ @StringDataMember(code: ParameterCode.QueueName)
139
+ public var queueName: String?
140
+
141
+ public required init() {}
142
+ }
143
+ public class ServerListMatchmakingTicketsForPlayerRequestData: ListMatchmakingTicketsForPlayerRequestData {
144
+ @StringDataMember(code: ParameterCode.UserId)
145
+ public var userId: String?
146
+ }
147
+ public class AdminListMatchmakingTicketsForPlayerRequestData: ServerListMatchmakingTicketsForPlayerRequestData {}
148
+
149
+ // MARK: - Response Data Classes
150
+
151
+ public class CancelAllMatchmakingTicketResponseData: Initiable {
152
+ @GNArrayDataMember(code: ParameterCode.TicketIds, elementCls: String.self)
153
+ public var ticketIds: GNArray?
154
+
155
+ public required init() {}
156
+ }
157
+
158
+ public class CreateMatchmakingTicketResponseData: Initiable {
159
+ @StringDataMember(code: ParameterCode.TicketId)
160
+ public var ticketId: String?
161
+
162
+ public required init() {}
163
+ }
164
+
165
+ public class MatchmakingTicketMember: Initiable {
166
+ @StringDataMember(code: ParameterCode.UserId)
167
+ public var userId: String?
168
+
169
+ @NumberDataMember(code: ParameterCode.Status)
170
+ public var status: NSNumber?
171
+
172
+ @GNHashtableDataMember(code: ParameterCode.Attribute, elementCls: GNHashtable.self)
173
+ public var attribute: GNHashtable?
174
+
175
+ public required init() {}
176
+ }
177
+
178
+ public class MatchmakingTicketResponseData: Initiable {
179
+ @NumberDataMember(code: ParameterCode.TsCreate)
180
+ public var tsCreate: NSNumber?
181
+
182
+ @StringDataMember(code: ParameterCode.CreatorId)
183
+ public var creatorId: String?
184
+
185
+ @NumberDataMember(code: ParameterCode.GiveUpAfterSeconds)
186
+ public var giveUpAfterSeconds: NSNumber?
187
+
188
+ @StringDataMember(code: ParameterCode.QueueName)
189
+ public var queueName: String?
190
+
191
+ @NumberDataMember(code: ParameterCode.Status)
192
+ public var status: NSNumber?
193
+
194
+ @StringDataMember(code: ParameterCode.MatchId)
195
+ public var matchId: String?
196
+
197
+ @GNArrayDataMember(code: ParameterCode.Members, elementCls: MatchmakingTicketMember.self)
198
+ public var members: GNArray?
199
+
200
+ public required init() {}
201
+ }
202
+
203
+ public class MatchmakingTicketWithTicketIdResponseData: MatchmakingTicketResponseData {
204
+ @StringDataMember(code: ParameterCode.TicketId)
205
+ public var ticketId: String?
206
+ }
207
+
208
+ public class GetMatchmakingTicketResponseData: Initiable {
209
+ @GNHashtableDataMember(code: ParameterCode.MatchmakingTicket, elementCls: MatchmakingTicketResponseData.self)
210
+ public var matchmakingTicket: GNHashtable?
211
+
212
+ public required init() {}
213
+ }
214
+
215
+ public class MatchMember: Initiable {
216
+ @StringDataMember(code: ParameterCode.UserId)
217
+ public var userId: String?
218
+
219
+ @StringDataMember(code: ParameterCode.TeamId)
220
+ public var teamId: String?
221
+
222
+ @GNHashtableDataMember(code: ParameterCode.Attribute, elementCls: GNHashtable.self)
223
+ public var attribute: GNHashtable?
224
+
225
+ public required init() {}
226
+ }
227
+
228
+ public class PortInfo: Initiable {
229
+ @StringDataMember(code: ParameterCode.Name)
230
+ public var name: String?
231
+
232
+ @NumberDataMember(code: ParameterCode.PublicPort)
233
+ public var publicPort: NSNumber?
234
+
235
+ @NumberDataMember(code: ParameterCode.PrivatePort)
236
+ public var privatePort: NSNumber?
237
+
238
+ @NumberDataMember(code: ParameterCode.Protocol)
239
+ public var protocolType: NSNumber?
240
+
241
+ public required init() {}
242
+ }
243
+
244
+ public class ServerDetail: Initiable {
245
+ @StringDataMember(code: ParameterCode.IpV4Address)
246
+ public var ipV4Address: String?
247
+
248
+ @GNArrayDataMember(code: ParameterCode.Ports, elementCls: PortInfo.self)
249
+ public var ports: GNArray?
250
+
251
+ public required init() {}
252
+ }
253
+
254
+ public class MatchResponseData: Initiable {
255
+ @NumberDataMember(code: ParameterCode.TsCreate)
256
+ public var tsCreate: NSNumber?
257
+
258
+ @StringDataMember(code: ParameterCode.QueueName)
259
+ public var queueName: String?
260
+
261
+ @GNArrayDataMember(code: ParameterCode.Members, elementCls: MatchMember.self)
262
+ public var members: GNArray?
263
+
264
+ @NumberDataMember(code: ParameterCode.TimeToMatchInSeconds)
265
+ public var timeToMatchInSeconds: NSNumber?
266
+
267
+ public required init() {}
268
+ }
269
+
270
+ public class MatchWithMatchIdResponseData: MatchResponseData {
271
+ @StringDataMember(code: ParameterCode.MatchId)
272
+ public var matchId: String?
273
+ }
274
+
275
+ public class GetMatchResponseData: Initiable {
276
+ @GNHashtableDataMember(code: ParameterCode.Match, elementCls: MatchResponseData.self)
277
+ public var match: GNHashtable?
278
+
279
+ public required init() {}
280
+ }
281
+
282
+ public class GetQueueStatisticsResponseData: Initiable {
283
+ @NumberDataMember(code: ParameterCode.PendingMemberCount)
284
+ public var pendingMemberCount: NSNumber?
285
+
286
+ @NumberDataMember(code: ParameterCode.PendingTicketCount)
287
+ public var pendingTicketCount: NSNumber?
288
+
289
+ @NumberDataMember(code: ParameterCode.AverageMatchmakingTimeInSeconds)
290
+ public var averageMatchmakingTimeInSeconds: NSNumber?
291
+
292
+ public required init() {}
293
+ }
294
+
295
+ public class ListMatchmakingTicketsForPlayerResponseData: Initiable {
296
+ @GNArrayDataMember(code: ParameterCode.TicketIds, elementCls: String.self)
297
+ public var ticketIds: GNArray?
298
+
299
+ public required init() {}
300
+ }
301
+
302
+ public class GetAllMatchResponseData: Initiable {
303
+ @GNArrayDataMember(code: ParameterCode.Results, elementCls: MatchWithMatchIdResponseData.self)
304
+ public var results: GNArray?
305
+
306
+ public required init() {}
307
+ }
308
+
309
+ public class GetAllMatchmakingTicketResponseData: Initiable {
310
+ @GNArrayDataMember(code: ParameterCode.Results, elementCls: MatchmakingTicketWithTicketIdResponseData.self)
311
+ public var results: GNArray?
312
+
313
+ public required init() {}
314
+ }
315
+
316
+ public class EmptyResponseData: Initiable {
317
+ public required init() {}
318
+ }
319
+ }