File tree Expand file tree Collapse file tree 1 file changed +57
-3
lines changed
python/socha/api/protocol Expand file tree Collapse file tree 1 file changed +57
-3
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,39 @@ class Meta:
80
80
value : str = field (default = '' )
81
81
82
82
83
+ @dataclass
84
+ class LastMove :
85
+ class Meta :
86
+ name = 'lastMove'
87
+
88
+ class_value : Optional [str ] = field (
89
+ default = None ,
90
+ metadata = {
91
+ 'name' : 'class' ,
92
+ 'type' : 'Attribute' ,
93
+ 'required' : True ,
94
+ },
95
+ )
96
+ distance : Optional [int ] = field (
97
+ default = None ,
98
+ metadata = {
99
+ 'type' : 'Attribute' ,
100
+ },
101
+ )
102
+ card : Optional [str ] = field (
103
+ default = None ,
104
+ metadata = {
105
+ 'type' : 'Element' ,
106
+ },
107
+ )
108
+ amount : Optional [int ] = field (
109
+ default = None ,
110
+ metadata = {
111
+ 'type' : 'Attribute' ,
112
+ },
113
+ )
114
+
115
+
83
116
@dataclass
84
117
class Hare :
85
118
class Meta :
@@ -181,11 +214,17 @@ class Meta:
181
214
hare : List [Hare ] = field (
182
215
default_factory = list ,
183
216
metadata = {
184
- 'name' : 'hare' ,
185
217
'type' : 'Element' ,
186
218
'min_occurs' : 1 ,
187
219
},
188
220
)
221
+ last_move : Optional [LastMove ] = field (
222
+ default = None ,
223
+ metadata = {
224
+ 'name' : 'lastMove' ,
225
+ 'type' : 'Element' ,
226
+ },
227
+ )
189
228
190
229
191
230
@dataclass
@@ -229,6 +268,21 @@ class Meta:
229
268
)
230
269
231
270
271
+ @dataclass
272
+ class Joined :
273
+ class Meta :
274
+ name = 'joined'
275
+
276
+ room_id : Optional [str ] = field (
277
+ default = None ,
278
+ metadata = {
279
+ 'name' : 'roomId' ,
280
+ 'type' : 'Attribute' ,
281
+ 'required' : True ,
282
+ },
283
+ )
284
+
285
+
232
286
@dataclass
233
287
class Left (ProtocolPacket ):
234
288
"""
@@ -701,8 +755,8 @@ class Meta:
701
755
'required' : True ,
702
756
},
703
757
)
704
- cards : Optional [ Cards ] = field (
705
- default = None ,
758
+ card : List [ str ] = field (
759
+ default_factory = list ,
706
760
metadata = {
707
761
'type' : 'Element' ,
708
762
},
You can’t perform that action at this time.
0 commit comments