astandy 0.2.4__py3-none-any.whl
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.
- Astandy/__init__.py +42 -0
- Astandy/cipher.py +58 -0
- Astandy/client.py +355 -0
- Astandy/dispatcher.py +19 -0
- Astandy/enums/__init__.py +0 -0
- Astandy/enums/events.py +9 -0
- Astandy/errors.py +1 -0
- Astandy/events/__init__.py +10 -0
- Astandy/events/onConnect.py +16 -0
- Astandy/generated/__init__.py +41 -0
- Astandy/generated/listeners.py +1534 -0
- Astandy/generated/schemes_pb2.py +1354 -0
- Astandy/generated/schemes_pb2.pyi +5194 -0
- Astandy/generated/services.py +3322 -0
- Astandy/listener.py +12 -0
- Astandy/listeners/__init__.py +1 -0
- Astandy/listeners/onConnect.py +6 -0
- Astandy/logging.py +20 -0
- Astandy/parser.py +20 -0
- Astandy/schemes/messages_pb2.py +52 -0
- Astandy/schemes/messages_pb2.pyi +87 -0
- Astandy/services/__init__.py +18 -0
- Astandy/services/bolt.py +24 -0
- Astandy/services/handshake.py +23 -0
- Astandy/services/hello.py +50 -0
- Astandy/services/player.py +21 -0
- Astandy/types/__init__.py +4 -0
- Astandy/types/extras.py +14 -0
- Astandy/types/gmessage.py +4 -0
- Astandy/types/service.py +3 -0
- Astandy/types/update.py +10 -0
- Astandy/updates/__init__.py +1 -0
- Astandy/updates/connect.py +5 -0
- Astandy/utils.py +26 -0
- astandy-0.2.4.dist-info/METADATA +16 -0
- astandy-0.2.4.dist-info/RECORD +38 -0
- astandy-0.2.4.dist-info/WHEEL +5 -0
- astandy-0.2.4.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3322 @@
|
|
|
1
|
+
#This file was automatically generated!
|
|
2
|
+
|
|
3
|
+
from Astandy.errors import AstandyRPCException
|
|
4
|
+
from Astandy.schemes.messages_pb2 import Response
|
|
5
|
+
from .schemes_pb2 import *
|
|
6
|
+
|
|
7
|
+
class AchievementRemoteService:
|
|
8
|
+
@staticmethod
|
|
9
|
+
def getCurrentPlayerAchievementsRequest(request: GetCurrentPlayerAchievementsRequest):
|
|
10
|
+
msg = request.SerializeToString()
|
|
11
|
+
|
|
12
|
+
return 265, msg # Xmm: 0
|
|
13
|
+
|
|
14
|
+
@staticmethod
|
|
15
|
+
def getCurrentPlayerAchievementsResponse(response: Response) -> GetCurrentPlayerAchievementsResponse:
|
|
16
|
+
if response.exception.code:
|
|
17
|
+
raise AstandyRPCException(response.exception)
|
|
18
|
+
|
|
19
|
+
data = response.data[0].one
|
|
20
|
+
|
|
21
|
+
msg = GetCurrentPlayerAchievementsResponse()
|
|
22
|
+
msg.ParseFromString(data)
|
|
23
|
+
|
|
24
|
+
return msg
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def getPlayerAchievementsRequest(request: GetPlayerAchievementsRequest):
|
|
28
|
+
msg = request.SerializeToString()
|
|
29
|
+
|
|
30
|
+
return 266, msg # Xmm: 0
|
|
31
|
+
|
|
32
|
+
@staticmethod
|
|
33
|
+
def getPlayerAchievementsResponse(response: Response) -> GetPlayerAchievementsResponse:
|
|
34
|
+
if response.exception.code:
|
|
35
|
+
raise AstandyRPCException(response.exception)
|
|
36
|
+
|
|
37
|
+
data = response.data[0].one
|
|
38
|
+
|
|
39
|
+
msg = GetPlayerAchievementsResponse()
|
|
40
|
+
msg.ParseFromString(data)
|
|
41
|
+
|
|
42
|
+
return msg
|
|
43
|
+
|
|
44
|
+
@staticmethod
|
|
45
|
+
def getAchievementDefinitionsRequest(request: GetAchievementDefinitionsRequest):
|
|
46
|
+
msg = request.SerializeToString()
|
|
47
|
+
|
|
48
|
+
return 267, msg # Xmm: 0
|
|
49
|
+
|
|
50
|
+
@staticmethod
|
|
51
|
+
def getAchievementDefinitionsResponse(response: Response) -> GetAchievementDefinitionsResponse:
|
|
52
|
+
if response.exception.code:
|
|
53
|
+
raise AstandyRPCException(response.exception)
|
|
54
|
+
|
|
55
|
+
data = response.data[0].one
|
|
56
|
+
|
|
57
|
+
msg = GetAchievementDefinitionsResponse()
|
|
58
|
+
msg.ParseFromString(data)
|
|
59
|
+
|
|
60
|
+
return msg
|
|
61
|
+
|
|
62
|
+
class ClanRemoteService:
|
|
63
|
+
@staticmethod
|
|
64
|
+
def assignRoleToMember2Request(request: AssignRoleToMemberRequest):
|
|
65
|
+
msg = request.SerializeToString()
|
|
66
|
+
|
|
67
|
+
return 134, msg # Xmm: 0
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def assignRoleToMember2Response(response: Response) -> AssignRoleToMemberResponse:
|
|
71
|
+
if response.exception.code:
|
|
72
|
+
raise AstandyRPCException(response.exception)
|
|
73
|
+
|
|
74
|
+
data = response.data[0].one
|
|
75
|
+
|
|
76
|
+
msg = AssignRoleToMemberResponse()
|
|
77
|
+
msg.ParseFromString(data)
|
|
78
|
+
|
|
79
|
+
return msg
|
|
80
|
+
|
|
81
|
+
@staticmethod
|
|
82
|
+
def validateClanTag2Request(request: ValidateClanTagRequest):
|
|
83
|
+
msg = request.SerializeToString()
|
|
84
|
+
|
|
85
|
+
return 118, msg # Xmm: 0
|
|
86
|
+
|
|
87
|
+
@staticmethod
|
|
88
|
+
def validateClanTag2Response(response: Response) -> ValidateClanTagResponse:
|
|
89
|
+
if response.exception.code:
|
|
90
|
+
raise AstandyRPCException(response.exception)
|
|
91
|
+
|
|
92
|
+
data = response.data[0].one
|
|
93
|
+
|
|
94
|
+
msg = ValidateClanTagResponse()
|
|
95
|
+
msg.ParseFromString(data)
|
|
96
|
+
|
|
97
|
+
return msg
|
|
98
|
+
|
|
99
|
+
@staticmethod
|
|
100
|
+
def getClanMembers2Request(request: GetClanMembersRequest):
|
|
101
|
+
msg = request.SerializeToString()
|
|
102
|
+
|
|
103
|
+
return 108, msg # Xmm: 0
|
|
104
|
+
|
|
105
|
+
@staticmethod
|
|
106
|
+
def getClanMembers2Response(response: Response) -> GetClanMembersResponse:
|
|
107
|
+
if response.exception.code:
|
|
108
|
+
raise AstandyRPCException(response.exception)
|
|
109
|
+
|
|
110
|
+
data = response.data[0].one
|
|
111
|
+
|
|
112
|
+
msg = GetClanMembersResponse()
|
|
113
|
+
msg.ParseFromString(data)
|
|
114
|
+
|
|
115
|
+
return msg
|
|
116
|
+
|
|
117
|
+
@staticmethod
|
|
118
|
+
def getClan2Request(request: GetClanRequest):
|
|
119
|
+
msg = request.SerializeToString()
|
|
120
|
+
|
|
121
|
+
return 101, msg # Xmm: 0
|
|
122
|
+
|
|
123
|
+
@staticmethod
|
|
124
|
+
def getClan2Response(response: Response) -> GetClanResponse:
|
|
125
|
+
if response.exception.code:
|
|
126
|
+
raise AstandyRPCException(response.exception)
|
|
127
|
+
|
|
128
|
+
data = response.data[0].one
|
|
129
|
+
|
|
130
|
+
msg = GetClanResponse()
|
|
131
|
+
msg.ParseFromString(data)
|
|
132
|
+
|
|
133
|
+
return msg
|
|
134
|
+
|
|
135
|
+
@staticmethod
|
|
136
|
+
def leaveClan2Request(request: LeaveClanRequest):
|
|
137
|
+
msg = request.SerializeToString()
|
|
138
|
+
|
|
139
|
+
return 125, msg # Xmm: 0
|
|
140
|
+
|
|
141
|
+
@staticmethod
|
|
142
|
+
def leaveClan2Response(response: Response) -> LeaveClanResponse:
|
|
143
|
+
if response.exception.code:
|
|
144
|
+
raise AstandyRPCException(response.exception)
|
|
145
|
+
|
|
146
|
+
data = response.data[0].one
|
|
147
|
+
|
|
148
|
+
msg = LeaveClanResponse()
|
|
149
|
+
msg.ParseFromString(data)
|
|
150
|
+
|
|
151
|
+
return msg
|
|
152
|
+
|
|
153
|
+
@staticmethod
|
|
154
|
+
def setClanAvatar2Request(request: SetClanAvatarRequest):
|
|
155
|
+
msg = request.SerializeToString()
|
|
156
|
+
|
|
157
|
+
return 128, msg # Xmm: 0
|
|
158
|
+
|
|
159
|
+
@staticmethod
|
|
160
|
+
def setClanAvatar2Response(response: Response) -> SetClanAvatarResponse:
|
|
161
|
+
if response.exception.code:
|
|
162
|
+
raise AstandyRPCException(response.exception)
|
|
163
|
+
|
|
164
|
+
data = response.data[0].one
|
|
165
|
+
|
|
166
|
+
msg = SetClanAvatarResponse()
|
|
167
|
+
msg.ParseFromString(data)
|
|
168
|
+
|
|
169
|
+
return msg
|
|
170
|
+
|
|
171
|
+
@staticmethod
|
|
172
|
+
def deleteClosedJoinRequest2Request(request: DeleteClosedJoinRequestRequest):
|
|
173
|
+
msg = request.SerializeToString()
|
|
174
|
+
|
|
175
|
+
return 117, msg # Xmm: 0
|
|
176
|
+
|
|
177
|
+
@staticmethod
|
|
178
|
+
def deleteClosedJoinRequest2Response(response: Response) -> DeleteClosedJoinRequestResponse:
|
|
179
|
+
if response.exception.code:
|
|
180
|
+
raise AstandyRPCException(response.exception)
|
|
181
|
+
|
|
182
|
+
data = response.data[0].one
|
|
183
|
+
|
|
184
|
+
msg = DeleteClosedJoinRequestResponse()
|
|
185
|
+
msg.ParseFromString(data)
|
|
186
|
+
|
|
187
|
+
return msg
|
|
188
|
+
|
|
189
|
+
@staticmethod
|
|
190
|
+
def declineInviteRequest2Request(request: DeclineInviteRequestRequest):
|
|
191
|
+
msg = request.SerializeToString()
|
|
192
|
+
|
|
193
|
+
return 130, msg # Xmm: 0
|
|
194
|
+
|
|
195
|
+
@staticmethod
|
|
196
|
+
def declineInviteRequest2Response(response: Response) -> DeclineInviteRequestResponse:
|
|
197
|
+
if response.exception.code:
|
|
198
|
+
raise AstandyRPCException(response.exception)
|
|
199
|
+
|
|
200
|
+
data = response.data[0].one
|
|
201
|
+
|
|
202
|
+
msg = DeclineInviteRequestResponse()
|
|
203
|
+
msg.ParseFromString(data)
|
|
204
|
+
|
|
205
|
+
return msg
|
|
206
|
+
|
|
207
|
+
@staticmethod
|
|
208
|
+
def declineJoinRequest2Request(request: DeclineJoinRequestRequest):
|
|
209
|
+
msg = request.SerializeToString()
|
|
210
|
+
|
|
211
|
+
return 120, msg # Xmm: 0
|
|
212
|
+
|
|
213
|
+
@staticmethod
|
|
214
|
+
def declineJoinRequest2Response(response: Response) -> DeclineJoinRequestResponse:
|
|
215
|
+
if response.exception.code:
|
|
216
|
+
raise AstandyRPCException(response.exception)
|
|
217
|
+
|
|
218
|
+
data = response.data[0].one
|
|
219
|
+
|
|
220
|
+
msg = DeclineJoinRequestResponse()
|
|
221
|
+
msg.ParseFromString(data)
|
|
222
|
+
|
|
223
|
+
return msg
|
|
224
|
+
|
|
225
|
+
@staticmethod
|
|
226
|
+
def getClanSettings2Request(request: GetClanSettingsRequest):
|
|
227
|
+
msg = request.SerializeToString()
|
|
228
|
+
|
|
229
|
+
return 103, msg # Xmm: 0
|
|
230
|
+
|
|
231
|
+
@staticmethod
|
|
232
|
+
def getClanSettings2Response(response: Response) -> GetClanSettingsResponse:
|
|
233
|
+
if response.exception.code:
|
|
234
|
+
raise AstandyRPCException(response.exception)
|
|
235
|
+
|
|
236
|
+
data = response.data[0].one
|
|
237
|
+
|
|
238
|
+
msg = GetClanSettingsResponse()
|
|
239
|
+
msg.ParseFromString(data)
|
|
240
|
+
|
|
241
|
+
return msg
|
|
242
|
+
|
|
243
|
+
@staticmethod
|
|
244
|
+
def getClanJoinRequests2Request(request: GetClanJoinRequestsRequest):
|
|
245
|
+
msg = request.SerializeToString()
|
|
246
|
+
|
|
247
|
+
return 116, msg # Xmm: 0
|
|
248
|
+
|
|
249
|
+
@staticmethod
|
|
250
|
+
def getClanJoinRequests2Response(response: Response) -> GetClanJoinRequestsResponse:
|
|
251
|
+
if response.exception.code:
|
|
252
|
+
raise AstandyRPCException(response.exception)
|
|
253
|
+
|
|
254
|
+
data = response.data[0].one
|
|
255
|
+
|
|
256
|
+
msg = GetClanJoinRequestsResponse()
|
|
257
|
+
msg.ParseFromString(data)
|
|
258
|
+
|
|
259
|
+
return msg
|
|
260
|
+
|
|
261
|
+
@staticmethod
|
|
262
|
+
def assignLeaderRole2Request(request: AssignLeaderRoleRequest):
|
|
263
|
+
msg = request.SerializeToString()
|
|
264
|
+
|
|
265
|
+
return 135, msg # Xmm: 0
|
|
266
|
+
|
|
267
|
+
@staticmethod
|
|
268
|
+
def assignLeaderRole2Response(response: Response) -> AssignLeaderRoleResponse:
|
|
269
|
+
if response.exception.code:
|
|
270
|
+
raise AstandyRPCException(response.exception)
|
|
271
|
+
|
|
272
|
+
data = response.data[0].one
|
|
273
|
+
|
|
274
|
+
msg = AssignLeaderRoleResponse()
|
|
275
|
+
msg.ParseFromString(data)
|
|
276
|
+
|
|
277
|
+
return msg
|
|
278
|
+
|
|
279
|
+
@staticmethod
|
|
280
|
+
def setClanDescription2Request(request: SetClanDescriptionRequest):
|
|
281
|
+
msg = request.SerializeToString()
|
|
282
|
+
|
|
283
|
+
return 127, msg # Xmm: 0
|
|
284
|
+
|
|
285
|
+
@staticmethod
|
|
286
|
+
def setClanDescription2Response(response: Response) -> SetClanDescriptionResponse:
|
|
287
|
+
if response.exception.code:
|
|
288
|
+
raise AstandyRPCException(response.exception)
|
|
289
|
+
|
|
290
|
+
data = response.data[0].one
|
|
291
|
+
|
|
292
|
+
msg = SetClanDescriptionResponse()
|
|
293
|
+
msg.ParseFromString(data)
|
|
294
|
+
|
|
295
|
+
return msg
|
|
296
|
+
|
|
297
|
+
@staticmethod
|
|
298
|
+
def findClan2Request(request: FindClanRequest):
|
|
299
|
+
msg = request.SerializeToString()
|
|
300
|
+
|
|
301
|
+
return 115, msg # Xmm: 0
|
|
302
|
+
|
|
303
|
+
@staticmethod
|
|
304
|
+
def findClan2Response(response: Response) -> FindClanResponse:
|
|
305
|
+
if response.exception.code:
|
|
306
|
+
raise AstandyRPCException(response.exception)
|
|
307
|
+
|
|
308
|
+
data = response.data[0].one
|
|
309
|
+
|
|
310
|
+
msg = FindClanResponse()
|
|
311
|
+
msg.ParseFromString(data)
|
|
312
|
+
|
|
313
|
+
return msg
|
|
314
|
+
|
|
315
|
+
@staticmethod
|
|
316
|
+
def deleteClosedInviteRequest2Request(request: DeleteClosedInviteRequestRequest):
|
|
317
|
+
msg = request.SerializeToString()
|
|
318
|
+
|
|
319
|
+
return 123, msg # Xmm: 0
|
|
320
|
+
|
|
321
|
+
@staticmethod
|
|
322
|
+
def deleteClosedInviteRequest2Response(response: Response) -> DeleteClosedInviteRequestResponse:
|
|
323
|
+
if response.exception.code:
|
|
324
|
+
raise AstandyRPCException(response.exception)
|
|
325
|
+
|
|
326
|
+
data = response.data[0].one
|
|
327
|
+
|
|
328
|
+
msg = DeleteClosedInviteRequestResponse()
|
|
329
|
+
msg.ParseFromString(data)
|
|
330
|
+
|
|
331
|
+
return msg
|
|
332
|
+
|
|
333
|
+
@staticmethod
|
|
334
|
+
def getPlayerClosedJoinRequestsCount2Request(request: GetPlayerClosedJoinRequestsCountRequest):
|
|
335
|
+
msg = request.SerializeToString()
|
|
336
|
+
|
|
337
|
+
return 105, msg # Xmm: 0
|
|
338
|
+
|
|
339
|
+
@staticmethod
|
|
340
|
+
def getPlayerClosedJoinRequestsCount2Response(response: Response) -> GetPlayerClosedJoinRequestsCountResponse:
|
|
341
|
+
if response.exception.code:
|
|
342
|
+
raise AstandyRPCException(response.exception)
|
|
343
|
+
|
|
344
|
+
data = response.data[0].one
|
|
345
|
+
|
|
346
|
+
msg = GetPlayerClosedJoinRequestsCountResponse()
|
|
347
|
+
msg.ParseFromString(data)
|
|
348
|
+
|
|
349
|
+
return msg
|
|
350
|
+
|
|
351
|
+
@staticmethod
|
|
352
|
+
def requestToJoinClan2Request(request: RequestToJoinClanRequest):
|
|
353
|
+
msg = request.SerializeToString()
|
|
354
|
+
|
|
355
|
+
return 111, msg # Xmm: 0
|
|
356
|
+
|
|
357
|
+
@staticmethod
|
|
358
|
+
def requestToJoinClan2Response(response: Response) -> RequestToJoinClanResponse:
|
|
359
|
+
if response.exception.code:
|
|
360
|
+
raise AstandyRPCException(response.exception)
|
|
361
|
+
|
|
362
|
+
data = response.data[0].one
|
|
363
|
+
|
|
364
|
+
msg = RequestToJoinClanResponse()
|
|
365
|
+
msg.ParseFromString(data)
|
|
366
|
+
|
|
367
|
+
return msg
|
|
368
|
+
|
|
369
|
+
@staticmethod
|
|
370
|
+
def cancelJoinRequest2Request(request: CancelJoinRequestRequest):
|
|
371
|
+
msg = request.SerializeToString()
|
|
372
|
+
|
|
373
|
+
return 121, msg # Xmm: 0
|
|
374
|
+
|
|
375
|
+
@staticmethod
|
|
376
|
+
def cancelJoinRequest2Response(response: Response) -> CancelJoinRequestResponse:
|
|
377
|
+
if response.exception.code:
|
|
378
|
+
raise AstandyRPCException(response.exception)
|
|
379
|
+
|
|
380
|
+
data = response.data[0].one
|
|
381
|
+
|
|
382
|
+
msg = CancelJoinRequestResponse()
|
|
383
|
+
msg.ParseFromString(data)
|
|
384
|
+
|
|
385
|
+
return msg
|
|
386
|
+
|
|
387
|
+
@staticmethod
|
|
388
|
+
def changeClanType2Request(request: ChangeClanTypeRequest):
|
|
389
|
+
msg = request.SerializeToString()
|
|
390
|
+
|
|
391
|
+
return 132, msg # Xmm: 0
|
|
392
|
+
|
|
393
|
+
@staticmethod
|
|
394
|
+
def changeClanType2Response(response: Response) -> ChangeClanTypeResponse:
|
|
395
|
+
if response.exception.code:
|
|
396
|
+
raise AstandyRPCException(response.exception)
|
|
397
|
+
|
|
398
|
+
data = response.data[0].one
|
|
399
|
+
|
|
400
|
+
msg = ChangeClanTypeResponse()
|
|
401
|
+
msg.ParseFromString(data)
|
|
402
|
+
|
|
403
|
+
return msg
|
|
404
|
+
|
|
405
|
+
@staticmethod
|
|
406
|
+
def getClanInviteRequests2Request(request: GetClanInviteRequestsRequest):
|
|
407
|
+
msg = request.SerializeToString()
|
|
408
|
+
|
|
409
|
+
return 119, msg # Xmm: 0
|
|
410
|
+
|
|
411
|
+
@staticmethod
|
|
412
|
+
def getClanInviteRequests2Response(response: Response) -> GetClanInviteRequestsResponse:
|
|
413
|
+
if response.exception.code:
|
|
414
|
+
raise AstandyRPCException(response.exception)
|
|
415
|
+
|
|
416
|
+
data = response.data[0].one
|
|
417
|
+
|
|
418
|
+
msg = GetClanInviteRequestsResponse()
|
|
419
|
+
msg.ParseFromString(data)
|
|
420
|
+
|
|
421
|
+
return msg
|
|
422
|
+
|
|
423
|
+
@staticmethod
|
|
424
|
+
def getPlayerInviteRequests2Request(request: GetPlayerInviteRequestsRequest):
|
|
425
|
+
msg = request.SerializeToString()
|
|
426
|
+
|
|
427
|
+
return 112, msg # Xmm: 0
|
|
428
|
+
|
|
429
|
+
@staticmethod
|
|
430
|
+
def getPlayerInviteRequests2Response(response: Response) -> GetPlayerInviteRequestsResponse:
|
|
431
|
+
if response.exception.code:
|
|
432
|
+
raise AstandyRPCException(response.exception)
|
|
433
|
+
|
|
434
|
+
data = response.data[0].one
|
|
435
|
+
|
|
436
|
+
msg = GetPlayerInviteRequestsResponse()
|
|
437
|
+
msg.ParseFromString(data)
|
|
438
|
+
|
|
439
|
+
return msg
|
|
440
|
+
|
|
441
|
+
@staticmethod
|
|
442
|
+
def getRecommendedClans2Request(request: GetRecommendedClansRequest):
|
|
443
|
+
msg = request.SerializeToString()
|
|
444
|
+
|
|
445
|
+
return 109, msg # Xmm: 0
|
|
446
|
+
|
|
447
|
+
@staticmethod
|
|
448
|
+
def getRecommendedClans2Response(response: Response) -> GetRecommendedClansResponse:
|
|
449
|
+
if response.exception.code:
|
|
450
|
+
raise AstandyRPCException(response.exception)
|
|
451
|
+
|
|
452
|
+
data = response.data[0].one
|
|
453
|
+
|
|
454
|
+
msg = GetRecommendedClansResponse()
|
|
455
|
+
msg.ParseFromString(data)
|
|
456
|
+
|
|
457
|
+
return msg
|
|
458
|
+
|
|
459
|
+
@staticmethod
|
|
460
|
+
def validateClanName2Request(request: ValidateClanNameRequest):
|
|
461
|
+
msg = request.SerializeToString()
|
|
462
|
+
|
|
463
|
+
return 124, msg # Xmm: 0
|
|
464
|
+
|
|
465
|
+
@staticmethod
|
|
466
|
+
def validateClanName2Response(response: Response) -> ValidateClanNameResponse:
|
|
467
|
+
if response.exception.code:
|
|
468
|
+
raise AstandyRPCException(response.exception)
|
|
469
|
+
|
|
470
|
+
data = response.data[0].one
|
|
471
|
+
|
|
472
|
+
msg = ValidateClanNameResponse()
|
|
473
|
+
msg.ParseFromString(data)
|
|
474
|
+
|
|
475
|
+
return msg
|
|
476
|
+
|
|
477
|
+
@staticmethod
|
|
478
|
+
def getClanByTagRequest(request: GetClanByTagRequest):
|
|
479
|
+
msg = request.SerializeToString()
|
|
480
|
+
|
|
481
|
+
return 129, msg # Xmm: 0
|
|
482
|
+
|
|
483
|
+
@staticmethod
|
|
484
|
+
def getClanByTagResponse(response: Response) -> GetClanByTagResponse:
|
|
485
|
+
if response.exception.code:
|
|
486
|
+
raise AstandyRPCException(response.exception)
|
|
487
|
+
|
|
488
|
+
data = response.data[0].one
|
|
489
|
+
|
|
490
|
+
msg = GetClanByTagResponse()
|
|
491
|
+
msg.ParseFromString(data)
|
|
492
|
+
|
|
493
|
+
return msg
|
|
494
|
+
|
|
495
|
+
@staticmethod
|
|
496
|
+
def createClan2Request(request: CreateClanRequest):
|
|
497
|
+
msg = request.SerializeToString()
|
|
498
|
+
|
|
499
|
+
return 131, msg # Xmm: 0
|
|
500
|
+
|
|
501
|
+
@staticmethod
|
|
502
|
+
def createClan2Response(response: Response) -> CreateClanResponse:
|
|
503
|
+
if response.exception.code:
|
|
504
|
+
raise AstandyRPCException(response.exception)
|
|
505
|
+
|
|
506
|
+
data = response.data[0].one
|
|
507
|
+
|
|
508
|
+
msg = CreateClanResponse()
|
|
509
|
+
msg.ParseFromString(data)
|
|
510
|
+
|
|
511
|
+
return msg
|
|
512
|
+
|
|
513
|
+
@staticmethod
|
|
514
|
+
def getClanJoinRequestsCount2Request(request: GetClanJoinRequestsCountRequest):
|
|
515
|
+
msg = request.SerializeToString()
|
|
516
|
+
|
|
517
|
+
return 106, msg # Xmm: 0
|
|
518
|
+
|
|
519
|
+
@staticmethod
|
|
520
|
+
def getClanJoinRequestsCount2Response(response: Response) -> GetClanJoinRequestsCountResponse:
|
|
521
|
+
if response.exception.code:
|
|
522
|
+
raise AstandyRPCException(response.exception)
|
|
523
|
+
|
|
524
|
+
data = response.data[0].one
|
|
525
|
+
|
|
526
|
+
msg = GetClanJoinRequestsCountResponse()
|
|
527
|
+
msg.ParseFromString(data)
|
|
528
|
+
|
|
529
|
+
return msg
|
|
530
|
+
|
|
531
|
+
@staticmethod
|
|
532
|
+
def getClanMembersById2Request(request: GetClanMembersByIdRequest):
|
|
533
|
+
msg = request.SerializeToString()
|
|
534
|
+
|
|
535
|
+
return 110, msg # Xmm: 0
|
|
536
|
+
|
|
537
|
+
@staticmethod
|
|
538
|
+
def getClanMembersById2Response(response: Response) -> GetClanMembersByIdResponse:
|
|
539
|
+
if response.exception.code:
|
|
540
|
+
raise AstandyRPCException(response.exception)
|
|
541
|
+
|
|
542
|
+
data = response.data[0].one
|
|
543
|
+
|
|
544
|
+
msg = GetClanMembersByIdResponse()
|
|
545
|
+
msg.ParseFromString(data)
|
|
546
|
+
|
|
547
|
+
return msg
|
|
548
|
+
|
|
549
|
+
@staticmethod
|
|
550
|
+
def getPlayerInviteRequestsCount2Request(request: GetPlayerInviteRequestsCountRequest):
|
|
551
|
+
msg = request.SerializeToString()
|
|
552
|
+
|
|
553
|
+
return 104, msg # Xmm: 0
|
|
554
|
+
|
|
555
|
+
@staticmethod
|
|
556
|
+
def getPlayerInviteRequestsCount2Response(response: Response) -> GetPlayerInviteRequestsCountResponse:
|
|
557
|
+
if response.exception.code:
|
|
558
|
+
raise AstandyRPCException(response.exception)
|
|
559
|
+
|
|
560
|
+
data = response.data[0].one
|
|
561
|
+
|
|
562
|
+
msg = GetPlayerInviteRequestsCountResponse()
|
|
563
|
+
msg.ParseFromString(data)
|
|
564
|
+
|
|
565
|
+
return msg
|
|
566
|
+
|
|
567
|
+
@staticmethod
|
|
568
|
+
def getRoles2Request(request: GetRolesRequest):
|
|
569
|
+
msg = request.SerializeToString()
|
|
570
|
+
|
|
571
|
+
return 102, msg # Xmm: 0
|
|
572
|
+
|
|
573
|
+
@staticmethod
|
|
574
|
+
def getRoles2Response(response: Response) -> GetRolesResponse:
|
|
575
|
+
if response.exception.code:
|
|
576
|
+
raise AstandyRPCException(response.exception)
|
|
577
|
+
|
|
578
|
+
data = response.data[0].one
|
|
579
|
+
|
|
580
|
+
msg = GetRolesResponse()
|
|
581
|
+
msg.ParseFromString(data)
|
|
582
|
+
|
|
583
|
+
return msg
|
|
584
|
+
|
|
585
|
+
@staticmethod
|
|
586
|
+
def cancelInviteRequest2Request(request: CancelInviteRequestRequest):
|
|
587
|
+
msg = request.SerializeToString()
|
|
588
|
+
|
|
589
|
+
return 133, msg # Xmm: 0
|
|
590
|
+
|
|
591
|
+
@staticmethod
|
|
592
|
+
def cancelInviteRequest2Response(response: Response) -> CancelInviteRequestResponse:
|
|
593
|
+
if response.exception.code:
|
|
594
|
+
raise AstandyRPCException(response.exception)
|
|
595
|
+
|
|
596
|
+
data = response.data[0].one
|
|
597
|
+
|
|
598
|
+
msg = CancelInviteRequestResponse()
|
|
599
|
+
msg.ParseFromString(data)
|
|
600
|
+
|
|
601
|
+
return msg
|
|
602
|
+
|
|
603
|
+
@staticmethod
|
|
604
|
+
def inviteToClan2Request(request: InviteToClanRequest):
|
|
605
|
+
msg = request.SerializeToString()
|
|
606
|
+
|
|
607
|
+
return 122, msg # Xmm: 0
|
|
608
|
+
|
|
609
|
+
@staticmethod
|
|
610
|
+
def inviteToClan2Response(response: Response) -> InviteToClanResponse:
|
|
611
|
+
if response.exception.code:
|
|
612
|
+
raise AstandyRPCException(response.exception)
|
|
613
|
+
|
|
614
|
+
data = response.data[0].one
|
|
615
|
+
|
|
616
|
+
msg = InviteToClanResponse()
|
|
617
|
+
msg.ParseFromString(data)
|
|
618
|
+
|
|
619
|
+
return msg
|
|
620
|
+
|
|
621
|
+
@staticmethod
|
|
622
|
+
def kickMember2Request(request: KickMemberRequest):
|
|
623
|
+
msg = request.SerializeToString()
|
|
624
|
+
|
|
625
|
+
return 126, msg # Xmm: 0
|
|
626
|
+
|
|
627
|
+
@staticmethod
|
|
628
|
+
def kickMember2Response(response: Response) -> KickMemberResponse:
|
|
629
|
+
if response.exception.code:
|
|
630
|
+
raise AstandyRPCException(response.exception)
|
|
631
|
+
|
|
632
|
+
data = response.data[0].one
|
|
633
|
+
|
|
634
|
+
msg = KickMemberResponse()
|
|
635
|
+
msg.ParseFromString(data)
|
|
636
|
+
|
|
637
|
+
return msg
|
|
638
|
+
|
|
639
|
+
@staticmethod
|
|
640
|
+
def getClanById2Request(request: GetClanByIdRequest):
|
|
641
|
+
msg = request.SerializeToString()
|
|
642
|
+
|
|
643
|
+
return 113, msg # Xmm: 0
|
|
644
|
+
|
|
645
|
+
@staticmethod
|
|
646
|
+
def getClanById2Response(response: Response) -> GetClanByIdResponse:
|
|
647
|
+
if response.exception.code:
|
|
648
|
+
raise AstandyRPCException(response.exception)
|
|
649
|
+
|
|
650
|
+
data = response.data[0].one
|
|
651
|
+
|
|
652
|
+
msg = GetClanByIdResponse()
|
|
653
|
+
msg.ParseFromString(data)
|
|
654
|
+
|
|
655
|
+
return msg
|
|
656
|
+
|
|
657
|
+
@staticmethod
|
|
658
|
+
def getClanClosedInviteRequestsCount2Request(request: GetClanClosedInviteRequestsCountRequest):
|
|
659
|
+
msg = request.SerializeToString()
|
|
660
|
+
|
|
661
|
+
return 107, msg # Xmm: 0
|
|
662
|
+
|
|
663
|
+
@staticmethod
|
|
664
|
+
def getClanClosedInviteRequestsCount2Response(response: Response) -> GetClanClosedInviteRequestsCountResponse:
|
|
665
|
+
if response.exception.code:
|
|
666
|
+
raise AstandyRPCException(response.exception)
|
|
667
|
+
|
|
668
|
+
data = response.data[0].one
|
|
669
|
+
|
|
670
|
+
msg = GetClanClosedInviteRequestsCountResponse()
|
|
671
|
+
msg.ParseFromString(data)
|
|
672
|
+
|
|
673
|
+
return msg
|
|
674
|
+
|
|
675
|
+
@staticmethod
|
|
676
|
+
def getPlayerJoinRequests2Request(request: GetPlayerJoinRequestsRequest):
|
|
677
|
+
msg = request.SerializeToString()
|
|
678
|
+
|
|
679
|
+
return 114, msg # Xmm: 0
|
|
680
|
+
|
|
681
|
+
@staticmethod
|
|
682
|
+
def getPlayerJoinRequests2Response(response: Response) -> GetPlayerJoinRequestsResponse:
|
|
683
|
+
if response.exception.code:
|
|
684
|
+
raise AstandyRPCException(response.exception)
|
|
685
|
+
|
|
686
|
+
data = response.data[0].one
|
|
687
|
+
|
|
688
|
+
msg = GetPlayerJoinRequestsResponse()
|
|
689
|
+
msg.ParseFromString(data)
|
|
690
|
+
|
|
691
|
+
return msg
|
|
692
|
+
|
|
693
|
+
class ClanMessagesRemoteService:
|
|
694
|
+
@staticmethod
|
|
695
|
+
def getUnreadLogMessagesCount2Request(request: GetUnreadLogMessagesCountRequest):
|
|
696
|
+
msg = request.SerializeToString()
|
|
697
|
+
|
|
698
|
+
return 201, msg # Xmm: 0
|
|
699
|
+
|
|
700
|
+
@staticmethod
|
|
701
|
+
def getUnreadLogMessagesCount2Response(response: Response) -> GetUnreadLogMessagesCountResponse:
|
|
702
|
+
if response.exception.code:
|
|
703
|
+
raise AstandyRPCException(response.exception)
|
|
704
|
+
|
|
705
|
+
data = response.data[0].one
|
|
706
|
+
|
|
707
|
+
msg = GetUnreadLogMessagesCountResponse()
|
|
708
|
+
msg.ParseFromString(data)
|
|
709
|
+
|
|
710
|
+
return msg
|
|
711
|
+
|
|
712
|
+
@staticmethod
|
|
713
|
+
def readClanLogMessages2Request(request: ReadClanLogMessagesRequest):
|
|
714
|
+
msg = request.SerializeToString()
|
|
715
|
+
|
|
716
|
+
return 206, msg # Xmm: 0
|
|
717
|
+
|
|
718
|
+
@staticmethod
|
|
719
|
+
def readClanLogMessages2Response(response: Response) -> ReadClanLogMessagesResponse:
|
|
720
|
+
if response.exception.code:
|
|
721
|
+
raise AstandyRPCException(response.exception)
|
|
722
|
+
|
|
723
|
+
data = response.data[0].one
|
|
724
|
+
|
|
725
|
+
msg = ReadClanLogMessagesResponse()
|
|
726
|
+
msg.ParseFromString(data)
|
|
727
|
+
|
|
728
|
+
return msg
|
|
729
|
+
|
|
730
|
+
@staticmethod
|
|
731
|
+
def getClanChatMessages2Request(request: GetClanChatMessagesRequest):
|
|
732
|
+
msg = request.SerializeToString()
|
|
733
|
+
|
|
734
|
+
return 203, msg # Xmm: 0
|
|
735
|
+
|
|
736
|
+
@staticmethod
|
|
737
|
+
def getClanChatMessages2Response(response: Response) -> GetClanChatMessagesResponse:
|
|
738
|
+
if response.exception.code:
|
|
739
|
+
raise AstandyRPCException(response.exception)
|
|
740
|
+
|
|
741
|
+
data = response.data[0].one
|
|
742
|
+
|
|
743
|
+
msg = GetClanChatMessagesResponse()
|
|
744
|
+
msg.ParseFromString(data)
|
|
745
|
+
|
|
746
|
+
return msg
|
|
747
|
+
|
|
748
|
+
@staticmethod
|
|
749
|
+
def sendClanChatMessage2Request(request: SendClanChatMessageRequest):
|
|
750
|
+
msg = request.SerializeToString()
|
|
751
|
+
|
|
752
|
+
return 205, msg # Xmm: 0
|
|
753
|
+
|
|
754
|
+
@staticmethod
|
|
755
|
+
def sendClanChatMessage2Response(response: Response) -> SendClanChatMessageResponse:
|
|
756
|
+
if response.exception.code:
|
|
757
|
+
raise AstandyRPCException(response.exception)
|
|
758
|
+
|
|
759
|
+
data = response.data[0].one
|
|
760
|
+
|
|
761
|
+
msg = SendClanChatMessageResponse()
|
|
762
|
+
msg.ParseFromString(data)
|
|
763
|
+
|
|
764
|
+
return msg
|
|
765
|
+
|
|
766
|
+
@staticmethod
|
|
767
|
+
def getClanLogMessages2Request(request: GetClanLogMessagesRequest):
|
|
768
|
+
msg = request.SerializeToString()
|
|
769
|
+
|
|
770
|
+
return 207, msg # Xmm: 0
|
|
771
|
+
|
|
772
|
+
@staticmethod
|
|
773
|
+
def getClanLogMessages2Response(response: Response) -> GetClanLogMessagesResponse:
|
|
774
|
+
if response.exception.code:
|
|
775
|
+
raise AstandyRPCException(response.exception)
|
|
776
|
+
|
|
777
|
+
data = response.data[0].one
|
|
778
|
+
|
|
779
|
+
msg = GetClanLogMessagesResponse()
|
|
780
|
+
msg.ParseFromString(data)
|
|
781
|
+
|
|
782
|
+
return msg
|
|
783
|
+
|
|
784
|
+
@staticmethod
|
|
785
|
+
def getUnreadChatMessagesCount2Request(request: GetUnreadChatMessagesCountRequest):
|
|
786
|
+
msg = request.SerializeToString()
|
|
787
|
+
|
|
788
|
+
return 202, msg # Xmm: 0
|
|
789
|
+
|
|
790
|
+
@staticmethod
|
|
791
|
+
def getUnreadChatMessagesCount2Response(response: Response) -> GetUnreadChatMessagesCountResponse:
|
|
792
|
+
if response.exception.code:
|
|
793
|
+
raise AstandyRPCException(response.exception)
|
|
794
|
+
|
|
795
|
+
data = response.data[0].one
|
|
796
|
+
|
|
797
|
+
msg = GetUnreadChatMessagesCountResponse()
|
|
798
|
+
msg.ParseFromString(data)
|
|
799
|
+
|
|
800
|
+
return msg
|
|
801
|
+
|
|
802
|
+
@staticmethod
|
|
803
|
+
def readClanChatMessages2Request(request: ReadClanChatMessagesRequest):
|
|
804
|
+
msg = request.SerializeToString()
|
|
805
|
+
|
|
806
|
+
return 204, msg # Xmm: 0
|
|
807
|
+
|
|
808
|
+
@staticmethod
|
|
809
|
+
def readClanChatMessages2Response(response: Response) -> ReadClanChatMessagesResponse:
|
|
810
|
+
if response.exception.code:
|
|
811
|
+
raise AstandyRPCException(response.exception)
|
|
812
|
+
|
|
813
|
+
data = response.data[0].one
|
|
814
|
+
|
|
815
|
+
msg = ReadClanChatMessagesResponse()
|
|
816
|
+
msg.ParseFromString(data)
|
|
817
|
+
|
|
818
|
+
return msg
|
|
819
|
+
|
|
820
|
+
class PlayerStatsRemoteService:
|
|
821
|
+
@staticmethod
|
|
822
|
+
def getCurrentStatsRequest(request: GetCurrentStatsRequest):
|
|
823
|
+
msg = request.SerializeToString()
|
|
824
|
+
|
|
825
|
+
return 181, msg # Xmm: 0
|
|
826
|
+
|
|
827
|
+
@staticmethod
|
|
828
|
+
def getCurrentStatsResponse(response: Response) -> GetCurrentStatsResponse:
|
|
829
|
+
if response.exception.code:
|
|
830
|
+
raise AstandyRPCException(response.exception)
|
|
831
|
+
|
|
832
|
+
data = response.data[0].one
|
|
833
|
+
|
|
834
|
+
msg = GetCurrentStatsResponse()
|
|
835
|
+
msg.ParseFromString(data)
|
|
836
|
+
|
|
837
|
+
return msg
|
|
838
|
+
|
|
839
|
+
@staticmethod
|
|
840
|
+
def storeStats2Request(request: StorePlayerStatsRequest):
|
|
841
|
+
msg = request.SerializeToString()
|
|
842
|
+
|
|
843
|
+
return 180, msg # Xmm: 0
|
|
844
|
+
|
|
845
|
+
@staticmethod
|
|
846
|
+
def storeStats2Response(response: Response) -> StorePlayerStatsResponse:
|
|
847
|
+
if response.exception.code:
|
|
848
|
+
raise AstandyRPCException(response.exception)
|
|
849
|
+
|
|
850
|
+
data = response.data[0].one
|
|
851
|
+
|
|
852
|
+
msg = StorePlayerStatsResponse()
|
|
853
|
+
msg.ParseFromString(data)
|
|
854
|
+
|
|
855
|
+
return msg
|
|
856
|
+
|
|
857
|
+
@staticmethod
|
|
858
|
+
def getPlayerStats2Request(request: GetPlayerStatsRequest):
|
|
859
|
+
msg = request.SerializeToString()
|
|
860
|
+
|
|
861
|
+
return 182, msg # Xmm: 0
|
|
862
|
+
|
|
863
|
+
@staticmethod
|
|
864
|
+
def getPlayerStats2Response(response: Response) -> GetPlayerStatsResponse:
|
|
865
|
+
if response.exception.code:
|
|
866
|
+
raise AstandyRPCException(response.exception)
|
|
867
|
+
|
|
868
|
+
data = response.data[0].one
|
|
869
|
+
|
|
870
|
+
msg = GetPlayerStatsResponse()
|
|
871
|
+
msg.ParseFromString(data)
|
|
872
|
+
|
|
873
|
+
return msg
|
|
874
|
+
|
|
875
|
+
class InventoryRemoteService:
|
|
876
|
+
@staticmethod
|
|
877
|
+
def getOtherPlayerItemsEncryptedRequest(request: GetOtherPlayerItemsRequest, cipher):
|
|
878
|
+
msg = request.SerializeToString()
|
|
879
|
+
msg = cipher.encrypt(msg)
|
|
880
|
+
return 50, msg # Xmm: 0
|
|
881
|
+
|
|
882
|
+
@staticmethod
|
|
883
|
+
def getOtherPlayerItemsEncryptedResponse(response: Response, cipher) -> GetOtherPlayerItemsResponse:
|
|
884
|
+
if response.exception.code:
|
|
885
|
+
raise AstandyRPCException(response.exception)
|
|
886
|
+
|
|
887
|
+
data = response.data[0].one
|
|
888
|
+
data = cipher.decrypt(data)
|
|
889
|
+
msg = GetOtherPlayerItemsResponse()
|
|
890
|
+
msg.ParseFromString(data)
|
|
891
|
+
|
|
892
|
+
return msg
|
|
893
|
+
|
|
894
|
+
@staticmethod
|
|
895
|
+
def setInventoryItemsPropertiesEncryptedRequest(request: SetItemsModificationsRequest, cipher):
|
|
896
|
+
msg = request.SerializeToString()
|
|
897
|
+
msg = cipher.encrypt(msg)
|
|
898
|
+
return 51, msg # Xmm: 0
|
|
899
|
+
|
|
900
|
+
@staticmethod
|
|
901
|
+
def setInventoryItemsPropertiesEncryptedResponse(response: Response, cipher) -> SetItemsModificationsResponse:
|
|
902
|
+
if response.exception.code:
|
|
903
|
+
raise AstandyRPCException(response.exception)
|
|
904
|
+
|
|
905
|
+
data = response.data[0].one
|
|
906
|
+
data = cipher.decrypt(data)
|
|
907
|
+
msg = SetItemsModificationsResponse()
|
|
908
|
+
msg.ParseFromString(data)
|
|
909
|
+
|
|
910
|
+
return msg
|
|
911
|
+
|
|
912
|
+
@staticmethod
|
|
913
|
+
def setInventoryItemFlagsEncryptedRequest(request: SetInventoryItemFlagsRequest, cipher):
|
|
914
|
+
msg = request.SerializeToString()
|
|
915
|
+
msg = cipher.encrypt(msg)
|
|
916
|
+
return 52, msg # Xmm: 0
|
|
917
|
+
|
|
918
|
+
@staticmethod
|
|
919
|
+
def setInventoryItemFlagsEncryptedResponse(response: Response, cipher) -> SetInventoryItemFlagsResponse:
|
|
920
|
+
if response.exception.code:
|
|
921
|
+
raise AstandyRPCException(response.exception)
|
|
922
|
+
|
|
923
|
+
data = response.data[0].one
|
|
924
|
+
data = cipher.decrypt(data)
|
|
925
|
+
msg = SetInventoryItemFlagsResponse()
|
|
926
|
+
msg.ParseFromString(data)
|
|
927
|
+
|
|
928
|
+
return msg
|
|
929
|
+
|
|
930
|
+
@staticmethod
|
|
931
|
+
def activateCouponEncryptedRequest(request: ActivateCouponRequest, cipher):
|
|
932
|
+
msg = request.SerializeToString()
|
|
933
|
+
msg = cipher.encrypt(msg)
|
|
934
|
+
return 60, msg # Xmm: 0
|
|
935
|
+
|
|
936
|
+
@staticmethod
|
|
937
|
+
def activateCouponEncryptedResponse(response: Response, cipher) -> ActivateCouponResponse:
|
|
938
|
+
if response.exception.code:
|
|
939
|
+
raise AstandyRPCException(response.exception)
|
|
940
|
+
|
|
941
|
+
data = response.data[0].one
|
|
942
|
+
data = cipher.decrypt(data)
|
|
943
|
+
msg = ActivateCouponResponse()
|
|
944
|
+
msg.ParseFromString(data)
|
|
945
|
+
|
|
946
|
+
return msg
|
|
947
|
+
|
|
948
|
+
@staticmethod
|
|
949
|
+
def executeRecipeEncrypted2Request(request: ExecuteRecipeRequest, cipher):
|
|
950
|
+
msg = request.SerializeToString()
|
|
951
|
+
msg = cipher.encrypt(msg)
|
|
952
|
+
return 56, msg # Xmm: 0
|
|
953
|
+
|
|
954
|
+
@staticmethod
|
|
955
|
+
def executeRecipeEncrypted2Response(response: Response, cipher) -> ExecuteRecipeEncrypted2Response:
|
|
956
|
+
if response.exception.code:
|
|
957
|
+
raise AstandyRPCException(response.exception)
|
|
958
|
+
|
|
959
|
+
data = response.data[0].one
|
|
960
|
+
data = cipher.decrypt(data)
|
|
961
|
+
msg = ExecuteRecipeEncrypted2Response()
|
|
962
|
+
msg.ParseFromString(data)
|
|
963
|
+
|
|
964
|
+
return msg
|
|
965
|
+
|
|
966
|
+
@staticmethod
|
|
967
|
+
def mountInventoryItemEncryptedRequest(request: MountInventoryItemRequest, cipher):
|
|
968
|
+
msg = request.SerializeToString()
|
|
969
|
+
msg = cipher.encrypt(msg)
|
|
970
|
+
return 58, msg # Xmm: 0
|
|
971
|
+
|
|
972
|
+
@staticmethod
|
|
973
|
+
def mountInventoryItemEncryptedResponse(response: Response, cipher) -> MountInventoryItemResponse:
|
|
974
|
+
if response.exception.code:
|
|
975
|
+
raise AstandyRPCException(response.exception)
|
|
976
|
+
|
|
977
|
+
data = response.data[0].one
|
|
978
|
+
data = cipher.decrypt(data)
|
|
979
|
+
msg = MountInventoryItemResponse()
|
|
980
|
+
msg.ParseFromString(data)
|
|
981
|
+
|
|
982
|
+
return msg
|
|
983
|
+
|
|
984
|
+
@staticmethod
|
|
985
|
+
def unmountInventoryItemEncryptedRequest(request: UnmountInventoryItemRequest, cipher):
|
|
986
|
+
msg = request.SerializeToString()
|
|
987
|
+
msg = cipher.encrypt(msg)
|
|
988
|
+
return 59, msg # Xmm: 0
|
|
989
|
+
|
|
990
|
+
@staticmethod
|
|
991
|
+
def unmountInventoryItemEncryptedResponse(response: Response, cipher) -> UnmountInventoryItemResponse:
|
|
992
|
+
if response.exception.code:
|
|
993
|
+
raise AstandyRPCException(response.exception)
|
|
994
|
+
|
|
995
|
+
data = response.data[0].one
|
|
996
|
+
data = cipher.decrypt(data)
|
|
997
|
+
msg = UnmountInventoryItemResponse()
|
|
998
|
+
msg.ParseFromString(data)
|
|
999
|
+
|
|
1000
|
+
return msg
|
|
1001
|
+
|
|
1002
|
+
@staticmethod
|
|
1003
|
+
def buyInventoryItemEncryptedRequest(request: BuyInventoryItemRequest, cipher):
|
|
1004
|
+
msg = request.SerializeToString()
|
|
1005
|
+
msg = cipher.encrypt(msg)
|
|
1006
|
+
return 57, msg # Xmm: 0
|
|
1007
|
+
|
|
1008
|
+
@staticmethod
|
|
1009
|
+
def buyInventoryItemEncryptedResponse(response: Response, cipher) -> BuyInventoryItemResponse:
|
|
1010
|
+
if response.exception.code:
|
|
1011
|
+
raise AstandyRPCException(response.exception)
|
|
1012
|
+
|
|
1013
|
+
data = response.data[0].one
|
|
1014
|
+
data = cipher.decrypt(data)
|
|
1015
|
+
msg = BuyInventoryItemResponse()
|
|
1016
|
+
msg.ParseFromString(data)
|
|
1017
|
+
|
|
1018
|
+
return msg
|
|
1019
|
+
|
|
1020
|
+
@staticmethod
|
|
1021
|
+
def getPlayerInventoryEncryptedRequest(request: GetPlayerInventoryRequest, cipher):
|
|
1022
|
+
msg = request.SerializeToString()
|
|
1023
|
+
msg = cipher.encrypt(msg)
|
|
1024
|
+
return 53, msg # Xmm: 0
|
|
1025
|
+
|
|
1026
|
+
@staticmethod
|
|
1027
|
+
def getPlayerInventoryEncryptedResponse(response: Response, cipher) -> GetPlayerInventoryResponse:
|
|
1028
|
+
if response.exception.code:
|
|
1029
|
+
raise AstandyRPCException(response.exception)
|
|
1030
|
+
|
|
1031
|
+
data = response.data[0].one
|
|
1032
|
+
data = cipher.decrypt(data)
|
|
1033
|
+
msg = GetPlayerInventoryResponse()
|
|
1034
|
+
msg.ParseFromString(data)
|
|
1035
|
+
|
|
1036
|
+
return msg
|
|
1037
|
+
|
|
1038
|
+
@staticmethod
|
|
1039
|
+
def getInventoryItemPropertyDefinitionsEncryptedRequest(request: GetInventoryItemPropertyDefinitionsRequest, cipher):
|
|
1040
|
+
msg = request.SerializeToString()
|
|
1041
|
+
msg = cipher.encrypt(msg)
|
|
1042
|
+
return 55, msg # Xmm: 0
|
|
1043
|
+
|
|
1044
|
+
@staticmethod
|
|
1045
|
+
def getInventoryItemPropertyDefinitionsEncryptedResponse(response: Response, cipher) -> GetInventoryItemPropertyDefinitionsResponse:
|
|
1046
|
+
if response.exception.code:
|
|
1047
|
+
raise AstandyRPCException(response.exception)
|
|
1048
|
+
|
|
1049
|
+
data = response.data[0].one
|
|
1050
|
+
data = cipher.decrypt(data)
|
|
1051
|
+
msg = GetInventoryItemPropertyDefinitionsResponse()
|
|
1052
|
+
msg.ParseFromString(data)
|
|
1053
|
+
|
|
1054
|
+
return msg
|
|
1055
|
+
|
|
1056
|
+
@staticmethod
|
|
1057
|
+
def getInventoryItemDefinitionsEncryptedRequest(request: GetInventoryItemDefinitionsRequest, cipher):
|
|
1058
|
+
msg = request.SerializeToString()
|
|
1059
|
+
msg = cipher.encrypt(msg)
|
|
1060
|
+
return 54, msg # Xmm: 0
|
|
1061
|
+
|
|
1062
|
+
@staticmethod
|
|
1063
|
+
def getInventoryItemDefinitionsEncryptedResponse(response: Response, cipher) -> GetInventoryItemDefinitionsResponse:
|
|
1064
|
+
if response.exception.code:
|
|
1065
|
+
raise AstandyRPCException(response.exception)
|
|
1066
|
+
|
|
1067
|
+
data = response.data[0].one
|
|
1068
|
+
data = cipher.decrypt(data)
|
|
1069
|
+
msg = GetInventoryItemDefinitionsResponse()
|
|
1070
|
+
msg.ParseFromString(data)
|
|
1071
|
+
|
|
1072
|
+
return msg
|
|
1073
|
+
|
|
1074
|
+
class BoltIdAuthRemoteService:
|
|
1075
|
+
@staticmethod
|
|
1076
|
+
def unLinkAuthRequest(request: BoltIdUnLinkAuthRequest):
|
|
1077
|
+
msg = request.SerializeToString()
|
|
1078
|
+
|
|
1079
|
+
return 417, msg # Xmm: 0
|
|
1080
|
+
|
|
1081
|
+
@staticmethod
|
|
1082
|
+
def unLinkAuthResponse(response: Response) -> BoltIdUnLinkAuthResponse:
|
|
1083
|
+
if response.exception.code:
|
|
1084
|
+
raise AstandyRPCException(response.exception)
|
|
1085
|
+
|
|
1086
|
+
data = response.data[0].one
|
|
1087
|
+
|
|
1088
|
+
msg = BoltIdUnLinkAuthResponse()
|
|
1089
|
+
msg.ParseFromString(data)
|
|
1090
|
+
|
|
1091
|
+
return msg
|
|
1092
|
+
|
|
1093
|
+
@staticmethod
|
|
1094
|
+
def linkAuthRequest(request: BoltIdLinkAuthRequest, cipher):
|
|
1095
|
+
msg = request.SerializeToString()
|
|
1096
|
+
msg = cipher.encrypt(msg)
|
|
1097
|
+
return 416, msg # Xmm: 0
|
|
1098
|
+
|
|
1099
|
+
@staticmethod
|
|
1100
|
+
def linkAuthResponse(response: Response, cipher) -> BoltIdLinkAuthResponse:
|
|
1101
|
+
if response.exception.code:
|
|
1102
|
+
raise AstandyRPCException(response.exception)
|
|
1103
|
+
|
|
1104
|
+
data = response.data[0].one
|
|
1105
|
+
data = cipher.decrypt(data)
|
|
1106
|
+
msg = BoltIdLinkAuthResponse()
|
|
1107
|
+
msg.ParseFromString(data)
|
|
1108
|
+
|
|
1109
|
+
return msg
|
|
1110
|
+
|
|
1111
|
+
@staticmethod
|
|
1112
|
+
def encryptedAuth2Request(request: BoltIdAuthRequest, cipher):
|
|
1113
|
+
msg = request.SerializeToString()
|
|
1114
|
+
msg = cipher.encrypt(msg)
|
|
1115
|
+
return 415, msg # Xmm: 0
|
|
1116
|
+
|
|
1117
|
+
@staticmethod
|
|
1118
|
+
def encryptedAuth2Response(response: Response, cipher) -> BoltIdAuthResponse:
|
|
1119
|
+
if response.exception.code:
|
|
1120
|
+
raise AstandyRPCException(response.exception)
|
|
1121
|
+
|
|
1122
|
+
data = response.data[0].one
|
|
1123
|
+
data = cipher.decrypt(data)
|
|
1124
|
+
msg = BoltIdAuthResponse()
|
|
1125
|
+
msg.ParseFromString(data)
|
|
1126
|
+
|
|
1127
|
+
return msg
|
|
1128
|
+
|
|
1129
|
+
class TestAuthRemoteService:
|
|
1130
|
+
@staticmethod
|
|
1131
|
+
def encryptedAuth2Request(request: TestAuthRequest, cipher):
|
|
1132
|
+
msg = request.SerializeToString()
|
|
1133
|
+
msg = cipher.encrypt(msg)
|
|
1134
|
+
return 410, msg # Xmm: 0
|
|
1135
|
+
|
|
1136
|
+
@staticmethod
|
|
1137
|
+
def encryptedAuth2Response(response: Response, cipher) -> TestAuthResponse:
|
|
1138
|
+
if response.exception.code:
|
|
1139
|
+
raise AstandyRPCException(response.exception)
|
|
1140
|
+
|
|
1141
|
+
data = response.data[0].one
|
|
1142
|
+
data = cipher.decrypt(data)
|
|
1143
|
+
msg = TestAuthResponse()
|
|
1144
|
+
msg.ParseFromString(data)
|
|
1145
|
+
|
|
1146
|
+
return msg
|
|
1147
|
+
|
|
1148
|
+
class AppStoreInAppRemoteService:
|
|
1149
|
+
@staticmethod
|
|
1150
|
+
def buyInApp2Request(request: AppStoreBuyInappRequest):
|
|
1151
|
+
msg = request.SerializeToString()
|
|
1152
|
+
|
|
1153
|
+
return 400, msg # Xmm: 0
|
|
1154
|
+
|
|
1155
|
+
@staticmethod
|
|
1156
|
+
def buyInApp2Response(response: Response) -> AppStoreBuyInappResponse:
|
|
1157
|
+
if response.exception.code:
|
|
1158
|
+
raise AstandyRPCException(response.exception)
|
|
1159
|
+
|
|
1160
|
+
data = response.data[0].one
|
|
1161
|
+
|
|
1162
|
+
msg = AppStoreBuyInappResponse()
|
|
1163
|
+
msg.ParseFromString(data)
|
|
1164
|
+
|
|
1165
|
+
return msg
|
|
1166
|
+
|
|
1167
|
+
class GameSettingsRemoteService:
|
|
1168
|
+
@staticmethod
|
|
1169
|
+
def getGameSettingsEncrypted2Request(request: GetGameSettingsEncryptedRequest, cipher):
|
|
1170
|
+
msg = request.SerializeToString()
|
|
1171
|
+
msg = cipher.encrypt(msg)
|
|
1172
|
+
return 285, msg # Xmm: 0
|
|
1173
|
+
|
|
1174
|
+
@staticmethod
|
|
1175
|
+
def getGameSettingsEncrypted2Response(response: Response, cipher) -> GetGameSettingsEncryptedResponse:
|
|
1176
|
+
if response.exception.code:
|
|
1177
|
+
raise AstandyRPCException(response.exception)
|
|
1178
|
+
|
|
1179
|
+
data = response.data[0].one
|
|
1180
|
+
data = cipher.decrypt(data)
|
|
1181
|
+
msg = GetGameSettingsEncryptedResponse()
|
|
1182
|
+
msg.ParseFromString(data)
|
|
1183
|
+
|
|
1184
|
+
return msg
|
|
1185
|
+
|
|
1186
|
+
class IdTokenRemoteService:
|
|
1187
|
+
@staticmethod
|
|
1188
|
+
def getIdTokenRequest(request: GetIdTokenRequest):
|
|
1189
|
+
msg = request.SerializeToString()
|
|
1190
|
+
|
|
1191
|
+
return 385, msg # Xmm: 0
|
|
1192
|
+
|
|
1193
|
+
@staticmethod
|
|
1194
|
+
def getIdTokenResponse(response: Response) -> GetIdTokenResponse:
|
|
1195
|
+
if response.exception.code:
|
|
1196
|
+
raise AstandyRPCException(response.exception)
|
|
1197
|
+
|
|
1198
|
+
data = response.data[0].one
|
|
1199
|
+
|
|
1200
|
+
msg = GetIdTokenResponse()
|
|
1201
|
+
msg.ParseFromString(data)
|
|
1202
|
+
|
|
1203
|
+
return msg
|
|
1204
|
+
|
|
1205
|
+
class AppGalleryInAppRemoteService:
|
|
1206
|
+
@staticmethod
|
|
1207
|
+
def buyInAppRequest(request: AppGalleryBuyInappRequest):
|
|
1208
|
+
msg = request.SerializeToString()
|
|
1209
|
+
|
|
1210
|
+
return 395, msg # Xmm: 0
|
|
1211
|
+
|
|
1212
|
+
@staticmethod
|
|
1213
|
+
def buyInAppResponse(response: Response) -> AppGalleryBuyInappResponse:
|
|
1214
|
+
if response.exception.code:
|
|
1215
|
+
raise AstandyRPCException(response.exception)
|
|
1216
|
+
|
|
1217
|
+
data = response.data[0].one
|
|
1218
|
+
|
|
1219
|
+
msg = AppGalleryBuyInappResponse()
|
|
1220
|
+
msg.ParseFromString(data)
|
|
1221
|
+
|
|
1222
|
+
return msg
|
|
1223
|
+
|
|
1224
|
+
class GoogleInAppRemoteService:
|
|
1225
|
+
@staticmethod
|
|
1226
|
+
def buyInApp2Request(request: GoogleBuyInappRequest):
|
|
1227
|
+
msg = request.SerializeToString()
|
|
1228
|
+
|
|
1229
|
+
return 390, msg # Xmm: 0
|
|
1230
|
+
|
|
1231
|
+
@staticmethod
|
|
1232
|
+
def buyInApp2Response(response: Response) -> GoogleBuyInappResponse:
|
|
1233
|
+
if response.exception.code:
|
|
1234
|
+
raise AstandyRPCException(response.exception)
|
|
1235
|
+
|
|
1236
|
+
data = response.data[0].one
|
|
1237
|
+
|
|
1238
|
+
msg = GoogleBuyInappResponse()
|
|
1239
|
+
msg.ParseFromString(data)
|
|
1240
|
+
|
|
1241
|
+
return msg
|
|
1242
|
+
|
|
1243
|
+
class GameCenterAuthRemoteService:
|
|
1244
|
+
@staticmethod
|
|
1245
|
+
def linkAuthRequest(request: GameCenterLinkAuthRequest, cipher):
|
|
1246
|
+
msg = request.SerializeToString()
|
|
1247
|
+
msg = cipher.encrypt(msg)
|
|
1248
|
+
return 356, msg # Xmm: 0
|
|
1249
|
+
|
|
1250
|
+
@staticmethod
|
|
1251
|
+
def linkAuthResponse(response: Response, cipher) -> GameCenterLinkAuthResponse:
|
|
1252
|
+
if response.exception.code:
|
|
1253
|
+
raise AstandyRPCException(response.exception)
|
|
1254
|
+
|
|
1255
|
+
data = response.data[0].one
|
|
1256
|
+
data = cipher.decrypt(data)
|
|
1257
|
+
msg = GameCenterLinkAuthResponse()
|
|
1258
|
+
msg.ParseFromString(data)
|
|
1259
|
+
|
|
1260
|
+
return msg
|
|
1261
|
+
|
|
1262
|
+
@staticmethod
|
|
1263
|
+
def unLinkAuthRequest(request: GameCenterUnLinkAuthRequest):
|
|
1264
|
+
msg = request.SerializeToString()
|
|
1265
|
+
|
|
1266
|
+
return 357, msg # Xmm: 0
|
|
1267
|
+
|
|
1268
|
+
@staticmethod
|
|
1269
|
+
def unLinkAuthResponse(response: Response) -> GameCenterUnLinkAuthResponse:
|
|
1270
|
+
if response.exception.code:
|
|
1271
|
+
raise AstandyRPCException(response.exception)
|
|
1272
|
+
|
|
1273
|
+
data = response.data[0].one
|
|
1274
|
+
|
|
1275
|
+
msg = GameCenterUnLinkAuthResponse()
|
|
1276
|
+
msg.ParseFromString(data)
|
|
1277
|
+
|
|
1278
|
+
return msg
|
|
1279
|
+
|
|
1280
|
+
@staticmethod
|
|
1281
|
+
def encryptedAuth2Request(request: GameCenterAuthRequest, cipher):
|
|
1282
|
+
msg = request.SerializeToString()
|
|
1283
|
+
msg = cipher.encrypt(msg)
|
|
1284
|
+
return 355, msg # Xmm: 0
|
|
1285
|
+
|
|
1286
|
+
@staticmethod
|
|
1287
|
+
def encryptedAuth2Response(response: Response, cipher) -> GameCenterAuthResponse:
|
|
1288
|
+
if response.exception.code:
|
|
1289
|
+
raise AstandyRPCException(response.exception)
|
|
1290
|
+
|
|
1291
|
+
data = response.data[0].one
|
|
1292
|
+
data = cipher.decrypt(data)
|
|
1293
|
+
msg = GameCenterAuthResponse()
|
|
1294
|
+
msg.ParseFromString(data)
|
|
1295
|
+
|
|
1296
|
+
return msg
|
|
1297
|
+
|
|
1298
|
+
class OffersRemoteService:
|
|
1299
|
+
@staticmethod
|
|
1300
|
+
def getSpecialOffersRequest(request: GetSpecialOffersRequest):
|
|
1301
|
+
msg = request.SerializeToString()
|
|
1302
|
+
|
|
1303
|
+
return 300, msg # Xmm: 0
|
|
1304
|
+
|
|
1305
|
+
@staticmethod
|
|
1306
|
+
def getSpecialOffersResponse(response: Response) -> GetSpecialOffersResponse:
|
|
1307
|
+
if response.exception.code:
|
|
1308
|
+
raise AstandyRPCException(response.exception)
|
|
1309
|
+
|
|
1310
|
+
data = response.data[0].one
|
|
1311
|
+
|
|
1312
|
+
msg = GetSpecialOffersResponse()
|
|
1313
|
+
msg.ParseFromString(data)
|
|
1314
|
+
|
|
1315
|
+
return msg
|
|
1316
|
+
|
|
1317
|
+
class FacebookAuthRemoteService:
|
|
1318
|
+
@staticmethod
|
|
1319
|
+
def encryptedAuth2Request(request: FacebookAuthRequest, cipher):
|
|
1320
|
+
msg = request.SerializeToString()
|
|
1321
|
+
msg = cipher.encrypt(msg)
|
|
1322
|
+
return 375, msg # Xmm: 0
|
|
1323
|
+
|
|
1324
|
+
@staticmethod
|
|
1325
|
+
def encryptedAuth2Response(response: Response, cipher) -> FacebookAuthResponse:
|
|
1326
|
+
if response.exception.code:
|
|
1327
|
+
raise AstandyRPCException(response.exception)
|
|
1328
|
+
|
|
1329
|
+
data = response.data[0].one
|
|
1330
|
+
data = cipher.decrypt(data)
|
|
1331
|
+
msg = FacebookAuthResponse()
|
|
1332
|
+
msg.ParseFromString(data)
|
|
1333
|
+
|
|
1334
|
+
return msg
|
|
1335
|
+
|
|
1336
|
+
@staticmethod
|
|
1337
|
+
def unLinkAuthRequest(request: FacebookUnLinkAuthRequest):
|
|
1338
|
+
msg = request.SerializeToString()
|
|
1339
|
+
|
|
1340
|
+
return 377, msg # Xmm: 0
|
|
1341
|
+
|
|
1342
|
+
@staticmethod
|
|
1343
|
+
def unLinkAuthResponse(response: Response) -> FacebookUnLinkAuthResponse:
|
|
1344
|
+
if response.exception.code:
|
|
1345
|
+
raise AstandyRPCException(response.exception)
|
|
1346
|
+
|
|
1347
|
+
data = response.data[0].one
|
|
1348
|
+
|
|
1349
|
+
msg = FacebookUnLinkAuthResponse()
|
|
1350
|
+
msg.ParseFromString(data)
|
|
1351
|
+
|
|
1352
|
+
return msg
|
|
1353
|
+
|
|
1354
|
+
@staticmethod
|
|
1355
|
+
def linkAuthRequest(request: FacebookLinkAuthRequest, cipher):
|
|
1356
|
+
msg = request.SerializeToString()
|
|
1357
|
+
msg = cipher.encrypt(msg)
|
|
1358
|
+
return 376, msg # Xmm: 0
|
|
1359
|
+
|
|
1360
|
+
@staticmethod
|
|
1361
|
+
def linkAuthResponse(response: Response, cipher) -> FacebookLinkAuthResponse:
|
|
1362
|
+
if response.exception.code:
|
|
1363
|
+
raise AstandyRPCException(response.exception)
|
|
1364
|
+
|
|
1365
|
+
data = response.data[0].one
|
|
1366
|
+
data = cipher.decrypt(data)
|
|
1367
|
+
msg = FacebookLinkAuthResponse()
|
|
1368
|
+
msg.ParseFromString(data)
|
|
1369
|
+
|
|
1370
|
+
return msg
|
|
1371
|
+
|
|
1372
|
+
class AccountLinkRemoteService:
|
|
1373
|
+
@staticmethod
|
|
1374
|
+
def getLinkedAuthRequest(request: GetLinkedAuthRequest):
|
|
1375
|
+
msg = request.SerializeToString()
|
|
1376
|
+
|
|
1377
|
+
return 260, msg # Xmm: 0
|
|
1378
|
+
|
|
1379
|
+
@staticmethod
|
|
1380
|
+
def getLinkedAuthResponse(response: Response) -> GetLinkedAuthResponse:
|
|
1381
|
+
if response.exception.code:
|
|
1382
|
+
raise AstandyRPCException(response.exception)
|
|
1383
|
+
|
|
1384
|
+
data = response.data[0].one
|
|
1385
|
+
|
|
1386
|
+
msg = GetLinkedAuthResponse()
|
|
1387
|
+
msg.ParseFromString(data)
|
|
1388
|
+
|
|
1389
|
+
return msg
|
|
1390
|
+
|
|
1391
|
+
class GoogleAuthRemoteService:
|
|
1392
|
+
@staticmethod
|
|
1393
|
+
def encryptedAuth2Request(request: GoogleAuthRequest, cipher):
|
|
1394
|
+
msg = request.SerializeToString()
|
|
1395
|
+
msg = cipher.encrypt(msg)
|
|
1396
|
+
return 315, msg # Xmm: 0
|
|
1397
|
+
|
|
1398
|
+
@staticmethod
|
|
1399
|
+
def encryptedAuth2Response(response: Response, cipher) -> GoogleAuthResponse:
|
|
1400
|
+
if response.exception.code:
|
|
1401
|
+
raise AstandyRPCException(response.exception)
|
|
1402
|
+
|
|
1403
|
+
data = response.data[0].one
|
|
1404
|
+
data = cipher.decrypt(data)
|
|
1405
|
+
msg = GoogleAuthResponse()
|
|
1406
|
+
msg.ParseFromString(data)
|
|
1407
|
+
|
|
1408
|
+
return msg
|
|
1409
|
+
|
|
1410
|
+
@staticmethod
|
|
1411
|
+
def unLinkAuthRequest(request: GoogleUnLinkAuthRequest):
|
|
1412
|
+
msg = request.SerializeToString()
|
|
1413
|
+
|
|
1414
|
+
return 317, msg # Xmm: 0
|
|
1415
|
+
|
|
1416
|
+
@staticmethod
|
|
1417
|
+
def unLinkAuthResponse(response: Response) -> GoogleUnLinkAuthResponse:
|
|
1418
|
+
if response.exception.code:
|
|
1419
|
+
raise AstandyRPCException(response.exception)
|
|
1420
|
+
|
|
1421
|
+
data = response.data[0].one
|
|
1422
|
+
|
|
1423
|
+
msg = GoogleUnLinkAuthResponse()
|
|
1424
|
+
msg.ParseFromString(data)
|
|
1425
|
+
|
|
1426
|
+
return msg
|
|
1427
|
+
|
|
1428
|
+
@staticmethod
|
|
1429
|
+
def linkAuthRequest(request: GoogleLinkAuthRequest, cipher):
|
|
1430
|
+
msg = request.SerializeToString()
|
|
1431
|
+
msg = cipher.encrypt(msg)
|
|
1432
|
+
return 316, msg # Xmm: 0
|
|
1433
|
+
|
|
1434
|
+
@staticmethod
|
|
1435
|
+
def linkAuthResponse(response: Response, cipher) -> GoogleLinkAuthResponse:
|
|
1436
|
+
if response.exception.code:
|
|
1437
|
+
raise AstandyRPCException(response.exception)
|
|
1438
|
+
|
|
1439
|
+
data = response.data[0].one
|
|
1440
|
+
data = cipher.decrypt(data)
|
|
1441
|
+
msg = GoogleLinkAuthResponse()
|
|
1442
|
+
msg.ParseFromString(data)
|
|
1443
|
+
|
|
1444
|
+
return msg
|
|
1445
|
+
|
|
1446
|
+
class SeasonalStatsRemoteService:
|
|
1447
|
+
@staticmethod
|
|
1448
|
+
def getStatsForSeasonRequest(request: GetStatsForSeasonRequest):
|
|
1449
|
+
msg = request.SerializeToString()
|
|
1450
|
+
|
|
1451
|
+
return 326, msg # Xmm: 0
|
|
1452
|
+
|
|
1453
|
+
@staticmethod
|
|
1454
|
+
def getStatsForSeasonResponse(response: Response) -> GetPlayerStatsForSeasonResponse:
|
|
1455
|
+
if response.exception.code:
|
|
1456
|
+
raise AstandyRPCException(response.exception)
|
|
1457
|
+
|
|
1458
|
+
data = response.data[0].one
|
|
1459
|
+
|
|
1460
|
+
msg = GetPlayerStatsForSeasonResponse()
|
|
1461
|
+
msg.ParseFromString(data)
|
|
1462
|
+
|
|
1463
|
+
return msg
|
|
1464
|
+
|
|
1465
|
+
@staticmethod
|
|
1466
|
+
def getClanStatsForSeasonRequest(request: GetClanStatsForSeasonRequest):
|
|
1467
|
+
msg = request.SerializeToString()
|
|
1468
|
+
|
|
1469
|
+
return 328, msg # Xmm: 0
|
|
1470
|
+
|
|
1471
|
+
@staticmethod
|
|
1472
|
+
def getClanStatsForSeasonResponse(response: Response) -> GetClanStatsForSeasonResponse:
|
|
1473
|
+
if response.exception.code:
|
|
1474
|
+
raise AstandyRPCException(response.exception)
|
|
1475
|
+
|
|
1476
|
+
data = response.data[0].one
|
|
1477
|
+
|
|
1478
|
+
msg = GetClanStatsForSeasonResponse()
|
|
1479
|
+
msg.ParseFromString(data)
|
|
1480
|
+
|
|
1481
|
+
return msg
|
|
1482
|
+
|
|
1483
|
+
@staticmethod
|
|
1484
|
+
def getPlayerStatsForSeasonRequest(request: GetPlayerStatsForSeasonRequest):
|
|
1485
|
+
msg = request.SerializeToString()
|
|
1486
|
+
|
|
1487
|
+
return 325, msg # Xmm: 0
|
|
1488
|
+
|
|
1489
|
+
@staticmethod
|
|
1490
|
+
def getPlayerStatsForSeasonResponse(response: Response) -> GetPlayerStatsForSeasonResponse:
|
|
1491
|
+
if response.exception.code:
|
|
1492
|
+
raise AstandyRPCException(response.exception)
|
|
1493
|
+
|
|
1494
|
+
data = response.data[0].one
|
|
1495
|
+
|
|
1496
|
+
msg = GetPlayerStatsForSeasonResponse()
|
|
1497
|
+
msg.ParseFromString(data)
|
|
1498
|
+
|
|
1499
|
+
return msg
|
|
1500
|
+
|
|
1501
|
+
@staticmethod
|
|
1502
|
+
def getCurrentClanStatsForSeasonRequest(request: GetCurrentClanStatsForSeasonRequest):
|
|
1503
|
+
msg = request.SerializeToString()
|
|
1504
|
+
|
|
1505
|
+
return 327, msg # Xmm: 0
|
|
1506
|
+
|
|
1507
|
+
@staticmethod
|
|
1508
|
+
def getCurrentClanStatsForSeasonResponse(response: Response) -> GetCurrentClanStatsForSeasonResponse:
|
|
1509
|
+
if response.exception.code:
|
|
1510
|
+
raise AstandyRPCException(response.exception)
|
|
1511
|
+
|
|
1512
|
+
data = response.data[0].one
|
|
1513
|
+
|
|
1514
|
+
msg = GetCurrentClanStatsForSeasonResponse()
|
|
1515
|
+
msg.ParseFromString(data)
|
|
1516
|
+
|
|
1517
|
+
return msg
|
|
1518
|
+
|
|
1519
|
+
class DlcRemoteService:
|
|
1520
|
+
@staticmethod
|
|
1521
|
+
def getAllReleasedDlcRequest(request: ReleasedDlcRequest):
|
|
1522
|
+
msg = request.SerializeToString()
|
|
1523
|
+
|
|
1524
|
+
return 226, msg # Xmm: 0
|
|
1525
|
+
|
|
1526
|
+
@staticmethod
|
|
1527
|
+
def getAllReleasedDlcResponse(response: Response) -> DlcResponse:
|
|
1528
|
+
if response.exception.code:
|
|
1529
|
+
raise AstandyRPCException(response.exception)
|
|
1530
|
+
|
|
1531
|
+
data = response.data[0].one
|
|
1532
|
+
|
|
1533
|
+
msg = DlcResponse()
|
|
1534
|
+
msg.ParseFromString(data)
|
|
1535
|
+
|
|
1536
|
+
return msg
|
|
1537
|
+
|
|
1538
|
+
@staticmethod
|
|
1539
|
+
def getAllDlcRequest(request: PreviewDlcRequest):
|
|
1540
|
+
msg = request.SerializeToString()
|
|
1541
|
+
|
|
1542
|
+
return 225, msg # Xmm: 0
|
|
1543
|
+
|
|
1544
|
+
@staticmethod
|
|
1545
|
+
def getAllDlcResponse(response: Response) -> DlcResponse:
|
|
1546
|
+
if response.exception.code:
|
|
1547
|
+
raise AstandyRPCException(response.exception)
|
|
1548
|
+
|
|
1549
|
+
data = response.data[0].one
|
|
1550
|
+
|
|
1551
|
+
msg = DlcResponse()
|
|
1552
|
+
msg.ParseFromString(data)
|
|
1553
|
+
|
|
1554
|
+
return msg
|
|
1555
|
+
|
|
1556
|
+
class ClanStatsRemoteService:
|
|
1557
|
+
@staticmethod
|
|
1558
|
+
def getClanStatsRequest(request: GetClanStatsRequest):
|
|
1559
|
+
msg = request.SerializeToString()
|
|
1560
|
+
|
|
1561
|
+
return 241, msg # Xmm: 0
|
|
1562
|
+
|
|
1563
|
+
@staticmethod
|
|
1564
|
+
def getClanStatsResponse(response: Response) -> GetClanStatsResponse:
|
|
1565
|
+
if response.exception.code:
|
|
1566
|
+
raise AstandyRPCException(response.exception)
|
|
1567
|
+
|
|
1568
|
+
data = response.data[0].one
|
|
1569
|
+
|
|
1570
|
+
msg = GetClanStatsResponse()
|
|
1571
|
+
msg.ParseFromString(data)
|
|
1572
|
+
|
|
1573
|
+
return msg
|
|
1574
|
+
|
|
1575
|
+
@staticmethod
|
|
1576
|
+
def getCurrentClanStatsRequest(request: GetCurrentClanStatsRequest):
|
|
1577
|
+
msg = request.SerializeToString()
|
|
1578
|
+
|
|
1579
|
+
return 240, msg # Xmm: 0
|
|
1580
|
+
|
|
1581
|
+
@staticmethod
|
|
1582
|
+
def getCurrentClanStatsResponse(response: Response) -> GetCurrentClanStatsResponse:
|
|
1583
|
+
if response.exception.code:
|
|
1584
|
+
raise AstandyRPCException(response.exception)
|
|
1585
|
+
|
|
1586
|
+
data = response.data[0].one
|
|
1587
|
+
|
|
1588
|
+
msg = GetCurrentClanStatsResponse()
|
|
1589
|
+
msg.ParseFromString(data)
|
|
1590
|
+
|
|
1591
|
+
return msg
|
|
1592
|
+
|
|
1593
|
+
class GameAnnouncementRemoteService:
|
|
1594
|
+
@staticmethod
|
|
1595
|
+
def getAllAnnouncementsRequest(request: GetAllGameAnnouncementsRequest):
|
|
1596
|
+
msg = request.SerializeToString()
|
|
1597
|
+
|
|
1598
|
+
return 280, msg # Xmm: 0
|
|
1599
|
+
|
|
1600
|
+
@staticmethod
|
|
1601
|
+
def getAllAnnouncementsResponse(response: Response) -> GetAllGameAnnouncementsResponse:
|
|
1602
|
+
if response.exception.code:
|
|
1603
|
+
raise AstandyRPCException(response.exception)
|
|
1604
|
+
|
|
1605
|
+
data = response.data[0].one
|
|
1606
|
+
|
|
1607
|
+
msg = GetAllGameAnnouncementsResponse()
|
|
1608
|
+
msg.ParseFromString(data)
|
|
1609
|
+
|
|
1610
|
+
return msg
|
|
1611
|
+
|
|
1612
|
+
class BoltRemoteService:
|
|
1613
|
+
@staticmethod
|
|
1614
|
+
def unsubscribe2Request(request: UnsubscribeRequest):
|
|
1615
|
+
msg = request.SerializeToString()
|
|
1616
|
+
|
|
1617
|
+
return 42, msg # Xmm: 0
|
|
1618
|
+
|
|
1619
|
+
@staticmethod
|
|
1620
|
+
def unsubscribe2Response(response: Response) -> UnsubscribeResponse:
|
|
1621
|
+
if response.exception.code:
|
|
1622
|
+
raise AstandyRPCException(response.exception)
|
|
1623
|
+
|
|
1624
|
+
data = response.data[0].one
|
|
1625
|
+
|
|
1626
|
+
msg = UnsubscribeResponse()
|
|
1627
|
+
msg.ParseFromString(data)
|
|
1628
|
+
|
|
1629
|
+
return msg
|
|
1630
|
+
|
|
1631
|
+
@staticmethod
|
|
1632
|
+
def subscribe2Request(request: SubscribeRequest):
|
|
1633
|
+
msg = request.SerializeToString()
|
|
1634
|
+
|
|
1635
|
+
return 41, msg # Xmm: 0
|
|
1636
|
+
|
|
1637
|
+
@staticmethod
|
|
1638
|
+
def subscribe2Response(response: Response) -> SubscribeResponse:
|
|
1639
|
+
if response.exception.code:
|
|
1640
|
+
raise AstandyRPCException(response.exception)
|
|
1641
|
+
|
|
1642
|
+
data = response.data[0].one
|
|
1643
|
+
|
|
1644
|
+
msg = SubscribeResponse()
|
|
1645
|
+
msg.ParseFromString(data)
|
|
1646
|
+
|
|
1647
|
+
return msg
|
|
1648
|
+
|
|
1649
|
+
class PlayerRemoteService:
|
|
1650
|
+
@staticmethod
|
|
1651
|
+
def setAwayStatus2Request(request: SetAwayStatusRequest):
|
|
1652
|
+
msg = request.SerializeToString()
|
|
1653
|
+
|
|
1654
|
+
return 20, msg # Xmm: 0
|
|
1655
|
+
|
|
1656
|
+
@staticmethod
|
|
1657
|
+
def setAwayStatus2Response(response: Response) -> SetAwayStatusResponse:
|
|
1658
|
+
if response.exception.code:
|
|
1659
|
+
raise AstandyRPCException(response.exception)
|
|
1660
|
+
|
|
1661
|
+
data = response.data[0].one
|
|
1662
|
+
|
|
1663
|
+
msg = SetAwayStatusResponse()
|
|
1664
|
+
msg.ParseFromString(data)
|
|
1665
|
+
|
|
1666
|
+
return msg
|
|
1667
|
+
|
|
1668
|
+
@staticmethod
|
|
1669
|
+
def setPlayerAvatar2Request(request: SetPlayerAvatarRequest):
|
|
1670
|
+
msg = request.SerializeToString()
|
|
1671
|
+
|
|
1672
|
+
return 25, msg # Xmm: 0
|
|
1673
|
+
|
|
1674
|
+
@staticmethod
|
|
1675
|
+
def setPlayerAvatar2Response(response: Response) -> SetPlayerAvatarResponse:
|
|
1676
|
+
if response.exception.code:
|
|
1677
|
+
raise AstandyRPCException(response.exception)
|
|
1678
|
+
|
|
1679
|
+
data = response.data[0].one
|
|
1680
|
+
|
|
1681
|
+
msg = SetPlayerAvatarResponse()
|
|
1682
|
+
msg.ParseFromString(data)
|
|
1683
|
+
|
|
1684
|
+
return msg
|
|
1685
|
+
|
|
1686
|
+
@staticmethod
|
|
1687
|
+
def setPlayerFirebaseToken2Request(request: SetPlayerFirebaseTokenRequest):
|
|
1688
|
+
msg = request.SerializeToString()
|
|
1689
|
+
|
|
1690
|
+
return 24, msg # Xmm: 0
|
|
1691
|
+
|
|
1692
|
+
@staticmethod
|
|
1693
|
+
def setPlayerFirebaseToken2Response(response: Response) -> SetPlayerFirebaseTokenResponse:
|
|
1694
|
+
if response.exception.code:
|
|
1695
|
+
raise AstandyRPCException(response.exception)
|
|
1696
|
+
|
|
1697
|
+
data = response.data[0].one
|
|
1698
|
+
|
|
1699
|
+
msg = SetPlayerFirebaseTokenResponse()
|
|
1700
|
+
msg.ParseFromString(data)
|
|
1701
|
+
|
|
1702
|
+
return msg
|
|
1703
|
+
|
|
1704
|
+
@staticmethod
|
|
1705
|
+
def getPlayerSettings2Request(request: GetPlayerSettingsRequest):
|
|
1706
|
+
msg = request.SerializeToString()
|
|
1707
|
+
|
|
1708
|
+
return 22, msg # Xmm: 0
|
|
1709
|
+
|
|
1710
|
+
@staticmethod
|
|
1711
|
+
def getPlayerSettings2Response(response: Response) -> GetPlayerSettingsResponse:
|
|
1712
|
+
if response.exception.code:
|
|
1713
|
+
raise AstandyRPCException(response.exception)
|
|
1714
|
+
|
|
1715
|
+
data = response.data[0].one
|
|
1716
|
+
|
|
1717
|
+
msg = GetPlayerSettingsResponse()
|
|
1718
|
+
msg.ParseFromString(data)
|
|
1719
|
+
|
|
1720
|
+
return msg
|
|
1721
|
+
|
|
1722
|
+
@staticmethod
|
|
1723
|
+
def setPlayerSettings2Request(request: SetPlayerSettingsRequest):
|
|
1724
|
+
msg = request.SerializeToString()
|
|
1725
|
+
|
|
1726
|
+
return 27, msg # Xmm: 0
|
|
1727
|
+
|
|
1728
|
+
@staticmethod
|
|
1729
|
+
def setPlayerSettings2Response(response: Response) -> SetPlayerSettingsResponse:
|
|
1730
|
+
if response.exception.code:
|
|
1731
|
+
raise AstandyRPCException(response.exception)
|
|
1732
|
+
|
|
1733
|
+
data = response.data[0].one
|
|
1734
|
+
|
|
1735
|
+
msg = SetPlayerSettingsResponse()
|
|
1736
|
+
msg.ParseFromString(data)
|
|
1737
|
+
|
|
1738
|
+
return msg
|
|
1739
|
+
|
|
1740
|
+
@staticmethod
|
|
1741
|
+
def setOnlineStatus2Request(request: SetOnlineStatusRequest):
|
|
1742
|
+
msg = request.SerializeToString()
|
|
1743
|
+
|
|
1744
|
+
return 21, msg # Xmm: 0
|
|
1745
|
+
|
|
1746
|
+
@staticmethod
|
|
1747
|
+
def setOnlineStatus2Response(response: Response) -> SetOnlineStatusResponse:
|
|
1748
|
+
if response.exception.code:
|
|
1749
|
+
raise AstandyRPCException(response.exception)
|
|
1750
|
+
|
|
1751
|
+
data = response.data[0].one
|
|
1752
|
+
|
|
1753
|
+
msg = SetOnlineStatusResponse()
|
|
1754
|
+
msg.ParseFromString(data)
|
|
1755
|
+
|
|
1756
|
+
return msg
|
|
1757
|
+
|
|
1758
|
+
@staticmethod
|
|
1759
|
+
def setDefaultAvatarRequest(request: SetDefaultAvatarRequest):
|
|
1760
|
+
msg = request.SerializeToString()
|
|
1761
|
+
|
|
1762
|
+
return 28, msg # Xmm: 0
|
|
1763
|
+
|
|
1764
|
+
@staticmethod
|
|
1765
|
+
def setDefaultAvatarResponse(response: Response) -> SetDefaultAvatarResponse:
|
|
1766
|
+
if response.exception.code:
|
|
1767
|
+
raise AstandyRPCException(response.exception)
|
|
1768
|
+
|
|
1769
|
+
data = response.data[0].one
|
|
1770
|
+
|
|
1771
|
+
msg = SetDefaultAvatarResponse()
|
|
1772
|
+
msg.ParseFromString(data)
|
|
1773
|
+
|
|
1774
|
+
return msg
|
|
1775
|
+
|
|
1776
|
+
@staticmethod
|
|
1777
|
+
def setPlayerName2Request(request: SetPlayerNameRequest):
|
|
1778
|
+
msg = request.SerializeToString()
|
|
1779
|
+
|
|
1780
|
+
return 26, msg # Xmm: 0
|
|
1781
|
+
|
|
1782
|
+
@staticmethod
|
|
1783
|
+
def setPlayerName2Response(response: Response) -> SetPlayerNameResponse:
|
|
1784
|
+
if response.exception.code:
|
|
1785
|
+
raise AstandyRPCException(response.exception)
|
|
1786
|
+
|
|
1787
|
+
data = response.data[0].one
|
|
1788
|
+
|
|
1789
|
+
msg = SetPlayerNameResponse()
|
|
1790
|
+
msg.ParseFromString(data)
|
|
1791
|
+
|
|
1792
|
+
return msg
|
|
1793
|
+
|
|
1794
|
+
@staticmethod
|
|
1795
|
+
def getPlayer2Request(request: GetPlayerRequest):
|
|
1796
|
+
msg = request.SerializeToString()
|
|
1797
|
+
|
|
1798
|
+
return 23, msg # Xmm: 0
|
|
1799
|
+
|
|
1800
|
+
@staticmethod
|
|
1801
|
+
def getPlayer2Response(response: Response) -> GetPlayerResponse:
|
|
1802
|
+
if response.exception.code:
|
|
1803
|
+
raise AstandyRPCException(response.exception)
|
|
1804
|
+
|
|
1805
|
+
data = response.data[0].one
|
|
1806
|
+
|
|
1807
|
+
msg = GetPlayerResponse()
|
|
1808
|
+
msg.ParseFromString(data)
|
|
1809
|
+
|
|
1810
|
+
return msg
|
|
1811
|
+
|
|
1812
|
+
class RateGameRemoteService:
|
|
1813
|
+
@staticmethod
|
|
1814
|
+
def getLastRateGameRequest(request: GetLastRateGameRequest):
|
|
1815
|
+
msg = request.SerializeToString()
|
|
1816
|
+
|
|
1817
|
+
return 250, msg # Xmm: 0
|
|
1818
|
+
|
|
1819
|
+
@staticmethod
|
|
1820
|
+
def getLastRateGameResponse(response: Response) -> GetLastRateGameResponse:
|
|
1821
|
+
if response.exception.code:
|
|
1822
|
+
raise AstandyRPCException(response.exception)
|
|
1823
|
+
|
|
1824
|
+
data = response.data[0].one
|
|
1825
|
+
|
|
1826
|
+
msg = GetLastRateGameResponse()
|
|
1827
|
+
msg.ParseFromString(data)
|
|
1828
|
+
|
|
1829
|
+
return msg
|
|
1830
|
+
|
|
1831
|
+
@staticmethod
|
|
1832
|
+
def askLaterRequest(request: AskLaterRequest):
|
|
1833
|
+
msg = request.SerializeToString()
|
|
1834
|
+
|
|
1835
|
+
return 251, msg # Xmm: 0
|
|
1836
|
+
|
|
1837
|
+
@staticmethod
|
|
1838
|
+
def askLaterResponse(response: Response) -> AskLaterResponse:
|
|
1839
|
+
if response.exception.code:
|
|
1840
|
+
raise AstandyRPCException(response.exception)
|
|
1841
|
+
|
|
1842
|
+
data = response.data[0].one
|
|
1843
|
+
|
|
1844
|
+
msg = AskLaterResponse()
|
|
1845
|
+
msg.ParseFromString(data)
|
|
1846
|
+
|
|
1847
|
+
return msg
|
|
1848
|
+
|
|
1849
|
+
@staticmethod
|
|
1850
|
+
def dontAskLaterRequest(request: DontAskLaterRequest):
|
|
1851
|
+
msg = request.SerializeToString()
|
|
1852
|
+
|
|
1853
|
+
return 253, msg # Xmm: 0
|
|
1854
|
+
|
|
1855
|
+
@staticmethod
|
|
1856
|
+
def dontAskLaterResponse(response: Response) -> DontAskLaterResponse:
|
|
1857
|
+
if response.exception.code:
|
|
1858
|
+
raise AstandyRPCException(response.exception)
|
|
1859
|
+
|
|
1860
|
+
data = response.data[0].one
|
|
1861
|
+
|
|
1862
|
+
msg = DontAskLaterResponse()
|
|
1863
|
+
msg.ParseFromString(data)
|
|
1864
|
+
|
|
1865
|
+
return msg
|
|
1866
|
+
|
|
1867
|
+
@staticmethod
|
|
1868
|
+
def rateGameRequest(request: RateGameRequest):
|
|
1869
|
+
msg = request.SerializeToString()
|
|
1870
|
+
|
|
1871
|
+
return 252, msg # Xmm: 0
|
|
1872
|
+
|
|
1873
|
+
@staticmethod
|
|
1874
|
+
def rateGameResponse(response: Response) -> RateGameResponse:
|
|
1875
|
+
if response.exception.code:
|
|
1876
|
+
raise AstandyRPCException(response.exception)
|
|
1877
|
+
|
|
1878
|
+
data = response.data[0].one
|
|
1879
|
+
|
|
1880
|
+
msg = RateGameResponse()
|
|
1881
|
+
msg.ParseFromString(data)
|
|
1882
|
+
|
|
1883
|
+
return msg
|
|
1884
|
+
|
|
1885
|
+
class AvatarRemoteService:
|
|
1886
|
+
@staticmethod
|
|
1887
|
+
def getDefaultAvatarsRequest(request: GetDefaultAvatarsRequest):
|
|
1888
|
+
msg = request.SerializeToString()
|
|
1889
|
+
|
|
1890
|
+
return 275, msg # Xmm: 0
|
|
1891
|
+
|
|
1892
|
+
@staticmethod
|
|
1893
|
+
def getDefaultAvatarsResponse(response: Response) -> GetDefaultAvatarsResponse:
|
|
1894
|
+
if response.exception.code:
|
|
1895
|
+
raise AstandyRPCException(response.exception)
|
|
1896
|
+
|
|
1897
|
+
data = response.data[0].one
|
|
1898
|
+
|
|
1899
|
+
msg = GetDefaultAvatarsResponse()
|
|
1900
|
+
msg.ParseFromString(data)
|
|
1901
|
+
|
|
1902
|
+
return msg
|
|
1903
|
+
|
|
1904
|
+
class ChatRemoteService:
|
|
1905
|
+
@staticmethod
|
|
1906
|
+
def readFriendMsgs2Request(request: ReadFriendMsgsRequest):
|
|
1907
|
+
msg = request.SerializeToString()
|
|
1908
|
+
|
|
1909
|
+
return 193, msg # Xmm: 0
|
|
1910
|
+
|
|
1911
|
+
@staticmethod
|
|
1912
|
+
def readFriendMsgs2Response(response: Response) -> ReadFriendMsgsResponse:
|
|
1913
|
+
if response.exception.code:
|
|
1914
|
+
raise AstandyRPCException(response.exception)
|
|
1915
|
+
|
|
1916
|
+
data = response.data[0].one
|
|
1917
|
+
|
|
1918
|
+
msg = ReadFriendMsgsResponse()
|
|
1919
|
+
msg.ParseFromString(data)
|
|
1920
|
+
|
|
1921
|
+
return msg
|
|
1922
|
+
|
|
1923
|
+
@staticmethod
|
|
1924
|
+
def deleteFriendMsgs2Request(request: DeleteFriendMsgsRequest):
|
|
1925
|
+
msg = request.SerializeToString()
|
|
1926
|
+
|
|
1927
|
+
return 195, msg # Xmm: 0
|
|
1928
|
+
|
|
1929
|
+
@staticmethod
|
|
1930
|
+
def deleteFriendMsgs2Response(response: Response) -> DeleteFriendMsgsResponse:
|
|
1931
|
+
if response.exception.code:
|
|
1932
|
+
raise AstandyRPCException(response.exception)
|
|
1933
|
+
|
|
1934
|
+
data = response.data[0].one
|
|
1935
|
+
|
|
1936
|
+
msg = DeleteFriendMsgsResponse()
|
|
1937
|
+
msg.ParseFromString(data)
|
|
1938
|
+
|
|
1939
|
+
return msg
|
|
1940
|
+
|
|
1941
|
+
@staticmethod
|
|
1942
|
+
def sendFriendMsg2Request(request: SendFriendMsgRequest):
|
|
1943
|
+
msg = request.SerializeToString()
|
|
1944
|
+
|
|
1945
|
+
return 192, msg # Xmm: 0
|
|
1946
|
+
|
|
1947
|
+
@staticmethod
|
|
1948
|
+
def sendFriendMsg2Response(response: Response) -> SendFriendMsgResponse:
|
|
1949
|
+
if response.exception.code:
|
|
1950
|
+
raise AstandyRPCException(response.exception)
|
|
1951
|
+
|
|
1952
|
+
data = response.data[0].one
|
|
1953
|
+
|
|
1954
|
+
msg = SendFriendMsgResponse()
|
|
1955
|
+
msg.ParseFromString(data)
|
|
1956
|
+
|
|
1957
|
+
return msg
|
|
1958
|
+
|
|
1959
|
+
@staticmethod
|
|
1960
|
+
def getChatUserRequest(request: GetChatUserRequest):
|
|
1961
|
+
msg = request.SerializeToString()
|
|
1962
|
+
|
|
1963
|
+
return 194, msg # Xmm: 0
|
|
1964
|
+
|
|
1965
|
+
@staticmethod
|
|
1966
|
+
def getChatUserResponse(response: Response) -> GetChatUserResponse:
|
|
1967
|
+
if response.exception.code:
|
|
1968
|
+
raise AstandyRPCException(response.exception)
|
|
1969
|
+
|
|
1970
|
+
data = response.data[0].one
|
|
1971
|
+
|
|
1972
|
+
msg = GetChatUserResponse()
|
|
1973
|
+
msg.ParseFromString(data)
|
|
1974
|
+
|
|
1975
|
+
return msg
|
|
1976
|
+
|
|
1977
|
+
@staticmethod
|
|
1978
|
+
def getChatUsersLiteRequest(request: GetChatUsersLiteRequest):
|
|
1979
|
+
msg = request.SerializeToString()
|
|
1980
|
+
|
|
1981
|
+
return 190, msg # Xmm: 0
|
|
1982
|
+
|
|
1983
|
+
@staticmethod
|
|
1984
|
+
def getChatUsersLiteResponse(response: Response) -> GetChatUsersLiteResponse:
|
|
1985
|
+
if response.exception.code:
|
|
1986
|
+
raise AstandyRPCException(response.exception)
|
|
1987
|
+
|
|
1988
|
+
data = response.data[0].one
|
|
1989
|
+
|
|
1990
|
+
msg = GetChatUsersLiteResponse()
|
|
1991
|
+
msg.ParseFromString(data)
|
|
1992
|
+
|
|
1993
|
+
return msg
|
|
1994
|
+
|
|
1995
|
+
@staticmethod
|
|
1996
|
+
def getFriendMsgsByOffset2Request(request: GetFriendMsgsByOffsetRequest):
|
|
1997
|
+
msg = request.SerializeToString()
|
|
1998
|
+
|
|
1999
|
+
return 191, msg # Xmm: 0
|
|
2000
|
+
|
|
2001
|
+
@staticmethod
|
|
2002
|
+
def getFriendMsgsByOffset2Response(response: Response) -> GetFriendMsgsByOffsetResponse:
|
|
2003
|
+
if response.exception.code:
|
|
2004
|
+
raise AstandyRPCException(response.exception)
|
|
2005
|
+
|
|
2006
|
+
data = response.data[0].one
|
|
2007
|
+
|
|
2008
|
+
msg = GetFriendMsgsByOffsetResponse()
|
|
2009
|
+
msg.ParseFromString(data)
|
|
2010
|
+
|
|
2011
|
+
return msg
|
|
2012
|
+
|
|
2013
|
+
class MatchmakingRemoteService:
|
|
2014
|
+
@staticmethod
|
|
2015
|
+
def setLobbyData2Request(request: SetLobbyDataRequest):
|
|
2016
|
+
msg = request.SerializeToString()
|
|
2017
|
+
|
|
2018
|
+
return 70, msg # Xmm: 0
|
|
2019
|
+
|
|
2020
|
+
@staticmethod
|
|
2021
|
+
def setLobbyData2Response(response: Response) -> SetLobbyDataResponse:
|
|
2022
|
+
if response.exception.code:
|
|
2023
|
+
raise AstandyRPCException(response.exception)
|
|
2024
|
+
|
|
2025
|
+
data = response.data[0].one
|
|
2026
|
+
|
|
2027
|
+
msg = SetLobbyDataResponse()
|
|
2028
|
+
msg.ParseFromString(data)
|
|
2029
|
+
|
|
2030
|
+
return msg
|
|
2031
|
+
|
|
2032
|
+
@staticmethod
|
|
2033
|
+
def setLobbyOwner2Request(request: SetLobbyOwnerRequest):
|
|
2034
|
+
msg = request.SerializeToString()
|
|
2035
|
+
|
|
2036
|
+
return 88, msg # Xmm: 0
|
|
2037
|
+
|
|
2038
|
+
@staticmethod
|
|
2039
|
+
def setLobbyOwner2Response(response: Response) -> SetLobbyOwnerResponse:
|
|
2040
|
+
if response.exception.code:
|
|
2041
|
+
raise AstandyRPCException(response.exception)
|
|
2042
|
+
|
|
2043
|
+
data = response.data[0].one
|
|
2044
|
+
|
|
2045
|
+
msg = SetLobbyOwnerResponse()
|
|
2046
|
+
msg.ParseFromString(data)
|
|
2047
|
+
|
|
2048
|
+
return msg
|
|
2049
|
+
|
|
2050
|
+
@staticmethod
|
|
2051
|
+
def joinLobbyAs2Request(request: JoinLobbyAsRequest):
|
|
2052
|
+
msg = request.SerializeToString()
|
|
2053
|
+
|
|
2054
|
+
return 76, msg # Xmm: 0
|
|
2055
|
+
|
|
2056
|
+
@staticmethod
|
|
2057
|
+
def joinLobbyAs2Response(response: Response) -> JoinLobbyAsResponse:
|
|
2058
|
+
if response.exception.code:
|
|
2059
|
+
raise AstandyRPCException(response.exception)
|
|
2060
|
+
|
|
2061
|
+
data = response.data[0].one
|
|
2062
|
+
|
|
2063
|
+
msg = JoinLobbyAsResponse()
|
|
2064
|
+
msg.ParseFromString(data)
|
|
2065
|
+
|
|
2066
|
+
return msg
|
|
2067
|
+
|
|
2068
|
+
@staticmethod
|
|
2069
|
+
def createLobbyWithSpectators2Request(request: CreateLobbyWithSpectatorsRequest):
|
|
2070
|
+
msg = request.SerializeToString()
|
|
2071
|
+
|
|
2072
|
+
return 77, msg # Xmm: 0
|
|
2073
|
+
|
|
2074
|
+
@staticmethod
|
|
2075
|
+
def createLobbyWithSpectators2Response(response: Response) -> CreateLobbyWithSpectatorsResponse:
|
|
2076
|
+
if response.exception.code:
|
|
2077
|
+
raise AstandyRPCException(response.exception)
|
|
2078
|
+
|
|
2079
|
+
data = response.data[0].one
|
|
2080
|
+
|
|
2081
|
+
msg = CreateLobbyWithSpectatorsResponse()
|
|
2082
|
+
msg.ParseFromString(data)
|
|
2083
|
+
|
|
2084
|
+
return msg
|
|
2085
|
+
|
|
2086
|
+
@staticmethod
|
|
2087
|
+
def getInvitesToLobby2Request(request: GetInvitesToLobbyRequest):
|
|
2088
|
+
msg = request.SerializeToString()
|
|
2089
|
+
|
|
2090
|
+
return 72, msg # Xmm: 0
|
|
2091
|
+
|
|
2092
|
+
@staticmethod
|
|
2093
|
+
def getInvitesToLobby2Response(response: Response) -> GetInvitesToLobbyResponse:
|
|
2094
|
+
if response.exception.code:
|
|
2095
|
+
raise AstandyRPCException(response.exception)
|
|
2096
|
+
|
|
2097
|
+
data = response.data[0].one
|
|
2098
|
+
|
|
2099
|
+
msg = GetInvitesToLobbyResponse()
|
|
2100
|
+
msg.ParseFromString(data)
|
|
2101
|
+
|
|
2102
|
+
return msg
|
|
2103
|
+
|
|
2104
|
+
@staticmethod
|
|
2105
|
+
def setLobbyMaxSpectators2Request(request: SetLobbyMaxSpectatorsRequest):
|
|
2106
|
+
msg = request.SerializeToString()
|
|
2107
|
+
|
|
2108
|
+
return 83, msg # Xmm: 0
|
|
2109
|
+
|
|
2110
|
+
@staticmethod
|
|
2111
|
+
def setLobbyMaxSpectators2Response(response: Response) -> SetLobbyMaxSpectatorsResponse:
|
|
2112
|
+
if response.exception.code:
|
|
2113
|
+
raise AstandyRPCException(response.exception)
|
|
2114
|
+
|
|
2115
|
+
data = response.data[0].one
|
|
2116
|
+
|
|
2117
|
+
msg = SetLobbyMaxSpectatorsResponse()
|
|
2118
|
+
msg.ParseFromString(data)
|
|
2119
|
+
|
|
2120
|
+
return msg
|
|
2121
|
+
|
|
2122
|
+
@staticmethod
|
|
2123
|
+
def revokePlayerInvitationToLobby2Request(request: RevokePlayerInvitationToLobbyRequest):
|
|
2124
|
+
msg = request.SerializeToString()
|
|
2125
|
+
|
|
2126
|
+
return 86, msg # Xmm: 0
|
|
2127
|
+
|
|
2128
|
+
@staticmethod
|
|
2129
|
+
def revokePlayerInvitationToLobby2Response(response: Response) -> RevokePlayerInvitationToLobbyResponse:
|
|
2130
|
+
if response.exception.code:
|
|
2131
|
+
raise AstandyRPCException(response.exception)
|
|
2132
|
+
|
|
2133
|
+
data = response.data[0].one
|
|
2134
|
+
|
|
2135
|
+
msg = RevokePlayerInvitationToLobbyResponse()
|
|
2136
|
+
msg.ParseFromString(data)
|
|
2137
|
+
|
|
2138
|
+
return msg
|
|
2139
|
+
|
|
2140
|
+
@staticmethod
|
|
2141
|
+
def kickPlayerFromLobby2Request(request: KickPlayerFromLobbyRequest):
|
|
2142
|
+
msg = request.SerializeToString()
|
|
2143
|
+
|
|
2144
|
+
return 84, msg # Xmm: 0
|
|
2145
|
+
|
|
2146
|
+
@staticmethod
|
|
2147
|
+
def kickPlayerFromLobby2Response(response: Response) -> KickPlayerFromLobbyResponse:
|
|
2148
|
+
if response.exception.code:
|
|
2149
|
+
raise AstandyRPCException(response.exception)
|
|
2150
|
+
|
|
2151
|
+
data = response.data[0].one
|
|
2152
|
+
|
|
2153
|
+
msg = KickPlayerFromLobbyResponse()
|
|
2154
|
+
msg.ParseFromString(data)
|
|
2155
|
+
|
|
2156
|
+
return msg
|
|
2157
|
+
|
|
2158
|
+
@staticmethod
|
|
2159
|
+
def setLobbyMaxMembers2Request(request: SetLobbyMaxMembersRequest):
|
|
2160
|
+
msg = request.SerializeToString()
|
|
2161
|
+
|
|
2162
|
+
return 78, msg # Xmm: 0
|
|
2163
|
+
|
|
2164
|
+
@staticmethod
|
|
2165
|
+
def setLobbyMaxMembers2Response(response: Response) -> SetLobbyMaxMembersResponse:
|
|
2166
|
+
if response.exception.code:
|
|
2167
|
+
raise AstandyRPCException(response.exception)
|
|
2168
|
+
|
|
2169
|
+
data = response.data[0].one
|
|
2170
|
+
|
|
2171
|
+
msg = SetLobbyMaxMembersResponse()
|
|
2172
|
+
msg.ParseFromString(data)
|
|
2173
|
+
|
|
2174
|
+
return msg
|
|
2175
|
+
|
|
2176
|
+
@staticmethod
|
|
2177
|
+
def getLobby2Request(request: GetLobbyRequest):
|
|
2178
|
+
msg = request.SerializeToString()
|
|
2179
|
+
|
|
2180
|
+
return 82, msg # Xmm: 0
|
|
2181
|
+
|
|
2182
|
+
@staticmethod
|
|
2183
|
+
def getLobby2Response(response: Response) -> GetLobbyResponse:
|
|
2184
|
+
if response.exception.code:
|
|
2185
|
+
raise AstandyRPCException(response.exception)
|
|
2186
|
+
|
|
2187
|
+
data = response.data[0].one
|
|
2188
|
+
|
|
2189
|
+
msg = GetLobbyResponse()
|
|
2190
|
+
msg.ParseFromString(data)
|
|
2191
|
+
|
|
2192
|
+
return msg
|
|
2193
|
+
|
|
2194
|
+
@staticmethod
|
|
2195
|
+
def setLobbyType2Request(request: SetLobbyTypeRequest):
|
|
2196
|
+
msg = request.SerializeToString()
|
|
2197
|
+
|
|
2198
|
+
return 81, msg # Xmm: 0
|
|
2199
|
+
|
|
2200
|
+
@staticmethod
|
|
2201
|
+
def setLobbyType2Response(response: Response) -> SetLobbyTypeResponse:
|
|
2202
|
+
if response.exception.code:
|
|
2203
|
+
raise AstandyRPCException(response.exception)
|
|
2204
|
+
|
|
2205
|
+
data = response.data[0].one
|
|
2206
|
+
|
|
2207
|
+
msg = SetLobbyTypeResponse()
|
|
2208
|
+
msg.ParseFromString(data)
|
|
2209
|
+
|
|
2210
|
+
return msg
|
|
2211
|
+
|
|
2212
|
+
@staticmethod
|
|
2213
|
+
def sendLobbyChatMsg2Request(request: SendLobbyChatMsgRequest):
|
|
2214
|
+
msg = request.SerializeToString()
|
|
2215
|
+
|
|
2216
|
+
return 74, msg # Xmm: 0
|
|
2217
|
+
|
|
2218
|
+
@staticmethod
|
|
2219
|
+
def sendLobbyChatMsg2Response(response: Response) -> SendLobbyChatMsgResponse:
|
|
2220
|
+
if response.exception.code:
|
|
2221
|
+
raise AstandyRPCException(response.exception)
|
|
2222
|
+
|
|
2223
|
+
data = response.data[0].one
|
|
2224
|
+
|
|
2225
|
+
msg = SendLobbyChatMsgResponse()
|
|
2226
|
+
msg.ParseFromString(data)
|
|
2227
|
+
|
|
2228
|
+
return msg
|
|
2229
|
+
|
|
2230
|
+
@staticmethod
|
|
2231
|
+
def leaveLobby2Request(request: LeaveLobbyRequest):
|
|
2232
|
+
msg = request.SerializeToString()
|
|
2233
|
+
|
|
2234
|
+
return 75, msg # Xmm: 0
|
|
2235
|
+
|
|
2236
|
+
@staticmethod
|
|
2237
|
+
def leaveLobby2Response(response: Response) -> LeaveLobbyResponse:
|
|
2238
|
+
if response.exception.code:
|
|
2239
|
+
raise AstandyRPCException(response.exception)
|
|
2240
|
+
|
|
2241
|
+
data = response.data[0].one
|
|
2242
|
+
|
|
2243
|
+
msg = LeaveLobbyResponse()
|
|
2244
|
+
msg.ParseFromString(data)
|
|
2245
|
+
|
|
2246
|
+
return msg
|
|
2247
|
+
|
|
2248
|
+
@staticmethod
|
|
2249
|
+
def searchLobbyRequest(request: SearchLobbyRequest):
|
|
2250
|
+
msg = request.SerializeToString()
|
|
2251
|
+
|
|
2252
|
+
return 79, msg # Xmm: 0
|
|
2253
|
+
|
|
2254
|
+
@staticmethod
|
|
2255
|
+
def searchLobbyResponse(response: Response) -> SearchLobbyResponse:
|
|
2256
|
+
if response.exception.code:
|
|
2257
|
+
raise AstandyRPCException(response.exception)
|
|
2258
|
+
|
|
2259
|
+
data = response.data[0].one
|
|
2260
|
+
|
|
2261
|
+
msg = SearchLobbyResponse()
|
|
2262
|
+
msg.ParseFromString(data)
|
|
2263
|
+
|
|
2264
|
+
return msg
|
|
2265
|
+
|
|
2266
|
+
@staticmethod
|
|
2267
|
+
def invitePlayerToLobbyAs2Request(request: InvitePlayerToLobbyAsRequest):
|
|
2268
|
+
msg = request.SerializeToString()
|
|
2269
|
+
|
|
2270
|
+
return 73, msg # Xmm: 0
|
|
2271
|
+
|
|
2272
|
+
@staticmethod
|
|
2273
|
+
def invitePlayerToLobbyAs2Response(response: Response) -> InvitePlayerToLobbyAsResponse:
|
|
2274
|
+
if response.exception.code:
|
|
2275
|
+
raise AstandyRPCException(response.exception)
|
|
2276
|
+
|
|
2277
|
+
data = response.data[0].one
|
|
2278
|
+
|
|
2279
|
+
msg = InvitePlayerToLobbyAsResponse()
|
|
2280
|
+
msg.ParseFromString(data)
|
|
2281
|
+
|
|
2282
|
+
return msg
|
|
2283
|
+
|
|
2284
|
+
@staticmethod
|
|
2285
|
+
def setLobbyPhotonGame2Request(request: SetLobbyPhotonGameRequest):
|
|
2286
|
+
msg = request.SerializeToString()
|
|
2287
|
+
|
|
2288
|
+
return 80, msg # Xmm: 0
|
|
2289
|
+
|
|
2290
|
+
@staticmethod
|
|
2291
|
+
def setLobbyPhotonGame2Response(response: Response) -> SetLobbyPhotonGameResponse:
|
|
2292
|
+
if response.exception.code:
|
|
2293
|
+
raise AstandyRPCException(response.exception)
|
|
2294
|
+
|
|
2295
|
+
data = response.data[0].one
|
|
2296
|
+
|
|
2297
|
+
msg = SetLobbyPhotonGameResponse()
|
|
2298
|
+
msg.ParseFromString(data)
|
|
2299
|
+
|
|
2300
|
+
return msg
|
|
2301
|
+
|
|
2302
|
+
@staticmethod
|
|
2303
|
+
def changeLobbyOtherPlayerType2Request(request: ChangeLobbyOtherPlayerTypeRequest):
|
|
2304
|
+
msg = request.SerializeToString()
|
|
2305
|
+
|
|
2306
|
+
return 87, msg # Xmm: 0
|
|
2307
|
+
|
|
2308
|
+
@staticmethod
|
|
2309
|
+
def changeLobbyOtherPlayerType2Response(response: Response) -> ChangeLobbyOtherPlayerTypeResponse:
|
|
2310
|
+
if response.exception.code:
|
|
2311
|
+
raise AstandyRPCException(response.exception)
|
|
2312
|
+
|
|
2313
|
+
data = response.data[0].one
|
|
2314
|
+
|
|
2315
|
+
msg = ChangeLobbyOtherPlayerTypeResponse()
|
|
2316
|
+
msg.ParseFromString(data)
|
|
2317
|
+
|
|
2318
|
+
return msg
|
|
2319
|
+
|
|
2320
|
+
@staticmethod
|
|
2321
|
+
def setLobbyJoinable2Request(request: SetLobbyJoinableRequest):
|
|
2322
|
+
msg = request.SerializeToString()
|
|
2323
|
+
|
|
2324
|
+
return 71, msg # Xmm: 0
|
|
2325
|
+
|
|
2326
|
+
@staticmethod
|
|
2327
|
+
def setLobbyJoinable2Response(response: Response) -> SetLobbyJoinableResponse:
|
|
2328
|
+
if response.exception.code:
|
|
2329
|
+
raise AstandyRPCException(response.exception)
|
|
2330
|
+
|
|
2331
|
+
data = response.data[0].one
|
|
2332
|
+
|
|
2333
|
+
msg = SetLobbyJoinableResponse()
|
|
2334
|
+
msg.ParseFromString(data)
|
|
2335
|
+
|
|
2336
|
+
return msg
|
|
2337
|
+
|
|
2338
|
+
@staticmethod
|
|
2339
|
+
def refuseInvitationToLobby2Request(request: RefuseInvitationToLobbyRequest):
|
|
2340
|
+
msg = request.SerializeToString()
|
|
2341
|
+
|
|
2342
|
+
return 85, msg # Xmm: 0
|
|
2343
|
+
|
|
2344
|
+
@staticmethod
|
|
2345
|
+
def refuseInvitationToLobby2Response(response: Response) -> RefuseInvitationToLobbyResponse:
|
|
2346
|
+
if response.exception.code:
|
|
2347
|
+
raise AstandyRPCException(response.exception)
|
|
2348
|
+
|
|
2349
|
+
data = response.data[0].one
|
|
2350
|
+
|
|
2351
|
+
msg = RefuseInvitationToLobbyResponse()
|
|
2352
|
+
msg.ParseFromString(data)
|
|
2353
|
+
|
|
2354
|
+
return msg
|
|
2355
|
+
|
|
2356
|
+
class MarketplaceRemoteService:
|
|
2357
|
+
@staticmethod
|
|
2358
|
+
def getTrades2Request(request: GetTradesRequest):
|
|
2359
|
+
msg = request.SerializeToString()
|
|
2360
|
+
|
|
2361
|
+
return 16, msg # Xmm: 0
|
|
2362
|
+
|
|
2363
|
+
@staticmethod
|
|
2364
|
+
def getTrades2Response(response: Response) -> GetTradesResponse:
|
|
2365
|
+
if response.exception.code:
|
|
2366
|
+
raise AstandyRPCException(response.exception)
|
|
2367
|
+
|
|
2368
|
+
data = response.data[0].one
|
|
2369
|
+
|
|
2370
|
+
msg = GetTradesResponse()
|
|
2371
|
+
msg.ParseFromString(data)
|
|
2372
|
+
|
|
2373
|
+
return msg
|
|
2374
|
+
|
|
2375
|
+
@staticmethod
|
|
2376
|
+
def getFilteredTradeOpenSaleRequestsRequest(request: GetTradeOpenSaleRequestsRequest):
|
|
2377
|
+
msg = request.SerializeToString()
|
|
2378
|
+
|
|
2379
|
+
return 15, msg # Xmm: 0
|
|
2380
|
+
|
|
2381
|
+
@staticmethod
|
|
2382
|
+
def getFilteredTradeOpenSaleRequestsResponse(response: Response) -> GetTradeOpenSaleRequestsResponse:
|
|
2383
|
+
if response.exception.code:
|
|
2384
|
+
raise AstandyRPCException(response.exception)
|
|
2385
|
+
|
|
2386
|
+
data = response.data[0].one
|
|
2387
|
+
|
|
2388
|
+
msg = GetTradeOpenSaleRequestsResponse()
|
|
2389
|
+
msg.ParseFromString(data)
|
|
2390
|
+
|
|
2391
|
+
return msg
|
|
2392
|
+
|
|
2393
|
+
@staticmethod
|
|
2394
|
+
def getPlayerClosedRequests2Request(request: GetPlayerClosedRequestsRequest):
|
|
2395
|
+
msg = request.SerializeToString()
|
|
2396
|
+
|
|
2397
|
+
return 10, msg # Xmm: 0
|
|
2398
|
+
|
|
2399
|
+
@staticmethod
|
|
2400
|
+
def getPlayerClosedRequests2Response(response: Response) -> GetPlayerClosedRequestsResponse:
|
|
2401
|
+
if response.exception.code:
|
|
2402
|
+
raise AstandyRPCException(response.exception)
|
|
2403
|
+
|
|
2404
|
+
data = response.data[0].one
|
|
2405
|
+
|
|
2406
|
+
msg = GetPlayerClosedRequestsResponse()
|
|
2407
|
+
msg.ParseFromString(data)
|
|
2408
|
+
|
|
2409
|
+
return msg
|
|
2410
|
+
|
|
2411
|
+
@staticmethod
|
|
2412
|
+
def cancelRequest2Request(request: CancelRequestRequest):
|
|
2413
|
+
msg = request.SerializeToString()
|
|
2414
|
+
|
|
2415
|
+
return 13, msg # Xmm: 0
|
|
2416
|
+
|
|
2417
|
+
@staticmethod
|
|
2418
|
+
def cancelRequest2Response(response: Response) -> CancelRequestResponse:
|
|
2419
|
+
if response.exception.code:
|
|
2420
|
+
raise AstandyRPCException(response.exception)
|
|
2421
|
+
|
|
2422
|
+
data = response.data[0].one
|
|
2423
|
+
|
|
2424
|
+
msg = CancelRequestResponse()
|
|
2425
|
+
msg.ParseFromString(data)
|
|
2426
|
+
|
|
2427
|
+
return msg
|
|
2428
|
+
|
|
2429
|
+
@staticmethod
|
|
2430
|
+
def getTrade2Request(request: GetTradeRequest):
|
|
2431
|
+
msg = request.SerializeToString()
|
|
2432
|
+
|
|
2433
|
+
return 8, msg # Xmm: 0
|
|
2434
|
+
|
|
2435
|
+
@staticmethod
|
|
2436
|
+
def getTrade2Response(response: Response) -> GetTradeResponse:
|
|
2437
|
+
if response.exception.code:
|
|
2438
|
+
raise AstandyRPCException(response.exception)
|
|
2439
|
+
|
|
2440
|
+
data = response.data[0].one
|
|
2441
|
+
|
|
2442
|
+
msg = GetTradeResponse()
|
|
2443
|
+
msg.ParseFromString(data)
|
|
2444
|
+
|
|
2445
|
+
return msg
|
|
2446
|
+
|
|
2447
|
+
@staticmethod
|
|
2448
|
+
def getMarketplaceSettings2Request(request: GetMarketplaceSettingsRequest):
|
|
2449
|
+
msg = request.SerializeToString()
|
|
2450
|
+
|
|
2451
|
+
return 6, msg # Xmm: 0
|
|
2452
|
+
|
|
2453
|
+
@staticmethod
|
|
2454
|
+
def getMarketplaceSettings2Response(response: Response) -> GetMarketplaceSettingsResponse:
|
|
2455
|
+
if response.exception.code:
|
|
2456
|
+
raise AstandyRPCException(response.exception)
|
|
2457
|
+
|
|
2458
|
+
data = response.data[0].one
|
|
2459
|
+
|
|
2460
|
+
msg = GetMarketplaceSettingsResponse()
|
|
2461
|
+
msg.ParseFromString(data)
|
|
2462
|
+
|
|
2463
|
+
return msg
|
|
2464
|
+
|
|
2465
|
+
@staticmethod
|
|
2466
|
+
def getPlayerOpenRequests2Request(request: GetPlayerOpenRequestsRequest):
|
|
2467
|
+
msg = request.SerializeToString()
|
|
2468
|
+
|
|
2469
|
+
return 7, msg # Xmm: 0
|
|
2470
|
+
|
|
2471
|
+
@staticmethod
|
|
2472
|
+
def getPlayerOpenRequests2Response(response: Response) -> GetPlayerOpenRequestsResponse:
|
|
2473
|
+
if response.exception.code:
|
|
2474
|
+
raise AstandyRPCException(response.exception)
|
|
2475
|
+
|
|
2476
|
+
data = response.data[0].one
|
|
2477
|
+
|
|
2478
|
+
msg = GetPlayerOpenRequestsResponse()
|
|
2479
|
+
msg.ParseFromString(data)
|
|
2480
|
+
|
|
2481
|
+
return msg
|
|
2482
|
+
|
|
2483
|
+
@staticmethod
|
|
2484
|
+
def getPlayerProcessingRequests2Request(request: GetPlayerProcessingRequestRequest):
|
|
2485
|
+
msg = request.SerializeToString()
|
|
2486
|
+
|
|
2487
|
+
return 5, msg # Xmm: 0
|
|
2488
|
+
|
|
2489
|
+
@staticmethod
|
|
2490
|
+
def getPlayerProcessingRequests2Response(response: Response) -> GetPlayerProcessingRequestResponse:
|
|
2491
|
+
if response.exception.code:
|
|
2492
|
+
raise AstandyRPCException(response.exception)
|
|
2493
|
+
|
|
2494
|
+
data = response.data[0].one
|
|
2495
|
+
|
|
2496
|
+
msg = GetPlayerProcessingRequestResponse()
|
|
2497
|
+
msg.ParseFromString(data)
|
|
2498
|
+
|
|
2499
|
+
return msg
|
|
2500
|
+
|
|
2501
|
+
@staticmethod
|
|
2502
|
+
def getTradeOpenSaleRequests2Request(request: GetTradeOpenSaleRequestsRequest):
|
|
2503
|
+
msg = request.SerializeToString()
|
|
2504
|
+
|
|
2505
|
+
return 14, msg # Xmm: 0
|
|
2506
|
+
|
|
2507
|
+
@staticmethod
|
|
2508
|
+
def getTradeOpenSaleRequests2Response(response: Response) -> GetTradeOpenSaleRequestsResponse:
|
|
2509
|
+
if response.exception.code:
|
|
2510
|
+
raise AstandyRPCException(response.exception)
|
|
2511
|
+
|
|
2512
|
+
data = response.data[0].one
|
|
2513
|
+
|
|
2514
|
+
msg = GetTradeOpenSaleRequestsResponse()
|
|
2515
|
+
msg.ParseFromString(data)
|
|
2516
|
+
|
|
2517
|
+
return msg
|
|
2518
|
+
|
|
2519
|
+
@staticmethod
|
|
2520
|
+
def createPurchaseRequestBySale2Request(request: CreatePurchaseRequestBySaleRequest):
|
|
2521
|
+
msg = request.SerializeToString()
|
|
2522
|
+
|
|
2523
|
+
return 12, msg # Xmm: 0
|
|
2524
|
+
|
|
2525
|
+
@staticmethod
|
|
2526
|
+
def createPurchaseRequestBySale2Response(response: Response) -> CreatePurchaseRequestBySaleResponse:
|
|
2527
|
+
if response.exception.code:
|
|
2528
|
+
raise AstandyRPCException(response.exception)
|
|
2529
|
+
|
|
2530
|
+
data = response.data[0].one
|
|
2531
|
+
|
|
2532
|
+
msg = CreatePurchaseRequestBySaleResponse()
|
|
2533
|
+
msg.ParseFromString(data)
|
|
2534
|
+
|
|
2535
|
+
return msg
|
|
2536
|
+
|
|
2537
|
+
@staticmethod
|
|
2538
|
+
def createPurchaseRequest2Request(request: CreatePurchaseRequestRequest):
|
|
2539
|
+
msg = request.SerializeToString()
|
|
2540
|
+
|
|
2541
|
+
return 11, msg # Xmm: 0
|
|
2542
|
+
|
|
2543
|
+
@staticmethod
|
|
2544
|
+
def createPurchaseRequest2Response(response: Response) -> CreatePurchaseRequestResponse:
|
|
2545
|
+
if response.exception.code:
|
|
2546
|
+
raise AstandyRPCException(response.exception)
|
|
2547
|
+
|
|
2548
|
+
data = response.data[0].one
|
|
2549
|
+
|
|
2550
|
+
msg = CreatePurchaseRequestResponse()
|
|
2551
|
+
msg.ParseFromString(data)
|
|
2552
|
+
|
|
2553
|
+
return msg
|
|
2554
|
+
|
|
2555
|
+
@staticmethod
|
|
2556
|
+
def createSaleRequest(request: CreateSaleRequest):
|
|
2557
|
+
msg = request.SerializeToString()
|
|
2558
|
+
|
|
2559
|
+
return 9, msg # Xmm: 0
|
|
2560
|
+
|
|
2561
|
+
@staticmethod
|
|
2562
|
+
def createSaleResponse(response: Response) -> CreateSaleResponse:
|
|
2563
|
+
if response.exception.code:
|
|
2564
|
+
raise AstandyRPCException(response.exception)
|
|
2565
|
+
|
|
2566
|
+
data = response.data[0].one
|
|
2567
|
+
|
|
2568
|
+
msg = CreateSaleResponse()
|
|
2569
|
+
msg.ParseFromString(data)
|
|
2570
|
+
|
|
2571
|
+
return msg
|
|
2572
|
+
|
|
2573
|
+
class HandshakeRemoteService:
|
|
2574
|
+
@staticmethod
|
|
2575
|
+
def encryptedHandshakeRequest(request: Handshake, cipher):
|
|
2576
|
+
msg = request.SerializeToString()
|
|
2577
|
+
msg = cipher.encrypt(msg)
|
|
2578
|
+
return 3, msg # Xmm: 0
|
|
2579
|
+
|
|
2580
|
+
@staticmethod
|
|
2581
|
+
def encryptedHandshakeResponse(response: Response, cipher) -> HandshakeResponse:
|
|
2582
|
+
if response.exception.code:
|
|
2583
|
+
raise AstandyRPCException(response.exception)
|
|
2584
|
+
|
|
2585
|
+
data = response.data[0].one
|
|
2586
|
+
data = cipher.decrypt(data)
|
|
2587
|
+
msg = HandshakeResponse()
|
|
2588
|
+
msg.ParseFromString(data)
|
|
2589
|
+
|
|
2590
|
+
return msg
|
|
2591
|
+
|
|
2592
|
+
@staticmethod
|
|
2593
|
+
def encryptedHandshakeRequest(request: GACHFBFBBEHDAAD, cipher):
|
|
2594
|
+
msg = request.SerializeToString()
|
|
2595
|
+
msg = cipher.encrypt(msg)
|
|
2596
|
+
return 3, msg # Xmm: 0
|
|
2597
|
+
|
|
2598
|
+
@staticmethod
|
|
2599
|
+
def encryptedHandshakeResponse(response: Response, cipher) -> ADHHEGBDFBEBGGC:
|
|
2600
|
+
if response.exception.code:
|
|
2601
|
+
raise AstandyRPCException(response.exception)
|
|
2602
|
+
|
|
2603
|
+
data = response.data[0].one
|
|
2604
|
+
data = cipher.decrypt(data)
|
|
2605
|
+
msg = ADHHEGBDFBEBGGC()
|
|
2606
|
+
msg.ParseFromString(data)
|
|
2607
|
+
|
|
2608
|
+
return msg
|
|
2609
|
+
|
|
2610
|
+
class StorageRemoteService:
|
|
2611
|
+
@staticmethod
|
|
2612
|
+
def readFilesRequest(request: ReadFilesRequest):
|
|
2613
|
+
msg = request.SerializeToString()
|
|
2614
|
+
|
|
2615
|
+
return 172, msg # Xmm: 0
|
|
2616
|
+
|
|
2617
|
+
@staticmethod
|
|
2618
|
+
def readFilesResponse(response: Response) -> ReadFilesResponse:
|
|
2619
|
+
if response.exception.code:
|
|
2620
|
+
raise AstandyRPCException(response.exception)
|
|
2621
|
+
|
|
2622
|
+
data = response.data[0].one
|
|
2623
|
+
|
|
2624
|
+
msg = ReadFilesResponse()
|
|
2625
|
+
msg.ParseFromString(data)
|
|
2626
|
+
|
|
2627
|
+
return msg
|
|
2628
|
+
|
|
2629
|
+
@staticmethod
|
|
2630
|
+
def writeFile2Request(request: WriteFileRequest):
|
|
2631
|
+
msg = request.SerializeToString()
|
|
2632
|
+
|
|
2633
|
+
return 171, msg # Xmm: 0
|
|
2634
|
+
|
|
2635
|
+
@staticmethod
|
|
2636
|
+
def writeFile2Response(response: Response) -> WriteFileResponse:
|
|
2637
|
+
if response.exception.code:
|
|
2638
|
+
raise AstandyRPCException(response.exception)
|
|
2639
|
+
|
|
2640
|
+
data = response.data[0].one
|
|
2641
|
+
|
|
2642
|
+
msg = WriteFileResponse()
|
|
2643
|
+
msg.ParseFromString(data)
|
|
2644
|
+
|
|
2645
|
+
return msg
|
|
2646
|
+
|
|
2647
|
+
class HuaweiAuthRemoteService:
|
|
2648
|
+
@staticmethod
|
|
2649
|
+
def linkAuthRequest(request: HuaweiLinkAuthRequest, cipher):
|
|
2650
|
+
msg = request.SerializeToString()
|
|
2651
|
+
msg = cipher.encrypt(msg)
|
|
2652
|
+
return 366, msg # Xmm: 0
|
|
2653
|
+
|
|
2654
|
+
@staticmethod
|
|
2655
|
+
def linkAuthResponse(response: Response, cipher) -> HuaweiLinkAuthResponse:
|
|
2656
|
+
if response.exception.code:
|
|
2657
|
+
raise AstandyRPCException(response.exception)
|
|
2658
|
+
|
|
2659
|
+
data = response.data[0].one
|
|
2660
|
+
data = cipher.decrypt(data)
|
|
2661
|
+
msg = HuaweiLinkAuthResponse()
|
|
2662
|
+
msg.ParseFromString(data)
|
|
2663
|
+
|
|
2664
|
+
return msg
|
|
2665
|
+
|
|
2666
|
+
@staticmethod
|
|
2667
|
+
def unLinkAuthRequest(request: HuaweiUnLinkAuthRequest):
|
|
2668
|
+
msg = request.SerializeToString()
|
|
2669
|
+
|
|
2670
|
+
return 367, msg # Xmm: 0
|
|
2671
|
+
|
|
2672
|
+
@staticmethod
|
|
2673
|
+
def unLinkAuthResponse(response: Response) -> HuaweiUnLinkAuthResponse:
|
|
2674
|
+
if response.exception.code:
|
|
2675
|
+
raise AstandyRPCException(response.exception)
|
|
2676
|
+
|
|
2677
|
+
data = response.data[0].one
|
|
2678
|
+
|
|
2679
|
+
msg = HuaweiUnLinkAuthResponse()
|
|
2680
|
+
msg.ParseFromString(data)
|
|
2681
|
+
|
|
2682
|
+
return msg
|
|
2683
|
+
|
|
2684
|
+
@staticmethod
|
|
2685
|
+
def encryptedAuth2Request(request: HuaweiAuthRequest, cipher):
|
|
2686
|
+
msg = request.SerializeToString()
|
|
2687
|
+
msg = cipher.encrypt(msg)
|
|
2688
|
+
return 365, msg # Xmm: 0
|
|
2689
|
+
|
|
2690
|
+
@staticmethod
|
|
2691
|
+
def encryptedAuth2Response(response: Response, cipher) -> HuaweiAuthResponse:
|
|
2692
|
+
if response.exception.code:
|
|
2693
|
+
raise AstandyRPCException(response.exception)
|
|
2694
|
+
|
|
2695
|
+
data = response.data[0].one
|
|
2696
|
+
data = cipher.decrypt(data)
|
|
2697
|
+
msg = HuaweiAuthResponse()
|
|
2698
|
+
msg.ParseFromString(data)
|
|
2699
|
+
|
|
2700
|
+
return msg
|
|
2701
|
+
|
|
2702
|
+
class SystemMessagesRemoteService:
|
|
2703
|
+
@staticmethod
|
|
2704
|
+
def getSystemMessagesRequest(request: GetSystemMessagesRequest):
|
|
2705
|
+
msg = request.SerializeToString()
|
|
2706
|
+
|
|
2707
|
+
return 305, msg # Xmm: 0
|
|
2708
|
+
|
|
2709
|
+
@staticmethod
|
|
2710
|
+
def getSystemMessagesResponse(response: Response) -> GetSystemMessagesResponse:
|
|
2711
|
+
if response.exception.code:
|
|
2712
|
+
raise AstandyRPCException(response.exception)
|
|
2713
|
+
|
|
2714
|
+
data = response.data[0].one
|
|
2715
|
+
|
|
2716
|
+
msg = GetSystemMessagesResponse()
|
|
2717
|
+
msg.ParseFromString(data)
|
|
2718
|
+
|
|
2719
|
+
return msg
|
|
2720
|
+
|
|
2721
|
+
@staticmethod
|
|
2722
|
+
def readSystemMessagesRequest(request: ReadSystemMessagesRequest):
|
|
2723
|
+
msg = request.SerializeToString()
|
|
2724
|
+
|
|
2725
|
+
return 308, msg # Xmm: 0
|
|
2726
|
+
|
|
2727
|
+
@staticmethod
|
|
2728
|
+
def readSystemMessagesResponse(response: Response) -> ReadSystemMessagesResponse:
|
|
2729
|
+
if response.exception.code:
|
|
2730
|
+
raise AstandyRPCException(response.exception)
|
|
2731
|
+
|
|
2732
|
+
data = response.data[0].one
|
|
2733
|
+
|
|
2734
|
+
msg = ReadSystemMessagesResponse()
|
|
2735
|
+
msg.ParseFromString(data)
|
|
2736
|
+
|
|
2737
|
+
return msg
|
|
2738
|
+
|
|
2739
|
+
@staticmethod
|
|
2740
|
+
def getSystemMessageDetailsRequest(request: GetSystemMessageDetailsRequest):
|
|
2741
|
+
msg = request.SerializeToString()
|
|
2742
|
+
|
|
2743
|
+
return 307, msg # Xmm: 0
|
|
2744
|
+
|
|
2745
|
+
@staticmethod
|
|
2746
|
+
def getSystemMessageDetailsResponse(response: Response) -> GetSystemMessageDetailsResponse:
|
|
2747
|
+
if response.exception.code:
|
|
2748
|
+
raise AstandyRPCException(response.exception)
|
|
2749
|
+
|
|
2750
|
+
data = response.data[0].one
|
|
2751
|
+
|
|
2752
|
+
msg = GetSystemMessageDetailsResponse()
|
|
2753
|
+
msg.ParseFromString(data)
|
|
2754
|
+
|
|
2755
|
+
return msg
|
|
2756
|
+
|
|
2757
|
+
@staticmethod
|
|
2758
|
+
def countUnreadSystemMessagesRequest(request: CountUnreadSystemMessagesRequest):
|
|
2759
|
+
msg = request.SerializeToString()
|
|
2760
|
+
|
|
2761
|
+
return 306, msg # Xmm: 0
|
|
2762
|
+
|
|
2763
|
+
@staticmethod
|
|
2764
|
+
def countUnreadSystemMessagesResponse(response: Response) -> CountUnreadSystemMessagesResponse:
|
|
2765
|
+
if response.exception.code:
|
|
2766
|
+
raise AstandyRPCException(response.exception)
|
|
2767
|
+
|
|
2768
|
+
data = response.data[0].one
|
|
2769
|
+
|
|
2770
|
+
msg = CountUnreadSystemMessagesResponse()
|
|
2771
|
+
msg.ParseFromString(data)
|
|
2772
|
+
|
|
2773
|
+
return msg
|
|
2774
|
+
|
|
2775
|
+
@staticmethod
|
|
2776
|
+
def deleteSystemMessagesRequest(request: DeleteSystemMessagesRequest):
|
|
2777
|
+
msg = request.SerializeToString()
|
|
2778
|
+
|
|
2779
|
+
return 309, msg # Xmm: 0
|
|
2780
|
+
|
|
2781
|
+
@staticmethod
|
|
2782
|
+
def deleteSystemMessagesResponse(response: Response) -> DeleteSystemMessagesResponse:
|
|
2783
|
+
if response.exception.code:
|
|
2784
|
+
raise AstandyRPCException(response.exception)
|
|
2785
|
+
|
|
2786
|
+
data = response.data[0].one
|
|
2787
|
+
|
|
2788
|
+
msg = DeleteSystemMessagesResponse()
|
|
2789
|
+
msg.ParseFromString(data)
|
|
2790
|
+
|
|
2791
|
+
return msg
|
|
2792
|
+
|
|
2793
|
+
class NewsFeedRemoteService:
|
|
2794
|
+
@staticmethod
|
|
2795
|
+
def getItems2Request(request: GetItemsRequest):
|
|
2796
|
+
msg = request.SerializeToString()
|
|
2797
|
+
|
|
2798
|
+
return 295, msg # Xmm: 0
|
|
2799
|
+
|
|
2800
|
+
@staticmethod
|
|
2801
|
+
def getItems2Response(response: Response) -> GetItemsResponse:
|
|
2802
|
+
if response.exception.code:
|
|
2803
|
+
raise AstandyRPCException(response.exception)
|
|
2804
|
+
|
|
2805
|
+
data = response.data[0].one
|
|
2806
|
+
|
|
2807
|
+
msg = GetItemsResponse()
|
|
2808
|
+
msg.ParseFromString(data)
|
|
2809
|
+
|
|
2810
|
+
return msg
|
|
2811
|
+
|
|
2812
|
+
class AppleIdAuthRemoteService:
|
|
2813
|
+
@staticmethod
|
|
2814
|
+
def unLinkAuthRequest(request: AppleIdUnLinkAuthRequest):
|
|
2815
|
+
msg = request.SerializeToString()
|
|
2816
|
+
|
|
2817
|
+
return 347, msg # Xmm: 0
|
|
2818
|
+
|
|
2819
|
+
@staticmethod
|
|
2820
|
+
def unLinkAuthResponse(response: Response) -> AppleIdUnLinkAuthResponse:
|
|
2821
|
+
if response.exception.code:
|
|
2822
|
+
raise AstandyRPCException(response.exception)
|
|
2823
|
+
|
|
2824
|
+
data = response.data[0].one
|
|
2825
|
+
|
|
2826
|
+
msg = AppleIdUnLinkAuthResponse()
|
|
2827
|
+
msg.ParseFromString(data)
|
|
2828
|
+
|
|
2829
|
+
return msg
|
|
2830
|
+
|
|
2831
|
+
@staticmethod
|
|
2832
|
+
def linkAuthRequest(request: AppleIdLinkAuthRequest, cipher):
|
|
2833
|
+
msg = request.SerializeToString()
|
|
2834
|
+
msg = cipher.encrypt(msg)
|
|
2835
|
+
return 346, msg # Xmm: 0
|
|
2836
|
+
|
|
2837
|
+
@staticmethod
|
|
2838
|
+
def linkAuthResponse(response: Response, cipher) -> AppleIdLinkAuthResponse:
|
|
2839
|
+
if response.exception.code:
|
|
2840
|
+
raise AstandyRPCException(response.exception)
|
|
2841
|
+
|
|
2842
|
+
data = response.data[0].one
|
|
2843
|
+
data = cipher.decrypt(data)
|
|
2844
|
+
msg = AppleIdLinkAuthResponse()
|
|
2845
|
+
msg.ParseFromString(data)
|
|
2846
|
+
|
|
2847
|
+
return msg
|
|
2848
|
+
|
|
2849
|
+
@staticmethod
|
|
2850
|
+
def encryptedAuth2Request(request: AppleIdAuthRequest, cipher):
|
|
2851
|
+
msg = request.SerializeToString()
|
|
2852
|
+
msg = cipher.encrypt(msg)
|
|
2853
|
+
return 345, msg # Xmm: 0
|
|
2854
|
+
|
|
2855
|
+
@staticmethod
|
|
2856
|
+
def encryptedAuth2Response(response: Response, cipher) -> AppleIdAuthResponse:
|
|
2857
|
+
if response.exception.code:
|
|
2858
|
+
raise AstandyRPCException(response.exception)
|
|
2859
|
+
|
|
2860
|
+
data = response.data[0].one
|
|
2861
|
+
data = cipher.decrypt(data)
|
|
2862
|
+
msg = AppleIdAuthResponse()
|
|
2863
|
+
msg.ParseFromString(data)
|
|
2864
|
+
|
|
2865
|
+
return msg
|
|
2866
|
+
|
|
2867
|
+
class InAppRemoteService:
|
|
2868
|
+
@staticmethod
|
|
2869
|
+
def subscribeCreatorRequest(request: SubscribeCreatorRequest):
|
|
2870
|
+
msg = request.SerializeToString()
|
|
2871
|
+
|
|
2872
|
+
return 291, msg # Xmm: 0
|
|
2873
|
+
|
|
2874
|
+
@staticmethod
|
|
2875
|
+
def subscribeCreatorResponse(response: Response) -> SubscribeCreatorResponse:
|
|
2876
|
+
if response.exception.code:
|
|
2877
|
+
raise AstandyRPCException(response.exception)
|
|
2878
|
+
|
|
2879
|
+
data = response.data[0].one
|
|
2880
|
+
|
|
2881
|
+
msg = SubscribeCreatorResponse()
|
|
2882
|
+
msg.ParseFromString(data)
|
|
2883
|
+
|
|
2884
|
+
return msg
|
|
2885
|
+
|
|
2886
|
+
@staticmethod
|
|
2887
|
+
def findCreatorSubscriptionRequest(request: GetSubscribedCreatorRequest):
|
|
2888
|
+
msg = request.SerializeToString()
|
|
2889
|
+
|
|
2890
|
+
return 290, msg # Xmm: 0
|
|
2891
|
+
|
|
2892
|
+
@staticmethod
|
|
2893
|
+
def findCreatorSubscriptionResponse(response: Response) -> GetSubscribedCreatorResponse:
|
|
2894
|
+
if response.exception.code:
|
|
2895
|
+
raise AstandyRPCException(response.exception)
|
|
2896
|
+
|
|
2897
|
+
data = response.data[0].one
|
|
2898
|
+
|
|
2899
|
+
msg = GetSubscribedCreatorResponse()
|
|
2900
|
+
msg.ParseFromString(data)
|
|
2901
|
+
|
|
2902
|
+
return msg
|
|
2903
|
+
|
|
2904
|
+
@staticmethod
|
|
2905
|
+
def findCreatorRequest(request: FindCreatorRequest):
|
|
2906
|
+
msg = request.SerializeToString()
|
|
2907
|
+
|
|
2908
|
+
return 292, msg # Xmm: 0
|
|
2909
|
+
|
|
2910
|
+
@staticmethod
|
|
2911
|
+
def findCreatorResponse(response: Response) -> FindCreatorResponse:
|
|
2912
|
+
if response.exception.code:
|
|
2913
|
+
raise AstandyRPCException(response.exception)
|
|
2914
|
+
|
|
2915
|
+
data = response.data[0].one
|
|
2916
|
+
|
|
2917
|
+
msg = FindCreatorResponse()
|
|
2918
|
+
msg.ParseFromString(data)
|
|
2919
|
+
|
|
2920
|
+
return msg
|
|
2921
|
+
|
|
2922
|
+
class VkAuthRemoteService:
|
|
2923
|
+
@staticmethod
|
|
2924
|
+
def unLinkAuthRequest(request: VkUnLinkAuthRequest):
|
|
2925
|
+
msg = request.SerializeToString()
|
|
2926
|
+
|
|
2927
|
+
return 337, msg # Xmm: 0
|
|
2928
|
+
|
|
2929
|
+
@staticmethod
|
|
2930
|
+
def unLinkAuthResponse(response: Response) -> VkUnLinkAuthResponse:
|
|
2931
|
+
if response.exception.code:
|
|
2932
|
+
raise AstandyRPCException(response.exception)
|
|
2933
|
+
|
|
2934
|
+
data = response.data[0].one
|
|
2935
|
+
|
|
2936
|
+
msg = VkUnLinkAuthResponse()
|
|
2937
|
+
msg.ParseFromString(data)
|
|
2938
|
+
|
|
2939
|
+
return msg
|
|
2940
|
+
|
|
2941
|
+
@staticmethod
|
|
2942
|
+
def linkAuthRequest(request: VkLinkAuthRequest, cipher):
|
|
2943
|
+
msg = request.SerializeToString()
|
|
2944
|
+
msg = cipher.encrypt(msg)
|
|
2945
|
+
return 336, msg # Xmm: 0
|
|
2946
|
+
|
|
2947
|
+
@staticmethod
|
|
2948
|
+
def linkAuthResponse(response: Response, cipher) -> VkLinkAuthResponse:
|
|
2949
|
+
if response.exception.code:
|
|
2950
|
+
raise AstandyRPCException(response.exception)
|
|
2951
|
+
|
|
2952
|
+
data = response.data[0].one
|
|
2953
|
+
data = cipher.decrypt(data)
|
|
2954
|
+
msg = VkLinkAuthResponse()
|
|
2955
|
+
msg.ParseFromString(data)
|
|
2956
|
+
|
|
2957
|
+
return msg
|
|
2958
|
+
|
|
2959
|
+
@staticmethod
|
|
2960
|
+
def encryptedAuth2Request(request: VkAuthRequest, cipher):
|
|
2961
|
+
msg = request.SerializeToString()
|
|
2962
|
+
msg = cipher.encrypt(msg)
|
|
2963
|
+
return 335, msg # Xmm: 0
|
|
2964
|
+
|
|
2965
|
+
@staticmethod
|
|
2966
|
+
def encryptedAuth2Response(response: Response, cipher) -> VkAuthResponse:
|
|
2967
|
+
if response.exception.code:
|
|
2968
|
+
raise AstandyRPCException(response.exception)
|
|
2969
|
+
|
|
2970
|
+
data = response.data[0].one
|
|
2971
|
+
data = cipher.decrypt(data)
|
|
2972
|
+
msg = VkAuthResponse()
|
|
2973
|
+
msg.ParseFromString(data)
|
|
2974
|
+
|
|
2975
|
+
return msg
|
|
2976
|
+
|
|
2977
|
+
class FriendsRemoteService:
|
|
2978
|
+
@staticmethod
|
|
2979
|
+
def ignoreFriendRequest2Request(request: IgnoreFriendRequestRequest):
|
|
2980
|
+
msg = request.SerializeToString()
|
|
2981
|
+
|
|
2982
|
+
return 158, msg # Xmm: 0
|
|
2983
|
+
|
|
2984
|
+
@staticmethod
|
|
2985
|
+
def ignoreFriendRequest2Response(response: Response) -> IgnoreFriendRequestResponse:
|
|
2986
|
+
if response.exception.code:
|
|
2987
|
+
raise AstandyRPCException(response.exception)
|
|
2988
|
+
|
|
2989
|
+
data = response.data[0].one
|
|
2990
|
+
|
|
2991
|
+
msg = IgnoreFriendRequestResponse()
|
|
2992
|
+
msg.ParseFromString(data)
|
|
2993
|
+
|
|
2994
|
+
return msg
|
|
2995
|
+
|
|
2996
|
+
@staticmethod
|
|
2997
|
+
def getPlayerFriends2Request(request: GetPlayerFriendsRequest):
|
|
2998
|
+
msg = request.SerializeToString()
|
|
2999
|
+
|
|
3000
|
+
return 150, msg # Xmm: 0
|
|
3001
|
+
|
|
3002
|
+
@staticmethod
|
|
3003
|
+
def getPlayerFriends2Response(response: Response) -> GetPlayerFriendsResponse:
|
|
3004
|
+
if response.exception.code:
|
|
3005
|
+
raise AstandyRPCException(response.exception)
|
|
3006
|
+
|
|
3007
|
+
data = response.data[0].one
|
|
3008
|
+
|
|
3009
|
+
msg = GetPlayerFriendsResponse()
|
|
3010
|
+
msg.ParseFromString(data)
|
|
3011
|
+
|
|
3012
|
+
return msg
|
|
3013
|
+
|
|
3014
|
+
@staticmethod
|
|
3015
|
+
def getPlayerFriendByUid2Request(request: GetPlayerFriendByUidRequest):
|
|
3016
|
+
msg = request.SerializeToString()
|
|
3017
|
+
|
|
3018
|
+
return 161, msg # Xmm: 0
|
|
3019
|
+
|
|
3020
|
+
@staticmethod
|
|
3021
|
+
def getPlayerFriendByUid2Response(response: Response) -> GetPlayerFriendByUidResponse:
|
|
3022
|
+
if response.exception.code:
|
|
3023
|
+
raise AstandyRPCException(response.exception)
|
|
3024
|
+
|
|
3025
|
+
data = response.data[0].one
|
|
3026
|
+
|
|
3027
|
+
msg = GetPlayerFriendByUidResponse()
|
|
3028
|
+
msg.ParseFromString(data)
|
|
3029
|
+
|
|
3030
|
+
return msg
|
|
3031
|
+
|
|
3032
|
+
@staticmethod
|
|
3033
|
+
def revokeFriendRequest2Request(request: RevokeFriendRequestRequest):
|
|
3034
|
+
msg = request.SerializeToString()
|
|
3035
|
+
|
|
3036
|
+
return 155, msg # Xmm: 0
|
|
3037
|
+
|
|
3038
|
+
@staticmethod
|
|
3039
|
+
def revokeFriendRequest2Response(response: Response) -> RevokeFriendRequestResponse:
|
|
3040
|
+
if response.exception.code:
|
|
3041
|
+
raise AstandyRPCException(response.exception)
|
|
3042
|
+
|
|
3043
|
+
data = response.data[0].one
|
|
3044
|
+
|
|
3045
|
+
msg = RevokeFriendRequestResponse()
|
|
3046
|
+
msg.ParseFromString(data)
|
|
3047
|
+
|
|
3048
|
+
return msg
|
|
3049
|
+
|
|
3050
|
+
@staticmethod
|
|
3051
|
+
def getPlayerFriendsIds2Request(request: GetPlayerFriendsIdsRequest):
|
|
3052
|
+
msg = request.SerializeToString()
|
|
3053
|
+
|
|
3054
|
+
return 152, msg # Xmm: 0
|
|
3055
|
+
|
|
3056
|
+
@staticmethod
|
|
3057
|
+
def getPlayerFriendsIds2Response(response: Response) -> GetPlayerFriendsIdsResponse:
|
|
3058
|
+
if response.exception.code:
|
|
3059
|
+
raise AstandyRPCException(response.exception)
|
|
3060
|
+
|
|
3061
|
+
data = response.data[0].one
|
|
3062
|
+
|
|
3063
|
+
msg = GetPlayerFriendsIdsResponse()
|
|
3064
|
+
msg.ParseFromString(data)
|
|
3065
|
+
|
|
3066
|
+
return msg
|
|
3067
|
+
|
|
3068
|
+
@staticmethod
|
|
3069
|
+
def acceptFriendRequest2Request(request: AcceptFriendRequestRequest):
|
|
3070
|
+
msg = request.SerializeToString()
|
|
3071
|
+
|
|
3072
|
+
return 156, msg # Xmm: 0
|
|
3073
|
+
|
|
3074
|
+
@staticmethod
|
|
3075
|
+
def acceptFriendRequest2Response(response: Response) -> AcceptFriendRequestResponse:
|
|
3076
|
+
if response.exception.code:
|
|
3077
|
+
raise AstandyRPCException(response.exception)
|
|
3078
|
+
|
|
3079
|
+
data = response.data[0].one
|
|
3080
|
+
|
|
3081
|
+
msg = AcceptFriendRequestResponse()
|
|
3082
|
+
msg.ParseFromString(data)
|
|
3083
|
+
|
|
3084
|
+
return msg
|
|
3085
|
+
|
|
3086
|
+
@staticmethod
|
|
3087
|
+
def searchPlayers2Request(request: SearchPlayersRequest):
|
|
3088
|
+
msg = request.SerializeToString()
|
|
3089
|
+
|
|
3090
|
+
return 154, msg # Xmm: 0
|
|
3091
|
+
|
|
3092
|
+
@staticmethod
|
|
3093
|
+
def searchPlayers2Response(response: Response) -> SearchPlayersResponse:
|
|
3094
|
+
if response.exception.code:
|
|
3095
|
+
raise AstandyRPCException(response.exception)
|
|
3096
|
+
|
|
3097
|
+
data = response.data[0].one
|
|
3098
|
+
|
|
3099
|
+
msg = SearchPlayersResponse()
|
|
3100
|
+
msg.ParseFromString(data)
|
|
3101
|
+
|
|
3102
|
+
return msg
|
|
3103
|
+
|
|
3104
|
+
@staticmethod
|
|
3105
|
+
def getPlayerFriendById2Request(request: GetPlayerFriendByIdRequest):
|
|
3106
|
+
msg = request.SerializeToString()
|
|
3107
|
+
|
|
3108
|
+
return 151, msg # Xmm: 0
|
|
3109
|
+
|
|
3110
|
+
@staticmethod
|
|
3111
|
+
def getPlayerFriendById2Response(response: Response) -> GetPlayerFriendByIdResponse:
|
|
3112
|
+
if response.exception.code:
|
|
3113
|
+
raise AstandyRPCException(response.exception)
|
|
3114
|
+
|
|
3115
|
+
data = response.data[0].one
|
|
3116
|
+
|
|
3117
|
+
msg = GetPlayerFriendByIdResponse()
|
|
3118
|
+
msg.ParseFromString(data)
|
|
3119
|
+
|
|
3120
|
+
return msg
|
|
3121
|
+
|
|
3122
|
+
@staticmethod
|
|
3123
|
+
def sendFriendRequest2Request(request: SendFriendRequestRequest):
|
|
3124
|
+
msg = request.SerializeToString()
|
|
3125
|
+
|
|
3126
|
+
return 153, msg # Xmm: 0
|
|
3127
|
+
|
|
3128
|
+
@staticmethod
|
|
3129
|
+
def sendFriendRequest2Response(response: Response) -> SendFriendRequestResponse:
|
|
3130
|
+
if response.exception.code:
|
|
3131
|
+
raise AstandyRPCException(response.exception)
|
|
3132
|
+
|
|
3133
|
+
data = response.data[0].one
|
|
3134
|
+
|
|
3135
|
+
msg = SendFriendRequestResponse()
|
|
3136
|
+
msg.ParseFromString(data)
|
|
3137
|
+
|
|
3138
|
+
return msg
|
|
3139
|
+
|
|
3140
|
+
@staticmethod
|
|
3141
|
+
def blockFriend2Request(request: BlockFriendRequest):
|
|
3142
|
+
msg = request.SerializeToString()
|
|
3143
|
+
|
|
3144
|
+
return 159, msg # Xmm: 0
|
|
3145
|
+
|
|
3146
|
+
@staticmethod
|
|
3147
|
+
def blockFriend2Response(response: Response) -> BlockFriendResponse:
|
|
3148
|
+
if response.exception.code:
|
|
3149
|
+
raise AstandyRPCException(response.exception)
|
|
3150
|
+
|
|
3151
|
+
data = response.data[0].one
|
|
3152
|
+
|
|
3153
|
+
msg = BlockFriendResponse()
|
|
3154
|
+
msg.ParseFromString(data)
|
|
3155
|
+
|
|
3156
|
+
return msg
|
|
3157
|
+
|
|
3158
|
+
@staticmethod
|
|
3159
|
+
def removeFriend2Request(request: RemoveFriendRequest):
|
|
3160
|
+
msg = request.SerializeToString()
|
|
3161
|
+
|
|
3162
|
+
return 157, msg # Xmm: 0
|
|
3163
|
+
|
|
3164
|
+
@staticmethod
|
|
3165
|
+
def removeFriend2Response(response: Response) -> RemoveFriendResponse:
|
|
3166
|
+
if response.exception.code:
|
|
3167
|
+
raise AstandyRPCException(response.exception)
|
|
3168
|
+
|
|
3169
|
+
data = response.data[0].one
|
|
3170
|
+
|
|
3171
|
+
msg = RemoveFriendResponse()
|
|
3172
|
+
msg.ParseFromString(data)
|
|
3173
|
+
|
|
3174
|
+
return msg
|
|
3175
|
+
|
|
3176
|
+
@staticmethod
|
|
3177
|
+
def unblockFriend2Request(request: UnblockFriendRequest):
|
|
3178
|
+
msg = request.SerializeToString()
|
|
3179
|
+
|
|
3180
|
+
return 160, msg # Xmm: 0
|
|
3181
|
+
|
|
3182
|
+
@staticmethod
|
|
3183
|
+
def unblockFriend2Response(response: Response) -> UnblockFriendResponse:
|
|
3184
|
+
if response.exception.code:
|
|
3185
|
+
raise AstandyRPCException(response.exception)
|
|
3186
|
+
|
|
3187
|
+
data = response.data[0].one
|
|
3188
|
+
|
|
3189
|
+
msg = UnblockFriendResponse()
|
|
3190
|
+
msg.ParseFromString(data)
|
|
3191
|
+
|
|
3192
|
+
return msg
|
|
3193
|
+
|
|
3194
|
+
class GameEventRemoteService:
|
|
3195
|
+
@staticmethod
|
|
3196
|
+
def getCachedPlayerGameEventsRequest(request: GetCachedPlayerGameEventsRequest):
|
|
3197
|
+
msg = request.SerializeToString()
|
|
3198
|
+
|
|
3199
|
+
return 216, msg # Xmm: 0
|
|
3200
|
+
|
|
3201
|
+
@staticmethod
|
|
3202
|
+
def getCachedPlayerGameEventsResponse(response: Response) -> GetCachedPlayerGameEventsResponse:
|
|
3203
|
+
if response.exception.code:
|
|
3204
|
+
raise AstandyRPCException(response.exception)
|
|
3205
|
+
|
|
3206
|
+
data = response.data[0].one
|
|
3207
|
+
|
|
3208
|
+
msg = GetCachedPlayerGameEventsResponse()
|
|
3209
|
+
msg.ParseFromString(data)
|
|
3210
|
+
|
|
3211
|
+
return msg
|
|
3212
|
+
|
|
3213
|
+
@staticmethod
|
|
3214
|
+
def getPlayerGameEventsProgressesRequest(request: GetPlayerGameEventsProgressesRequest):
|
|
3215
|
+
msg = request.SerializeToString()
|
|
3216
|
+
|
|
3217
|
+
return 215, msg # Xmm: 0
|
|
3218
|
+
|
|
3219
|
+
@staticmethod
|
|
3220
|
+
def getPlayerGameEventsProgressesResponse(response: Response) -> GetPlayerGameEventsProgressesResponse:
|
|
3221
|
+
if response.exception.code:
|
|
3222
|
+
raise AstandyRPCException(response.exception)
|
|
3223
|
+
|
|
3224
|
+
data = response.data[0].one
|
|
3225
|
+
|
|
3226
|
+
msg = GetPlayerGameEventsProgressesResponse()
|
|
3227
|
+
msg.ParseFromString(data)
|
|
3228
|
+
|
|
3229
|
+
return msg
|
|
3230
|
+
|
|
3231
|
+
@staticmethod
|
|
3232
|
+
def processChallengeRequest(request: ProgressChallengeRequest):
|
|
3233
|
+
msg = request.SerializeToString()
|
|
3234
|
+
|
|
3235
|
+
return 217, msg # Xmm: 0
|
|
3236
|
+
|
|
3237
|
+
@staticmethod
|
|
3238
|
+
def processChallengeResponse(response: Response) -> ProgressChallengeResponse:
|
|
3239
|
+
if response.exception.code:
|
|
3240
|
+
raise AstandyRPCException(response.exception)
|
|
3241
|
+
|
|
3242
|
+
data = response.data[0].one
|
|
3243
|
+
|
|
3244
|
+
msg = ProgressChallengeResponse()
|
|
3245
|
+
msg.ParseFromString(data)
|
|
3246
|
+
|
|
3247
|
+
return msg
|
|
3248
|
+
|
|
3249
|
+
class GdprRemoteService:
|
|
3250
|
+
@staticmethod
|
|
3251
|
+
def recoverAccountRequest(request: RecoverAccountRequest):
|
|
3252
|
+
msg = request.SerializeToString()
|
|
3253
|
+
|
|
3254
|
+
return 405, msg # Xmm: 0
|
|
3255
|
+
|
|
3256
|
+
@staticmethod
|
|
3257
|
+
def recoverAccountResponse(response: Response) -> RecoverAccountResponse:
|
|
3258
|
+
if response.exception.code:
|
|
3259
|
+
raise AstandyRPCException(response.exception)
|
|
3260
|
+
|
|
3261
|
+
data = response.data[0].one
|
|
3262
|
+
|
|
3263
|
+
msg = RecoverAccountResponse()
|
|
3264
|
+
msg.ParseFromString(data)
|
|
3265
|
+
|
|
3266
|
+
return msg
|
|
3267
|
+
|
|
3268
|
+
@staticmethod
|
|
3269
|
+
def createRequestEncryptedRequest(request: CreateRequestEncryptedRequest, cipher):
|
|
3270
|
+
msg = request.SerializeToString()
|
|
3271
|
+
msg = cipher.encrypt(msg)
|
|
3272
|
+
return 407, msg # Xmm: 0
|
|
3273
|
+
|
|
3274
|
+
@staticmethod
|
|
3275
|
+
def createRequestEncryptedResponse(response: Response, cipher) -> CreateRequestEncryptedResponse:
|
|
3276
|
+
if response.exception.code:
|
|
3277
|
+
raise AstandyRPCException(response.exception)
|
|
3278
|
+
|
|
3279
|
+
data = response.data[0].one
|
|
3280
|
+
data = cipher.decrypt(data)
|
|
3281
|
+
msg = CreateRequestEncryptedResponse()
|
|
3282
|
+
msg.ParseFromString(data)
|
|
3283
|
+
|
|
3284
|
+
return msg
|
|
3285
|
+
|
|
3286
|
+
@staticmethod
|
|
3287
|
+
def deleteAccountRequest(request: DeleteAccountRequest):
|
|
3288
|
+
msg = request.SerializeToString()
|
|
3289
|
+
|
|
3290
|
+
return 406, msg # Xmm: 0
|
|
3291
|
+
|
|
3292
|
+
@staticmethod
|
|
3293
|
+
def deleteAccountResponse(response: Response) -> DeleteAccountResponse:
|
|
3294
|
+
if response.exception.code:
|
|
3295
|
+
raise AstandyRPCException(response.exception)
|
|
3296
|
+
|
|
3297
|
+
data = response.data[0].one
|
|
3298
|
+
|
|
3299
|
+
msg = DeleteAccountResponse()
|
|
3300
|
+
msg.ParseFromString(data)
|
|
3301
|
+
|
|
3302
|
+
return msg
|
|
3303
|
+
|
|
3304
|
+
class HelloRemoteService:
|
|
3305
|
+
@staticmethod
|
|
3306
|
+
def helloRequest(request: CHGACEEHFADEDHH, cipher):
|
|
3307
|
+
msg = request.SerializeToString()
|
|
3308
|
+
msg = cipher.encrypt(msg)
|
|
3309
|
+
return 1, msg # Xmm: 0
|
|
3310
|
+
|
|
3311
|
+
@staticmethod
|
|
3312
|
+
def helloResponse(response: Response, cipher) -> BBFGDBCEGCBFBEE:
|
|
3313
|
+
if response.exception.code:
|
|
3314
|
+
raise AstandyRPCException(response.exception)
|
|
3315
|
+
|
|
3316
|
+
data = response.data[0].one
|
|
3317
|
+
data = cipher.decrypt(data)
|
|
3318
|
+
msg = BBFGDBCEGCBFBEE()
|
|
3319
|
+
msg.ParseFromString(data)
|
|
3320
|
+
|
|
3321
|
+
return msg
|
|
3322
|
+
|