| 3131 |
rajveer |
1 |
#
|
|
|
2 |
# Autogenerated by Thrift
|
|
|
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
|
|
11 |
from thrift.protocol import TBinaryProtocol
|
|
|
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
|
|
19 |
def getTickets(self, customerId):
|
|
|
20 |
"""
|
|
|
21 |
Parameters:
|
|
|
22 |
- customerId
|
|
|
23 |
"""
|
|
|
24 |
pass
|
|
|
25 |
|
|
|
26 |
def getAssignedTickets(self, agentId):
|
|
|
27 |
"""
|
|
|
28 |
Parameters:
|
|
|
29 |
- agentId
|
|
|
30 |
"""
|
|
|
31 |
pass
|
|
|
32 |
|
|
|
33 |
def getOpenTickets(self, ):
|
|
|
34 |
pass
|
|
|
35 |
|
|
|
36 |
def getTicket(self, ticketId):
|
|
|
37 |
"""
|
|
|
38 |
Parameters:
|
|
|
39 |
- ticketId
|
|
|
40 |
"""
|
|
|
41 |
pass
|
|
|
42 |
|
|
|
43 |
def updateTicket(self, ticket):
|
|
|
44 |
"""
|
|
|
45 |
Parameters:
|
|
|
46 |
- ticket
|
|
|
47 |
"""
|
|
|
48 |
pass
|
|
|
49 |
|
|
|
50 |
def insertTicket(self, ticket):
|
|
|
51 |
"""
|
|
|
52 |
Parameters:
|
|
|
53 |
- ticket
|
|
|
54 |
"""
|
|
|
55 |
pass
|
|
|
56 |
|
|
|
57 |
def getActivities(self, customerId):
|
|
|
58 |
"""
|
|
|
59 |
Parameters:
|
|
|
60 |
- customerId
|
|
|
61 |
"""
|
|
|
62 |
pass
|
|
|
63 |
|
|
|
64 |
def getActivitiesForTicket(self, ticketId):
|
|
|
65 |
"""
|
|
|
66 |
Parameters:
|
|
|
67 |
- ticketId
|
|
|
68 |
"""
|
|
|
69 |
pass
|
|
|
70 |
|
|
|
71 |
def getActivity(self, activityId):
|
|
|
72 |
"""
|
|
|
73 |
Parameters:
|
|
|
74 |
- activityId
|
|
|
75 |
"""
|
|
|
76 |
pass
|
|
|
77 |
|
|
|
78 |
def getLastActivity(self, ticketId):
|
|
|
79 |
"""
|
|
|
80 |
Parameters:
|
|
|
81 |
- ticketId
|
|
|
82 |
"""
|
|
|
83 |
pass
|
|
|
84 |
|
|
|
85 |
def insertActivity(self, activity):
|
|
|
86 |
"""
|
|
|
87 |
Parameters:
|
|
|
88 |
- activity
|
|
|
89 |
"""
|
|
|
90 |
pass
|
|
|
91 |
|
|
|
92 |
def getAllAgents(self, ):
|
|
|
93 |
pass
|
|
|
94 |
|
|
|
95 |
def getAgent(self, agentId):
|
|
|
96 |
"""
|
|
|
97 |
Parameters:
|
|
|
98 |
- agentId
|
|
|
99 |
"""
|
|
|
100 |
pass
|
|
|
101 |
|
|
|
102 |
def getAgentByEmailId(self, agentEmailId):
|
|
|
103 |
"""
|
|
|
104 |
Parameters:
|
|
|
105 |
- agentEmailId
|
|
|
106 |
"""
|
|
|
107 |
pass
|
|
|
108 |
|
|
|
109 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
110 |
"""
|
|
|
111 |
Parameters:
|
|
|
112 |
- agentEmailId
|
|
|
113 |
- password
|
|
|
114 |
"""
|
|
|
115 |
pass
|
|
|
116 |
|
|
|
117 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
118 |
"""
|
|
|
119 |
Parameters:
|
|
|
120 |
- agentEmailId
|
|
|
121 |
"""
|
|
|
122 |
pass
|
|
|
123 |
|
|
|
124 |
def getPermissionsForRoleName(self, roleName):
|
|
|
125 |
"""
|
|
|
126 |
Parameters:
|
|
|
127 |
- roleName
|
|
|
128 |
"""
|
|
|
129 |
pass
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
class Client(Iface):
|
|
|
133 |
def __init__(self, iprot, oprot=None):
|
|
|
134 |
self._iprot = self._oprot = iprot
|
|
|
135 |
if oprot != None:
|
|
|
136 |
self._oprot = oprot
|
|
|
137 |
self._seqid = 0
|
|
|
138 |
|
|
|
139 |
def getTickets(self, customerId):
|
|
|
140 |
"""
|
|
|
141 |
Parameters:
|
|
|
142 |
- customerId
|
|
|
143 |
"""
|
|
|
144 |
self.send_getTickets(customerId)
|
|
|
145 |
return self.recv_getTickets()
|
|
|
146 |
|
|
|
147 |
def send_getTickets(self, customerId):
|
|
|
148 |
self._oprot.writeMessageBegin('getTickets', TMessageType.CALL, self._seqid)
|
|
|
149 |
args = getTickets_args()
|
|
|
150 |
args.customerId = customerId
|
|
|
151 |
args.write(self._oprot)
|
|
|
152 |
self._oprot.writeMessageEnd()
|
|
|
153 |
self._oprot.trans.flush()
|
|
|
154 |
|
|
|
155 |
def recv_getTickets(self, ):
|
|
|
156 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
157 |
if mtype == TMessageType.EXCEPTION:
|
|
|
158 |
x = TApplicationException()
|
|
|
159 |
x.read(self._iprot)
|
|
|
160 |
self._iprot.readMessageEnd()
|
|
|
161 |
raise x
|
|
|
162 |
result = getTickets_result()
|
|
|
163 |
result.read(self._iprot)
|
|
|
164 |
self._iprot.readMessageEnd()
|
|
|
165 |
if result.success != None:
|
|
|
166 |
return result.success
|
|
|
167 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
|
|
|
168 |
|
|
|
169 |
def getAssignedTickets(self, agentId):
|
|
|
170 |
"""
|
|
|
171 |
Parameters:
|
|
|
172 |
- agentId
|
|
|
173 |
"""
|
|
|
174 |
self.send_getAssignedTickets(agentId)
|
|
|
175 |
return self.recv_getAssignedTickets()
|
|
|
176 |
|
|
|
177 |
def send_getAssignedTickets(self, agentId):
|
|
|
178 |
self._oprot.writeMessageBegin('getAssignedTickets', TMessageType.CALL, self._seqid)
|
|
|
179 |
args = getAssignedTickets_args()
|
|
|
180 |
args.agentId = agentId
|
|
|
181 |
args.write(self._oprot)
|
|
|
182 |
self._oprot.writeMessageEnd()
|
|
|
183 |
self._oprot.trans.flush()
|
|
|
184 |
|
|
|
185 |
def recv_getAssignedTickets(self, ):
|
|
|
186 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
187 |
if mtype == TMessageType.EXCEPTION:
|
|
|
188 |
x = TApplicationException()
|
|
|
189 |
x.read(self._iprot)
|
|
|
190 |
self._iprot.readMessageEnd()
|
|
|
191 |
raise x
|
|
|
192 |
result = getAssignedTickets_result()
|
|
|
193 |
result.read(self._iprot)
|
|
|
194 |
self._iprot.readMessageEnd()
|
|
|
195 |
if result.success != None:
|
|
|
196 |
return result.success
|
|
|
197 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
|
|
|
198 |
|
|
|
199 |
def getOpenTickets(self, ):
|
|
|
200 |
self.send_getOpenTickets()
|
|
|
201 |
return self.recv_getOpenTickets()
|
|
|
202 |
|
|
|
203 |
def send_getOpenTickets(self, ):
|
|
|
204 |
self._oprot.writeMessageBegin('getOpenTickets', TMessageType.CALL, self._seqid)
|
|
|
205 |
args = getOpenTickets_args()
|
|
|
206 |
args.write(self._oprot)
|
|
|
207 |
self._oprot.writeMessageEnd()
|
|
|
208 |
self._oprot.trans.flush()
|
|
|
209 |
|
|
|
210 |
def recv_getOpenTickets(self, ):
|
|
|
211 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
212 |
if mtype == TMessageType.EXCEPTION:
|
|
|
213 |
x = TApplicationException()
|
|
|
214 |
x.read(self._iprot)
|
|
|
215 |
self._iprot.readMessageEnd()
|
|
|
216 |
raise x
|
|
|
217 |
result = getOpenTickets_result()
|
|
|
218 |
result.read(self._iprot)
|
|
|
219 |
self._iprot.readMessageEnd()
|
|
|
220 |
if result.success != None:
|
|
|
221 |
return result.success
|
|
|
222 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTickets failed: unknown result");
|
|
|
223 |
|
|
|
224 |
def getTicket(self, ticketId):
|
|
|
225 |
"""
|
|
|
226 |
Parameters:
|
|
|
227 |
- ticketId
|
|
|
228 |
"""
|
|
|
229 |
self.send_getTicket(ticketId)
|
|
|
230 |
return self.recv_getTicket()
|
|
|
231 |
|
|
|
232 |
def send_getTicket(self, ticketId):
|
|
|
233 |
self._oprot.writeMessageBegin('getTicket', TMessageType.CALL, self._seqid)
|
|
|
234 |
args = getTicket_args()
|
|
|
235 |
args.ticketId = ticketId
|
|
|
236 |
args.write(self._oprot)
|
|
|
237 |
self._oprot.writeMessageEnd()
|
|
|
238 |
self._oprot.trans.flush()
|
|
|
239 |
|
|
|
240 |
def recv_getTicket(self, ):
|
|
|
241 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
242 |
if mtype == TMessageType.EXCEPTION:
|
|
|
243 |
x = TApplicationException()
|
|
|
244 |
x.read(self._iprot)
|
|
|
245 |
self._iprot.readMessageEnd()
|
|
|
246 |
raise x
|
|
|
247 |
result = getTicket_result()
|
|
|
248 |
result.read(self._iprot)
|
|
|
249 |
self._iprot.readMessageEnd()
|
|
|
250 |
if result.success != None:
|
|
|
251 |
return result.success
|
|
|
252 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getTicket failed: unknown result");
|
|
|
253 |
|
|
|
254 |
def updateTicket(self, ticket):
|
|
|
255 |
"""
|
|
|
256 |
Parameters:
|
|
|
257 |
- ticket
|
|
|
258 |
"""
|
|
|
259 |
self.send_updateTicket(ticket)
|
|
|
260 |
self.recv_updateTicket()
|
|
|
261 |
|
|
|
262 |
def send_updateTicket(self, ticket):
|
|
|
263 |
self._oprot.writeMessageBegin('updateTicket', TMessageType.CALL, self._seqid)
|
|
|
264 |
args = updateTicket_args()
|
|
|
265 |
args.ticket = ticket
|
|
|
266 |
args.write(self._oprot)
|
|
|
267 |
self._oprot.writeMessageEnd()
|
|
|
268 |
self._oprot.trans.flush()
|
|
|
269 |
|
|
|
270 |
def recv_updateTicket(self, ):
|
|
|
271 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
272 |
if mtype == TMessageType.EXCEPTION:
|
|
|
273 |
x = TApplicationException()
|
|
|
274 |
x.read(self._iprot)
|
|
|
275 |
self._iprot.readMessageEnd()
|
|
|
276 |
raise x
|
|
|
277 |
result = updateTicket_result()
|
|
|
278 |
result.read(self._iprot)
|
|
|
279 |
self._iprot.readMessageEnd()
|
|
|
280 |
return
|
|
|
281 |
|
|
|
282 |
def insertTicket(self, ticket):
|
|
|
283 |
"""
|
|
|
284 |
Parameters:
|
|
|
285 |
- ticket
|
|
|
286 |
"""
|
|
|
287 |
self.send_insertTicket(ticket)
|
|
|
288 |
return self.recv_insertTicket()
|
|
|
289 |
|
|
|
290 |
def send_insertTicket(self, ticket):
|
|
|
291 |
self._oprot.writeMessageBegin('insertTicket', TMessageType.CALL, self._seqid)
|
|
|
292 |
args = insertTicket_args()
|
|
|
293 |
args.ticket = ticket
|
|
|
294 |
args.write(self._oprot)
|
|
|
295 |
self._oprot.writeMessageEnd()
|
|
|
296 |
self._oprot.trans.flush()
|
|
|
297 |
|
|
|
298 |
def recv_insertTicket(self, ):
|
|
|
299 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
300 |
if mtype == TMessageType.EXCEPTION:
|
|
|
301 |
x = TApplicationException()
|
|
|
302 |
x.read(self._iprot)
|
|
|
303 |
self._iprot.readMessageEnd()
|
|
|
304 |
raise x
|
|
|
305 |
result = insertTicket_result()
|
|
|
306 |
result.read(self._iprot)
|
|
|
307 |
self._iprot.readMessageEnd()
|
|
|
308 |
if result.success != None:
|
|
|
309 |
return result.success
|
|
|
310 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
|
|
|
311 |
|
|
|
312 |
def getActivities(self, customerId):
|
|
|
313 |
"""
|
|
|
314 |
Parameters:
|
|
|
315 |
- customerId
|
|
|
316 |
"""
|
|
|
317 |
self.send_getActivities(customerId)
|
|
|
318 |
return self.recv_getActivities()
|
|
|
319 |
|
|
|
320 |
def send_getActivities(self, customerId):
|
|
|
321 |
self._oprot.writeMessageBegin('getActivities', TMessageType.CALL, self._seqid)
|
|
|
322 |
args = getActivities_args()
|
|
|
323 |
args.customerId = customerId
|
|
|
324 |
args.write(self._oprot)
|
|
|
325 |
self._oprot.writeMessageEnd()
|
|
|
326 |
self._oprot.trans.flush()
|
|
|
327 |
|
|
|
328 |
def recv_getActivities(self, ):
|
|
|
329 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
330 |
if mtype == TMessageType.EXCEPTION:
|
|
|
331 |
x = TApplicationException()
|
|
|
332 |
x.read(self._iprot)
|
|
|
333 |
self._iprot.readMessageEnd()
|
|
|
334 |
raise x
|
|
|
335 |
result = getActivities_result()
|
|
|
336 |
result.read(self._iprot)
|
|
|
337 |
self._iprot.readMessageEnd()
|
|
|
338 |
if result.success != None:
|
|
|
339 |
return result.success
|
|
|
340 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
|
|
|
341 |
|
|
|
342 |
def getActivitiesForTicket(self, ticketId):
|
|
|
343 |
"""
|
|
|
344 |
Parameters:
|
|
|
345 |
- ticketId
|
|
|
346 |
"""
|
|
|
347 |
self.send_getActivitiesForTicket(ticketId)
|
|
|
348 |
return self.recv_getActivitiesForTicket()
|
|
|
349 |
|
|
|
350 |
def send_getActivitiesForTicket(self, ticketId):
|
|
|
351 |
self._oprot.writeMessageBegin('getActivitiesForTicket', TMessageType.CALL, self._seqid)
|
|
|
352 |
args = getActivitiesForTicket_args()
|
|
|
353 |
args.ticketId = ticketId
|
|
|
354 |
args.write(self._oprot)
|
|
|
355 |
self._oprot.writeMessageEnd()
|
|
|
356 |
self._oprot.trans.flush()
|
|
|
357 |
|
|
|
358 |
def recv_getActivitiesForTicket(self, ):
|
|
|
359 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
360 |
if mtype == TMessageType.EXCEPTION:
|
|
|
361 |
x = TApplicationException()
|
|
|
362 |
x.read(self._iprot)
|
|
|
363 |
self._iprot.readMessageEnd()
|
|
|
364 |
raise x
|
|
|
365 |
result = getActivitiesForTicket_result()
|
|
|
366 |
result.read(self._iprot)
|
|
|
367 |
self._iprot.readMessageEnd()
|
|
|
368 |
if result.success != None:
|
|
|
369 |
return result.success
|
|
|
370 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesForTicket failed: unknown result");
|
|
|
371 |
|
|
|
372 |
def getActivity(self, activityId):
|
|
|
373 |
"""
|
|
|
374 |
Parameters:
|
|
|
375 |
- activityId
|
|
|
376 |
"""
|
|
|
377 |
self.send_getActivity(activityId)
|
|
|
378 |
return self.recv_getActivity()
|
|
|
379 |
|
|
|
380 |
def send_getActivity(self, activityId):
|
|
|
381 |
self._oprot.writeMessageBegin('getActivity', TMessageType.CALL, self._seqid)
|
|
|
382 |
args = getActivity_args()
|
|
|
383 |
args.activityId = activityId
|
|
|
384 |
args.write(self._oprot)
|
|
|
385 |
self._oprot.writeMessageEnd()
|
|
|
386 |
self._oprot.trans.flush()
|
|
|
387 |
|
|
|
388 |
def recv_getActivity(self, ):
|
|
|
389 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
390 |
if mtype == TMessageType.EXCEPTION:
|
|
|
391 |
x = TApplicationException()
|
|
|
392 |
x.read(self._iprot)
|
|
|
393 |
self._iprot.readMessageEnd()
|
|
|
394 |
raise x
|
|
|
395 |
result = getActivity_result()
|
|
|
396 |
result.read(self._iprot)
|
|
|
397 |
self._iprot.readMessageEnd()
|
|
|
398 |
if result.success != None:
|
|
|
399 |
return result.success
|
|
|
400 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivity failed: unknown result");
|
|
|
401 |
|
|
|
402 |
def getLastActivity(self, ticketId):
|
|
|
403 |
"""
|
|
|
404 |
Parameters:
|
|
|
405 |
- ticketId
|
|
|
406 |
"""
|
|
|
407 |
self.send_getLastActivity(ticketId)
|
|
|
408 |
return self.recv_getLastActivity()
|
|
|
409 |
|
|
|
410 |
def send_getLastActivity(self, ticketId):
|
|
|
411 |
self._oprot.writeMessageBegin('getLastActivity', TMessageType.CALL, self._seqid)
|
|
|
412 |
args = getLastActivity_args()
|
|
|
413 |
args.ticketId = ticketId
|
|
|
414 |
args.write(self._oprot)
|
|
|
415 |
self._oprot.writeMessageEnd()
|
|
|
416 |
self._oprot.trans.flush()
|
|
|
417 |
|
|
|
418 |
def recv_getLastActivity(self, ):
|
|
|
419 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
420 |
if mtype == TMessageType.EXCEPTION:
|
|
|
421 |
x = TApplicationException()
|
|
|
422 |
x.read(self._iprot)
|
|
|
423 |
self._iprot.readMessageEnd()
|
|
|
424 |
raise x
|
|
|
425 |
result = getLastActivity_result()
|
|
|
426 |
result.read(self._iprot)
|
|
|
427 |
self._iprot.readMessageEnd()
|
|
|
428 |
if result.success != None:
|
|
|
429 |
return result.success
|
|
|
430 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastActivity failed: unknown result");
|
|
|
431 |
|
|
|
432 |
def insertActivity(self, activity):
|
|
|
433 |
"""
|
|
|
434 |
Parameters:
|
|
|
435 |
- activity
|
|
|
436 |
"""
|
|
|
437 |
self.send_insertActivity(activity)
|
|
|
438 |
self.recv_insertActivity()
|
|
|
439 |
|
|
|
440 |
def send_insertActivity(self, activity):
|
|
|
441 |
self._oprot.writeMessageBegin('insertActivity', TMessageType.CALL, self._seqid)
|
|
|
442 |
args = insertActivity_args()
|
|
|
443 |
args.activity = activity
|
|
|
444 |
args.write(self._oprot)
|
|
|
445 |
self._oprot.writeMessageEnd()
|
|
|
446 |
self._oprot.trans.flush()
|
|
|
447 |
|
|
|
448 |
def recv_insertActivity(self, ):
|
|
|
449 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
450 |
if mtype == TMessageType.EXCEPTION:
|
|
|
451 |
x = TApplicationException()
|
|
|
452 |
x.read(self._iprot)
|
|
|
453 |
self._iprot.readMessageEnd()
|
|
|
454 |
raise x
|
|
|
455 |
result = insertActivity_result()
|
|
|
456 |
result.read(self._iprot)
|
|
|
457 |
self._iprot.readMessageEnd()
|
|
|
458 |
return
|
|
|
459 |
|
|
|
460 |
def getAllAgents(self, ):
|
|
|
461 |
self.send_getAllAgents()
|
|
|
462 |
return self.recv_getAllAgents()
|
|
|
463 |
|
|
|
464 |
def send_getAllAgents(self, ):
|
|
|
465 |
self._oprot.writeMessageBegin('getAllAgents', TMessageType.CALL, self._seqid)
|
|
|
466 |
args = getAllAgents_args()
|
|
|
467 |
args.write(self._oprot)
|
|
|
468 |
self._oprot.writeMessageEnd()
|
|
|
469 |
self._oprot.trans.flush()
|
|
|
470 |
|
|
|
471 |
def recv_getAllAgents(self, ):
|
|
|
472 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
473 |
if mtype == TMessageType.EXCEPTION:
|
|
|
474 |
x = TApplicationException()
|
|
|
475 |
x.read(self._iprot)
|
|
|
476 |
self._iprot.readMessageEnd()
|
|
|
477 |
raise x
|
|
|
478 |
result = getAllAgents_result()
|
|
|
479 |
result.read(self._iprot)
|
|
|
480 |
self._iprot.readMessageEnd()
|
|
|
481 |
if result.success != None:
|
|
|
482 |
return result.success
|
|
|
483 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAgents failed: unknown result");
|
|
|
484 |
|
|
|
485 |
def getAgent(self, agentId):
|
|
|
486 |
"""
|
|
|
487 |
Parameters:
|
|
|
488 |
- agentId
|
|
|
489 |
"""
|
|
|
490 |
self.send_getAgent(agentId)
|
|
|
491 |
return self.recv_getAgent()
|
|
|
492 |
|
|
|
493 |
def send_getAgent(self, agentId):
|
|
|
494 |
self._oprot.writeMessageBegin('getAgent', TMessageType.CALL, self._seqid)
|
|
|
495 |
args = getAgent_args()
|
|
|
496 |
args.agentId = agentId
|
|
|
497 |
args.write(self._oprot)
|
|
|
498 |
self._oprot.writeMessageEnd()
|
|
|
499 |
self._oprot.trans.flush()
|
|
|
500 |
|
|
|
501 |
def recv_getAgent(self, ):
|
|
|
502 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
503 |
if mtype == TMessageType.EXCEPTION:
|
|
|
504 |
x = TApplicationException()
|
|
|
505 |
x.read(self._iprot)
|
|
|
506 |
self._iprot.readMessageEnd()
|
|
|
507 |
raise x
|
|
|
508 |
result = getAgent_result()
|
|
|
509 |
result.read(self._iprot)
|
|
|
510 |
self._iprot.readMessageEnd()
|
|
|
511 |
if result.success != None:
|
|
|
512 |
return result.success
|
|
|
513 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgent failed: unknown result");
|
|
|
514 |
|
|
|
515 |
def getAgentByEmailId(self, agentEmailId):
|
|
|
516 |
"""
|
|
|
517 |
Parameters:
|
|
|
518 |
- agentEmailId
|
|
|
519 |
"""
|
|
|
520 |
self.send_getAgentByEmailId(agentEmailId)
|
|
|
521 |
return self.recv_getAgentByEmailId()
|
|
|
522 |
|
|
|
523 |
def send_getAgentByEmailId(self, agentEmailId):
|
|
|
524 |
self._oprot.writeMessageBegin('getAgentByEmailId', TMessageType.CALL, self._seqid)
|
|
|
525 |
args = getAgentByEmailId_args()
|
|
|
526 |
args.agentEmailId = agentEmailId
|
|
|
527 |
args.write(self._oprot)
|
|
|
528 |
self._oprot.writeMessageEnd()
|
|
|
529 |
self._oprot.trans.flush()
|
|
|
530 |
|
|
|
531 |
def recv_getAgentByEmailId(self, ):
|
|
|
532 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
533 |
if mtype == TMessageType.EXCEPTION:
|
|
|
534 |
x = TApplicationException()
|
|
|
535 |
x.read(self._iprot)
|
|
|
536 |
self._iprot.readMessageEnd()
|
|
|
537 |
raise x
|
|
|
538 |
result = getAgentByEmailId_result()
|
|
|
539 |
result.read(self._iprot)
|
|
|
540 |
self._iprot.readMessageEnd()
|
|
|
541 |
if result.success != None:
|
|
|
542 |
return result.success
|
|
|
543 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");
|
|
|
544 |
|
|
|
545 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
546 |
"""
|
|
|
547 |
Parameters:
|
|
|
548 |
- agentEmailId
|
|
|
549 |
- password
|
|
|
550 |
"""
|
|
|
551 |
self.send_updatePasswordForAgent(agentEmailId, password)
|
|
|
552 |
self.recv_updatePasswordForAgent()
|
|
|
553 |
|
|
|
554 |
def send_updatePasswordForAgent(self, agentEmailId, password):
|
|
|
555 |
self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
|
|
|
556 |
args = updatePasswordForAgent_args()
|
|
|
557 |
args.agentEmailId = agentEmailId
|
|
|
558 |
args.password = password
|
|
|
559 |
args.write(self._oprot)
|
|
|
560 |
self._oprot.writeMessageEnd()
|
|
|
561 |
self._oprot.trans.flush()
|
|
|
562 |
|
|
|
563 |
def recv_updatePasswordForAgent(self, ):
|
|
|
564 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
565 |
if mtype == TMessageType.EXCEPTION:
|
|
|
566 |
x = TApplicationException()
|
|
|
567 |
x.read(self._iprot)
|
|
|
568 |
self._iprot.readMessageEnd()
|
|
|
569 |
raise x
|
|
|
570 |
result = updatePasswordForAgent_result()
|
|
|
571 |
result.read(self._iprot)
|
|
|
572 |
self._iprot.readMessageEnd()
|
|
|
573 |
return
|
|
|
574 |
|
|
|
575 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
576 |
"""
|
|
|
577 |
Parameters:
|
|
|
578 |
- agentEmailId
|
|
|
579 |
"""
|
|
|
580 |
self.send_getRoleNamesForAgent(agentEmailId)
|
|
|
581 |
return self.recv_getRoleNamesForAgent()
|
|
|
582 |
|
|
|
583 |
def send_getRoleNamesForAgent(self, agentEmailId):
|
|
|
584 |
self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
|
|
|
585 |
args = getRoleNamesForAgent_args()
|
|
|
586 |
args.agentEmailId = agentEmailId
|
|
|
587 |
args.write(self._oprot)
|
|
|
588 |
self._oprot.writeMessageEnd()
|
|
|
589 |
self._oprot.trans.flush()
|
|
|
590 |
|
|
|
591 |
def recv_getRoleNamesForAgent(self, ):
|
|
|
592 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
593 |
if mtype == TMessageType.EXCEPTION:
|
|
|
594 |
x = TApplicationException()
|
|
|
595 |
x.read(self._iprot)
|
|
|
596 |
self._iprot.readMessageEnd()
|
|
|
597 |
raise x
|
|
|
598 |
result = getRoleNamesForAgent_result()
|
|
|
599 |
result.read(self._iprot)
|
|
|
600 |
self._iprot.readMessageEnd()
|
|
|
601 |
if result.success != None:
|
|
|
602 |
return result.success
|
|
|
603 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
|
|
|
604 |
|
|
|
605 |
def getPermissionsForRoleName(self, roleName):
|
|
|
606 |
"""
|
|
|
607 |
Parameters:
|
|
|
608 |
- roleName
|
|
|
609 |
"""
|
|
|
610 |
self.send_getPermissionsForRoleName(roleName)
|
|
|
611 |
return self.recv_getPermissionsForRoleName()
|
|
|
612 |
|
|
|
613 |
def send_getPermissionsForRoleName(self, roleName):
|
|
|
614 |
self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
|
|
|
615 |
args = getPermissionsForRoleName_args()
|
|
|
616 |
args.roleName = roleName
|
|
|
617 |
args.write(self._oprot)
|
|
|
618 |
self._oprot.writeMessageEnd()
|
|
|
619 |
self._oprot.trans.flush()
|
|
|
620 |
|
|
|
621 |
def recv_getPermissionsForRoleName(self, ):
|
|
|
622 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
623 |
if mtype == TMessageType.EXCEPTION:
|
|
|
624 |
x = TApplicationException()
|
|
|
625 |
x.read(self._iprot)
|
|
|
626 |
self._iprot.readMessageEnd()
|
|
|
627 |
raise x
|
|
|
628 |
result = getPermissionsForRoleName_result()
|
|
|
629 |
result.read(self._iprot)
|
|
|
630 |
self._iprot.readMessageEnd()
|
|
|
631 |
if result.success != None:
|
|
|
632 |
return result.success
|
|
|
633 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
|
|
|
634 |
|
|
|
635 |
|
|
|
636 |
class Processor(Iface, TProcessor):
|
|
|
637 |
def __init__(self, handler):
|
|
|
638 |
self._handler = handler
|
|
|
639 |
self._processMap = {}
|
|
|
640 |
self._processMap["getTickets"] = Processor.process_getTickets
|
|
|
641 |
self._processMap["getAssignedTickets"] = Processor.process_getAssignedTickets
|
|
|
642 |
self._processMap["getOpenTickets"] = Processor.process_getOpenTickets
|
|
|
643 |
self._processMap["getTicket"] = Processor.process_getTicket
|
|
|
644 |
self._processMap["updateTicket"] = Processor.process_updateTicket
|
|
|
645 |
self._processMap["insertTicket"] = Processor.process_insertTicket
|
|
|
646 |
self._processMap["getActivities"] = Processor.process_getActivities
|
|
|
647 |
self._processMap["getActivitiesForTicket"] = Processor.process_getActivitiesForTicket
|
|
|
648 |
self._processMap["getActivity"] = Processor.process_getActivity
|
|
|
649 |
self._processMap["getLastActivity"] = Processor.process_getLastActivity
|
|
|
650 |
self._processMap["insertActivity"] = Processor.process_insertActivity
|
|
|
651 |
self._processMap["getAllAgents"] = Processor.process_getAllAgents
|
|
|
652 |
self._processMap["getAgent"] = Processor.process_getAgent
|
|
|
653 |
self._processMap["getAgentByEmailId"] = Processor.process_getAgentByEmailId
|
|
|
654 |
self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
|
|
|
655 |
self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
|
|
|
656 |
self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
|
|
|
657 |
|
|
|
658 |
def process(self, iprot, oprot):
|
|
|
659 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
660 |
if name not in self._processMap:
|
|
|
661 |
iprot.skip(TType.STRUCT)
|
|
|
662 |
iprot.readMessageEnd()
|
|
|
663 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
664 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
665 |
x.write(oprot)
|
|
|
666 |
oprot.writeMessageEnd()
|
|
|
667 |
oprot.trans.flush()
|
|
|
668 |
return
|
|
|
669 |
else:
|
|
|
670 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
671 |
return True
|
|
|
672 |
|
|
|
673 |
def process_getTickets(self, seqid, iprot, oprot):
|
|
|
674 |
args = getTickets_args()
|
|
|
675 |
args.read(iprot)
|
|
|
676 |
iprot.readMessageEnd()
|
|
|
677 |
result = getTickets_result()
|
|
|
678 |
result.success = self._handler.getTickets(args.customerId)
|
|
|
679 |
oprot.writeMessageBegin("getTickets", TMessageType.REPLY, seqid)
|
|
|
680 |
result.write(oprot)
|
|
|
681 |
oprot.writeMessageEnd()
|
|
|
682 |
oprot.trans.flush()
|
|
|
683 |
|
|
|
684 |
def process_getAssignedTickets(self, seqid, iprot, oprot):
|
|
|
685 |
args = getAssignedTickets_args()
|
|
|
686 |
args.read(iprot)
|
|
|
687 |
iprot.readMessageEnd()
|
|
|
688 |
result = getAssignedTickets_result()
|
|
|
689 |
result.success = self._handler.getAssignedTickets(args.agentId)
|
|
|
690 |
oprot.writeMessageBegin("getAssignedTickets", TMessageType.REPLY, seqid)
|
|
|
691 |
result.write(oprot)
|
|
|
692 |
oprot.writeMessageEnd()
|
|
|
693 |
oprot.trans.flush()
|
|
|
694 |
|
|
|
695 |
def process_getOpenTickets(self, seqid, iprot, oprot):
|
|
|
696 |
args = getOpenTickets_args()
|
|
|
697 |
args.read(iprot)
|
|
|
698 |
iprot.readMessageEnd()
|
|
|
699 |
result = getOpenTickets_result()
|
|
|
700 |
result.success = self._handler.getOpenTickets()
|
|
|
701 |
oprot.writeMessageBegin("getOpenTickets", TMessageType.REPLY, seqid)
|
|
|
702 |
result.write(oprot)
|
|
|
703 |
oprot.writeMessageEnd()
|
|
|
704 |
oprot.trans.flush()
|
|
|
705 |
|
|
|
706 |
def process_getTicket(self, seqid, iprot, oprot):
|
|
|
707 |
args = getTicket_args()
|
|
|
708 |
args.read(iprot)
|
|
|
709 |
iprot.readMessageEnd()
|
|
|
710 |
result = getTicket_result()
|
|
|
711 |
result.success = self._handler.getTicket(args.ticketId)
|
|
|
712 |
oprot.writeMessageBegin("getTicket", TMessageType.REPLY, seqid)
|
|
|
713 |
result.write(oprot)
|
|
|
714 |
oprot.writeMessageEnd()
|
|
|
715 |
oprot.trans.flush()
|
|
|
716 |
|
|
|
717 |
def process_updateTicket(self, seqid, iprot, oprot):
|
|
|
718 |
args = updateTicket_args()
|
|
|
719 |
args.read(iprot)
|
|
|
720 |
iprot.readMessageEnd()
|
|
|
721 |
result = updateTicket_result()
|
|
|
722 |
self._handler.updateTicket(args.ticket)
|
|
|
723 |
oprot.writeMessageBegin("updateTicket", TMessageType.REPLY, seqid)
|
|
|
724 |
result.write(oprot)
|
|
|
725 |
oprot.writeMessageEnd()
|
|
|
726 |
oprot.trans.flush()
|
|
|
727 |
|
|
|
728 |
def process_insertTicket(self, seqid, iprot, oprot):
|
|
|
729 |
args = insertTicket_args()
|
|
|
730 |
args.read(iprot)
|
|
|
731 |
iprot.readMessageEnd()
|
|
|
732 |
result = insertTicket_result()
|
|
|
733 |
result.success = self._handler.insertTicket(args.ticket)
|
|
|
734 |
oprot.writeMessageBegin("insertTicket", TMessageType.REPLY, seqid)
|
|
|
735 |
result.write(oprot)
|
|
|
736 |
oprot.writeMessageEnd()
|
|
|
737 |
oprot.trans.flush()
|
|
|
738 |
|
|
|
739 |
def process_getActivities(self, seqid, iprot, oprot):
|
|
|
740 |
args = getActivities_args()
|
|
|
741 |
args.read(iprot)
|
|
|
742 |
iprot.readMessageEnd()
|
|
|
743 |
result = getActivities_result()
|
|
|
744 |
result.success = self._handler.getActivities(args.customerId)
|
|
|
745 |
oprot.writeMessageBegin("getActivities", TMessageType.REPLY, seqid)
|
|
|
746 |
result.write(oprot)
|
|
|
747 |
oprot.writeMessageEnd()
|
|
|
748 |
oprot.trans.flush()
|
|
|
749 |
|
|
|
750 |
def process_getActivitiesForTicket(self, seqid, iprot, oprot):
|
|
|
751 |
args = getActivitiesForTicket_args()
|
|
|
752 |
args.read(iprot)
|
|
|
753 |
iprot.readMessageEnd()
|
|
|
754 |
result = getActivitiesForTicket_result()
|
|
|
755 |
result.success = self._handler.getActivitiesForTicket(args.ticketId)
|
|
|
756 |
oprot.writeMessageBegin("getActivitiesForTicket", TMessageType.REPLY, seqid)
|
|
|
757 |
result.write(oprot)
|
|
|
758 |
oprot.writeMessageEnd()
|
|
|
759 |
oprot.trans.flush()
|
|
|
760 |
|
|
|
761 |
def process_getActivity(self, seqid, iprot, oprot):
|
|
|
762 |
args = getActivity_args()
|
|
|
763 |
args.read(iprot)
|
|
|
764 |
iprot.readMessageEnd()
|
|
|
765 |
result = getActivity_result()
|
|
|
766 |
result.success = self._handler.getActivity(args.activityId)
|
|
|
767 |
oprot.writeMessageBegin("getActivity", TMessageType.REPLY, seqid)
|
|
|
768 |
result.write(oprot)
|
|
|
769 |
oprot.writeMessageEnd()
|
|
|
770 |
oprot.trans.flush()
|
|
|
771 |
|
|
|
772 |
def process_getLastActivity(self, seqid, iprot, oprot):
|
|
|
773 |
args = getLastActivity_args()
|
|
|
774 |
args.read(iprot)
|
|
|
775 |
iprot.readMessageEnd()
|
|
|
776 |
result = getLastActivity_result()
|
|
|
777 |
result.success = self._handler.getLastActivity(args.ticketId)
|
|
|
778 |
oprot.writeMessageBegin("getLastActivity", TMessageType.REPLY, seqid)
|
|
|
779 |
result.write(oprot)
|
|
|
780 |
oprot.writeMessageEnd()
|
|
|
781 |
oprot.trans.flush()
|
|
|
782 |
|
|
|
783 |
def process_insertActivity(self, seqid, iprot, oprot):
|
|
|
784 |
args = insertActivity_args()
|
|
|
785 |
args.read(iprot)
|
|
|
786 |
iprot.readMessageEnd()
|
|
|
787 |
result = insertActivity_result()
|
|
|
788 |
self._handler.insertActivity(args.activity)
|
|
|
789 |
oprot.writeMessageBegin("insertActivity", TMessageType.REPLY, seqid)
|
|
|
790 |
result.write(oprot)
|
|
|
791 |
oprot.writeMessageEnd()
|
|
|
792 |
oprot.trans.flush()
|
|
|
793 |
|
|
|
794 |
def process_getAllAgents(self, seqid, iprot, oprot):
|
|
|
795 |
args = getAllAgents_args()
|
|
|
796 |
args.read(iprot)
|
|
|
797 |
iprot.readMessageEnd()
|
|
|
798 |
result = getAllAgents_result()
|
|
|
799 |
result.success = self._handler.getAllAgents()
|
|
|
800 |
oprot.writeMessageBegin("getAllAgents", TMessageType.REPLY, seqid)
|
|
|
801 |
result.write(oprot)
|
|
|
802 |
oprot.writeMessageEnd()
|
|
|
803 |
oprot.trans.flush()
|
|
|
804 |
|
|
|
805 |
def process_getAgent(self, seqid, iprot, oprot):
|
|
|
806 |
args = getAgent_args()
|
|
|
807 |
args.read(iprot)
|
|
|
808 |
iprot.readMessageEnd()
|
|
|
809 |
result = getAgent_result()
|
|
|
810 |
result.success = self._handler.getAgent(args.agentId)
|
|
|
811 |
oprot.writeMessageBegin("getAgent", TMessageType.REPLY, seqid)
|
|
|
812 |
result.write(oprot)
|
|
|
813 |
oprot.writeMessageEnd()
|
|
|
814 |
oprot.trans.flush()
|
|
|
815 |
|
|
|
816 |
def process_getAgentByEmailId(self, seqid, iprot, oprot):
|
|
|
817 |
args = getAgentByEmailId_args()
|
|
|
818 |
args.read(iprot)
|
|
|
819 |
iprot.readMessageEnd()
|
|
|
820 |
result = getAgentByEmailId_result()
|
|
|
821 |
result.success = self._handler.getAgentByEmailId(args.agentEmailId)
|
|
|
822 |
oprot.writeMessageBegin("getAgentByEmailId", TMessageType.REPLY, seqid)
|
|
|
823 |
result.write(oprot)
|
|
|
824 |
oprot.writeMessageEnd()
|
|
|
825 |
oprot.trans.flush()
|
|
|
826 |
|
|
|
827 |
def process_updatePasswordForAgent(self, seqid, iprot, oprot):
|
|
|
828 |
args = updatePasswordForAgent_args()
|
|
|
829 |
args.read(iprot)
|
|
|
830 |
iprot.readMessageEnd()
|
|
|
831 |
result = updatePasswordForAgent_result()
|
|
|
832 |
self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
|
|
|
833 |
oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
|
|
|
834 |
result.write(oprot)
|
|
|
835 |
oprot.writeMessageEnd()
|
|
|
836 |
oprot.trans.flush()
|
|
|
837 |
|
|
|
838 |
def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
|
|
|
839 |
args = getRoleNamesForAgent_args()
|
|
|
840 |
args.read(iprot)
|
|
|
841 |
iprot.readMessageEnd()
|
|
|
842 |
result = getRoleNamesForAgent_result()
|
|
|
843 |
result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
|
|
|
844 |
oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
|
|
|
845 |
result.write(oprot)
|
|
|
846 |
oprot.writeMessageEnd()
|
|
|
847 |
oprot.trans.flush()
|
|
|
848 |
|
|
|
849 |
def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
|
|
|
850 |
args = getPermissionsForRoleName_args()
|
|
|
851 |
args.read(iprot)
|
|
|
852 |
iprot.readMessageEnd()
|
|
|
853 |
result = getPermissionsForRoleName_result()
|
|
|
854 |
result.success = self._handler.getPermissionsForRoleName(args.roleName)
|
|
|
855 |
oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
|
|
|
856 |
result.write(oprot)
|
|
|
857 |
oprot.writeMessageEnd()
|
|
|
858 |
oprot.trans.flush()
|
|
|
859 |
|
|
|
860 |
|
|
|
861 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
862 |
|
|
|
863 |
class getTickets_args:
|
|
|
864 |
"""
|
|
|
865 |
Attributes:
|
|
|
866 |
- customerId
|
|
|
867 |
"""
|
|
|
868 |
|
|
|
869 |
thrift_spec = (
|
|
|
870 |
None, # 0
|
|
|
871 |
(1, TType.I64, 'customerId', None, None, ), # 1
|
|
|
872 |
)
|
|
|
873 |
|
|
|
874 |
def __init__(self, customerId=None,):
|
|
|
875 |
self.customerId = customerId
|
|
|
876 |
|
|
|
877 |
def read(self, iprot):
|
|
|
878 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
879 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
880 |
return
|
|
|
881 |
iprot.readStructBegin()
|
|
|
882 |
while True:
|
|
|
883 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
884 |
if ftype == TType.STOP:
|
|
|
885 |
break
|
|
|
886 |
if fid == 1:
|
|
|
887 |
if ftype == TType.I64:
|
|
|
888 |
self.customerId = iprot.readI64();
|
|
|
889 |
else:
|
|
|
890 |
iprot.skip(ftype)
|
|
|
891 |
else:
|
|
|
892 |
iprot.skip(ftype)
|
|
|
893 |
iprot.readFieldEnd()
|
|
|
894 |
iprot.readStructEnd()
|
|
|
895 |
|
|
|
896 |
def write(self, oprot):
|
|
|
897 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
898 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
899 |
return
|
|
|
900 |
oprot.writeStructBegin('getTickets_args')
|
|
|
901 |
if self.customerId != None:
|
|
|
902 |
oprot.writeFieldBegin('customerId', TType.I64, 1)
|
|
|
903 |
oprot.writeI64(self.customerId)
|
|
|
904 |
oprot.writeFieldEnd()
|
|
|
905 |
oprot.writeFieldStop()
|
|
|
906 |
oprot.writeStructEnd()
|
|
|
907 |
|
|
|
908 |
def __repr__(self):
|
|
|
909 |
L = ['%s=%r' % (key, value)
|
|
|
910 |
for key, value in self.__dict__.iteritems()]
|
|
|
911 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
912 |
|
|
|
913 |
def __eq__(self, other):
|
|
|
914 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
915 |
|
|
|
916 |
def __ne__(self, other):
|
|
|
917 |
return not (self == other)
|
|
|
918 |
|
|
|
919 |
class getTickets_result:
|
|
|
920 |
"""
|
|
|
921 |
Attributes:
|
|
|
922 |
- success
|
|
|
923 |
"""
|
|
|
924 |
|
|
|
925 |
thrift_spec = (
|
|
|
926 |
(0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
|
|
|
927 |
)
|
|
|
928 |
|
|
|
929 |
def __init__(self, success=None,):
|
|
|
930 |
self.success = success
|
|
|
931 |
|
|
|
932 |
def read(self, iprot):
|
|
|
933 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
934 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
935 |
return
|
|
|
936 |
iprot.readStructBegin()
|
|
|
937 |
while True:
|
|
|
938 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
939 |
if ftype == TType.STOP:
|
|
|
940 |
break
|
|
|
941 |
if fid == 0:
|
|
|
942 |
if ftype == TType.LIST:
|
|
|
943 |
self.success = []
|
|
|
944 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
945 |
for _i4 in xrange(_size0):
|
|
|
946 |
_elem5 = Ticket()
|
|
|
947 |
_elem5.read(iprot)
|
|
|
948 |
self.success.append(_elem5)
|
|
|
949 |
iprot.readListEnd()
|
|
|
950 |
else:
|
|
|
951 |
iprot.skip(ftype)
|
|
|
952 |
else:
|
|
|
953 |
iprot.skip(ftype)
|
|
|
954 |
iprot.readFieldEnd()
|
|
|
955 |
iprot.readStructEnd()
|
|
|
956 |
|
|
|
957 |
def write(self, oprot):
|
|
|
958 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
959 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
960 |
return
|
|
|
961 |
oprot.writeStructBegin('getTickets_result')
|
|
|
962 |
if self.success != None:
|
|
|
963 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
964 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
965 |
for iter6 in self.success:
|
|
|
966 |
iter6.write(oprot)
|
|
|
967 |
oprot.writeListEnd()
|
|
|
968 |
oprot.writeFieldEnd()
|
|
|
969 |
oprot.writeFieldStop()
|
|
|
970 |
oprot.writeStructEnd()
|
|
|
971 |
|
|
|
972 |
def __repr__(self):
|
|
|
973 |
L = ['%s=%r' % (key, value)
|
|
|
974 |
for key, value in self.__dict__.iteritems()]
|
|
|
975 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
976 |
|
|
|
977 |
def __eq__(self, other):
|
|
|
978 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
979 |
|
|
|
980 |
def __ne__(self, other):
|
|
|
981 |
return not (self == other)
|
|
|
982 |
|
|
|
983 |
class getAssignedTickets_args:
|
|
|
984 |
"""
|
|
|
985 |
Attributes:
|
|
|
986 |
- agentId
|
|
|
987 |
"""
|
|
|
988 |
|
|
|
989 |
thrift_spec = (
|
|
|
990 |
None, # 0
|
|
|
991 |
(1, TType.I64, 'agentId', None, None, ), # 1
|
|
|
992 |
)
|
|
|
993 |
|
|
|
994 |
def __init__(self, agentId=None,):
|
|
|
995 |
self.agentId = agentId
|
|
|
996 |
|
|
|
997 |
def read(self, iprot):
|
|
|
998 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
999 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1000 |
return
|
|
|
1001 |
iprot.readStructBegin()
|
|
|
1002 |
while True:
|
|
|
1003 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1004 |
if ftype == TType.STOP:
|
|
|
1005 |
break
|
|
|
1006 |
if fid == 1:
|
|
|
1007 |
if ftype == TType.I64:
|
|
|
1008 |
self.agentId = iprot.readI64();
|
|
|
1009 |
else:
|
|
|
1010 |
iprot.skip(ftype)
|
|
|
1011 |
else:
|
|
|
1012 |
iprot.skip(ftype)
|
|
|
1013 |
iprot.readFieldEnd()
|
|
|
1014 |
iprot.readStructEnd()
|
|
|
1015 |
|
|
|
1016 |
def write(self, oprot):
|
|
|
1017 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1018 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1019 |
return
|
|
|
1020 |
oprot.writeStructBegin('getAssignedTickets_args')
|
|
|
1021 |
if self.agentId != None:
|
|
|
1022 |
oprot.writeFieldBegin('agentId', TType.I64, 1)
|
|
|
1023 |
oprot.writeI64(self.agentId)
|
|
|
1024 |
oprot.writeFieldEnd()
|
|
|
1025 |
oprot.writeFieldStop()
|
|
|
1026 |
oprot.writeStructEnd()
|
|
|
1027 |
|
|
|
1028 |
def __repr__(self):
|
|
|
1029 |
L = ['%s=%r' % (key, value)
|
|
|
1030 |
for key, value in self.__dict__.iteritems()]
|
|
|
1031 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1032 |
|
|
|
1033 |
def __eq__(self, other):
|
|
|
1034 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1035 |
|
|
|
1036 |
def __ne__(self, other):
|
|
|
1037 |
return not (self == other)
|
|
|
1038 |
|
|
|
1039 |
class getAssignedTickets_result:
|
|
|
1040 |
"""
|
|
|
1041 |
Attributes:
|
|
|
1042 |
- success
|
|
|
1043 |
"""
|
|
|
1044 |
|
|
|
1045 |
thrift_spec = (
|
|
|
1046 |
(0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
|
|
|
1047 |
)
|
|
|
1048 |
|
|
|
1049 |
def __init__(self, success=None,):
|
|
|
1050 |
self.success = success
|
|
|
1051 |
|
|
|
1052 |
def read(self, iprot):
|
|
|
1053 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1054 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1055 |
return
|
|
|
1056 |
iprot.readStructBegin()
|
|
|
1057 |
while True:
|
|
|
1058 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1059 |
if ftype == TType.STOP:
|
|
|
1060 |
break
|
|
|
1061 |
if fid == 0:
|
|
|
1062 |
if ftype == TType.LIST:
|
|
|
1063 |
self.success = []
|
|
|
1064 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
1065 |
for _i11 in xrange(_size7):
|
|
|
1066 |
_elem12 = Ticket()
|
|
|
1067 |
_elem12.read(iprot)
|
|
|
1068 |
self.success.append(_elem12)
|
|
|
1069 |
iprot.readListEnd()
|
|
|
1070 |
else:
|
|
|
1071 |
iprot.skip(ftype)
|
|
|
1072 |
else:
|
|
|
1073 |
iprot.skip(ftype)
|
|
|
1074 |
iprot.readFieldEnd()
|
|
|
1075 |
iprot.readStructEnd()
|
|
|
1076 |
|
|
|
1077 |
def write(self, oprot):
|
|
|
1078 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1079 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1080 |
return
|
|
|
1081 |
oprot.writeStructBegin('getAssignedTickets_result')
|
|
|
1082 |
if self.success != None:
|
|
|
1083 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1084 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1085 |
for iter13 in self.success:
|
|
|
1086 |
iter13.write(oprot)
|
|
|
1087 |
oprot.writeListEnd()
|
|
|
1088 |
oprot.writeFieldEnd()
|
|
|
1089 |
oprot.writeFieldStop()
|
|
|
1090 |
oprot.writeStructEnd()
|
|
|
1091 |
|
|
|
1092 |
def __repr__(self):
|
|
|
1093 |
L = ['%s=%r' % (key, value)
|
|
|
1094 |
for key, value in self.__dict__.iteritems()]
|
|
|
1095 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1096 |
|
|
|
1097 |
def __eq__(self, other):
|
|
|
1098 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1099 |
|
|
|
1100 |
def __ne__(self, other):
|
|
|
1101 |
return not (self == other)
|
|
|
1102 |
|
|
|
1103 |
class getOpenTickets_args:
|
|
|
1104 |
|
|
|
1105 |
thrift_spec = (
|
|
|
1106 |
)
|
|
|
1107 |
|
|
|
1108 |
def read(self, iprot):
|
|
|
1109 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1110 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1111 |
return
|
|
|
1112 |
iprot.readStructBegin()
|
|
|
1113 |
while True:
|
|
|
1114 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1115 |
if ftype == TType.STOP:
|
|
|
1116 |
break
|
|
|
1117 |
else:
|
|
|
1118 |
iprot.skip(ftype)
|
|
|
1119 |
iprot.readFieldEnd()
|
|
|
1120 |
iprot.readStructEnd()
|
|
|
1121 |
|
|
|
1122 |
def write(self, oprot):
|
|
|
1123 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1124 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1125 |
return
|
|
|
1126 |
oprot.writeStructBegin('getOpenTickets_args')
|
|
|
1127 |
oprot.writeFieldStop()
|
|
|
1128 |
oprot.writeStructEnd()
|
|
|
1129 |
|
|
|
1130 |
def __repr__(self):
|
|
|
1131 |
L = ['%s=%r' % (key, value)
|
|
|
1132 |
for key, value in self.__dict__.iteritems()]
|
|
|
1133 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1134 |
|
|
|
1135 |
def __eq__(self, other):
|
|
|
1136 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1137 |
|
|
|
1138 |
def __ne__(self, other):
|
|
|
1139 |
return not (self == other)
|
|
|
1140 |
|
|
|
1141 |
class getOpenTickets_result:
|
|
|
1142 |
"""
|
|
|
1143 |
Attributes:
|
|
|
1144 |
- success
|
|
|
1145 |
"""
|
|
|
1146 |
|
|
|
1147 |
thrift_spec = (
|
|
|
1148 |
(0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
|
|
|
1149 |
)
|
|
|
1150 |
|
|
|
1151 |
def __init__(self, success=None,):
|
|
|
1152 |
self.success = success
|
|
|
1153 |
|
|
|
1154 |
def read(self, iprot):
|
|
|
1155 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1156 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1157 |
return
|
|
|
1158 |
iprot.readStructBegin()
|
|
|
1159 |
while True:
|
|
|
1160 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1161 |
if ftype == TType.STOP:
|
|
|
1162 |
break
|
|
|
1163 |
if fid == 0:
|
|
|
1164 |
if ftype == TType.LIST:
|
|
|
1165 |
self.success = []
|
|
|
1166 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1167 |
for _i18 in xrange(_size14):
|
|
|
1168 |
_elem19 = Ticket()
|
|
|
1169 |
_elem19.read(iprot)
|
|
|
1170 |
self.success.append(_elem19)
|
|
|
1171 |
iprot.readListEnd()
|
|
|
1172 |
else:
|
|
|
1173 |
iprot.skip(ftype)
|
|
|
1174 |
else:
|
|
|
1175 |
iprot.skip(ftype)
|
|
|
1176 |
iprot.readFieldEnd()
|
|
|
1177 |
iprot.readStructEnd()
|
|
|
1178 |
|
|
|
1179 |
def write(self, oprot):
|
|
|
1180 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1181 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1182 |
return
|
|
|
1183 |
oprot.writeStructBegin('getOpenTickets_result')
|
|
|
1184 |
if self.success != None:
|
|
|
1185 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1186 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1187 |
for iter20 in self.success:
|
|
|
1188 |
iter20.write(oprot)
|
|
|
1189 |
oprot.writeListEnd()
|
|
|
1190 |
oprot.writeFieldEnd()
|
|
|
1191 |
oprot.writeFieldStop()
|
|
|
1192 |
oprot.writeStructEnd()
|
|
|
1193 |
|
|
|
1194 |
def __repr__(self):
|
|
|
1195 |
L = ['%s=%r' % (key, value)
|
|
|
1196 |
for key, value in self.__dict__.iteritems()]
|
|
|
1197 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1198 |
|
|
|
1199 |
def __eq__(self, other):
|
|
|
1200 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1201 |
|
|
|
1202 |
def __ne__(self, other):
|
|
|
1203 |
return not (self == other)
|
|
|
1204 |
|
|
|
1205 |
class getTicket_args:
|
|
|
1206 |
"""
|
|
|
1207 |
Attributes:
|
|
|
1208 |
- ticketId
|
|
|
1209 |
"""
|
|
|
1210 |
|
|
|
1211 |
thrift_spec = (
|
|
|
1212 |
None, # 0
|
|
|
1213 |
(1, TType.I64, 'ticketId', None, None, ), # 1
|
|
|
1214 |
)
|
|
|
1215 |
|
|
|
1216 |
def __init__(self, ticketId=None,):
|
|
|
1217 |
self.ticketId = ticketId
|
|
|
1218 |
|
|
|
1219 |
def read(self, iprot):
|
|
|
1220 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1221 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1222 |
return
|
|
|
1223 |
iprot.readStructBegin()
|
|
|
1224 |
while True:
|
|
|
1225 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1226 |
if ftype == TType.STOP:
|
|
|
1227 |
break
|
|
|
1228 |
if fid == 1:
|
|
|
1229 |
if ftype == TType.I64:
|
|
|
1230 |
self.ticketId = iprot.readI64();
|
|
|
1231 |
else:
|
|
|
1232 |
iprot.skip(ftype)
|
|
|
1233 |
else:
|
|
|
1234 |
iprot.skip(ftype)
|
|
|
1235 |
iprot.readFieldEnd()
|
|
|
1236 |
iprot.readStructEnd()
|
|
|
1237 |
|
|
|
1238 |
def write(self, oprot):
|
|
|
1239 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1240 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1241 |
return
|
|
|
1242 |
oprot.writeStructBegin('getTicket_args')
|
|
|
1243 |
if self.ticketId != None:
|
|
|
1244 |
oprot.writeFieldBegin('ticketId', TType.I64, 1)
|
|
|
1245 |
oprot.writeI64(self.ticketId)
|
|
|
1246 |
oprot.writeFieldEnd()
|
|
|
1247 |
oprot.writeFieldStop()
|
|
|
1248 |
oprot.writeStructEnd()
|
|
|
1249 |
|
|
|
1250 |
def __repr__(self):
|
|
|
1251 |
L = ['%s=%r' % (key, value)
|
|
|
1252 |
for key, value in self.__dict__.iteritems()]
|
|
|
1253 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1254 |
|
|
|
1255 |
def __eq__(self, other):
|
|
|
1256 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1257 |
|
|
|
1258 |
def __ne__(self, other):
|
|
|
1259 |
return not (self == other)
|
|
|
1260 |
|
|
|
1261 |
class getTicket_result:
|
|
|
1262 |
"""
|
|
|
1263 |
Attributes:
|
|
|
1264 |
- success
|
|
|
1265 |
"""
|
|
|
1266 |
|
|
|
1267 |
thrift_spec = (
|
|
|
1268 |
(0, TType.STRUCT, 'success', (Ticket, Ticket.thrift_spec), None, ), # 0
|
|
|
1269 |
)
|
|
|
1270 |
|
|
|
1271 |
def __init__(self, success=None,):
|
|
|
1272 |
self.success = success
|
|
|
1273 |
|
|
|
1274 |
def read(self, iprot):
|
|
|
1275 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1276 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1277 |
return
|
|
|
1278 |
iprot.readStructBegin()
|
|
|
1279 |
while True:
|
|
|
1280 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1281 |
if ftype == TType.STOP:
|
|
|
1282 |
break
|
|
|
1283 |
if fid == 0:
|
|
|
1284 |
if ftype == TType.STRUCT:
|
|
|
1285 |
self.success = Ticket()
|
|
|
1286 |
self.success.read(iprot)
|
|
|
1287 |
else:
|
|
|
1288 |
iprot.skip(ftype)
|
|
|
1289 |
else:
|
|
|
1290 |
iprot.skip(ftype)
|
|
|
1291 |
iprot.readFieldEnd()
|
|
|
1292 |
iprot.readStructEnd()
|
|
|
1293 |
|
|
|
1294 |
def write(self, oprot):
|
|
|
1295 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1296 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1297 |
return
|
|
|
1298 |
oprot.writeStructBegin('getTicket_result')
|
|
|
1299 |
if self.success != None:
|
|
|
1300 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1301 |
self.success.write(oprot)
|
|
|
1302 |
oprot.writeFieldEnd()
|
|
|
1303 |
oprot.writeFieldStop()
|
|
|
1304 |
oprot.writeStructEnd()
|
|
|
1305 |
|
|
|
1306 |
def __repr__(self):
|
|
|
1307 |
L = ['%s=%r' % (key, value)
|
|
|
1308 |
for key, value in self.__dict__.iteritems()]
|
|
|
1309 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1310 |
|
|
|
1311 |
def __eq__(self, other):
|
|
|
1312 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1313 |
|
|
|
1314 |
def __ne__(self, other):
|
|
|
1315 |
return not (self == other)
|
|
|
1316 |
|
|
|
1317 |
class updateTicket_args:
|
|
|
1318 |
"""
|
|
|
1319 |
Attributes:
|
|
|
1320 |
- ticket
|
|
|
1321 |
"""
|
|
|
1322 |
|
|
|
1323 |
thrift_spec = (
|
|
|
1324 |
None, # 0
|
|
|
1325 |
(1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
|
|
|
1326 |
)
|
|
|
1327 |
|
|
|
1328 |
def __init__(self, ticket=None,):
|
|
|
1329 |
self.ticket = ticket
|
|
|
1330 |
|
|
|
1331 |
def read(self, iprot):
|
|
|
1332 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1333 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1334 |
return
|
|
|
1335 |
iprot.readStructBegin()
|
|
|
1336 |
while True:
|
|
|
1337 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1338 |
if ftype == TType.STOP:
|
|
|
1339 |
break
|
|
|
1340 |
if fid == 1:
|
|
|
1341 |
if ftype == TType.STRUCT:
|
|
|
1342 |
self.ticket = Ticket()
|
|
|
1343 |
self.ticket.read(iprot)
|
|
|
1344 |
else:
|
|
|
1345 |
iprot.skip(ftype)
|
|
|
1346 |
else:
|
|
|
1347 |
iprot.skip(ftype)
|
|
|
1348 |
iprot.readFieldEnd()
|
|
|
1349 |
iprot.readStructEnd()
|
|
|
1350 |
|
|
|
1351 |
def write(self, oprot):
|
|
|
1352 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1353 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1354 |
return
|
|
|
1355 |
oprot.writeStructBegin('updateTicket_args')
|
|
|
1356 |
if self.ticket != None:
|
|
|
1357 |
oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
|
|
|
1358 |
self.ticket.write(oprot)
|
|
|
1359 |
oprot.writeFieldEnd()
|
|
|
1360 |
oprot.writeFieldStop()
|
|
|
1361 |
oprot.writeStructEnd()
|
|
|
1362 |
|
|
|
1363 |
def __repr__(self):
|
|
|
1364 |
L = ['%s=%r' % (key, value)
|
|
|
1365 |
for key, value in self.__dict__.iteritems()]
|
|
|
1366 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1367 |
|
|
|
1368 |
def __eq__(self, other):
|
|
|
1369 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1370 |
|
|
|
1371 |
def __ne__(self, other):
|
|
|
1372 |
return not (self == other)
|
|
|
1373 |
|
|
|
1374 |
class updateTicket_result:
|
|
|
1375 |
|
|
|
1376 |
thrift_spec = (
|
|
|
1377 |
)
|
|
|
1378 |
|
|
|
1379 |
def read(self, iprot):
|
|
|
1380 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1381 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1382 |
return
|
|
|
1383 |
iprot.readStructBegin()
|
|
|
1384 |
while True:
|
|
|
1385 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1386 |
if ftype == TType.STOP:
|
|
|
1387 |
break
|
|
|
1388 |
else:
|
|
|
1389 |
iprot.skip(ftype)
|
|
|
1390 |
iprot.readFieldEnd()
|
|
|
1391 |
iprot.readStructEnd()
|
|
|
1392 |
|
|
|
1393 |
def write(self, oprot):
|
|
|
1394 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1395 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1396 |
return
|
|
|
1397 |
oprot.writeStructBegin('updateTicket_result')
|
|
|
1398 |
oprot.writeFieldStop()
|
|
|
1399 |
oprot.writeStructEnd()
|
|
|
1400 |
|
|
|
1401 |
def __repr__(self):
|
|
|
1402 |
L = ['%s=%r' % (key, value)
|
|
|
1403 |
for key, value in self.__dict__.iteritems()]
|
|
|
1404 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1405 |
|
|
|
1406 |
def __eq__(self, other):
|
|
|
1407 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1408 |
|
|
|
1409 |
def __ne__(self, other):
|
|
|
1410 |
return not (self == other)
|
|
|
1411 |
|
|
|
1412 |
class insertTicket_args:
|
|
|
1413 |
"""
|
|
|
1414 |
Attributes:
|
|
|
1415 |
- ticket
|
|
|
1416 |
"""
|
|
|
1417 |
|
|
|
1418 |
thrift_spec = (
|
|
|
1419 |
None, # 0
|
|
|
1420 |
(1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
|
|
|
1421 |
)
|
|
|
1422 |
|
|
|
1423 |
def __init__(self, ticket=None,):
|
|
|
1424 |
self.ticket = ticket
|
|
|
1425 |
|
|
|
1426 |
def read(self, iprot):
|
|
|
1427 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1428 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1429 |
return
|
|
|
1430 |
iprot.readStructBegin()
|
|
|
1431 |
while True:
|
|
|
1432 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1433 |
if ftype == TType.STOP:
|
|
|
1434 |
break
|
|
|
1435 |
if fid == 1:
|
|
|
1436 |
if ftype == TType.STRUCT:
|
|
|
1437 |
self.ticket = Ticket()
|
|
|
1438 |
self.ticket.read(iprot)
|
|
|
1439 |
else:
|
|
|
1440 |
iprot.skip(ftype)
|
|
|
1441 |
else:
|
|
|
1442 |
iprot.skip(ftype)
|
|
|
1443 |
iprot.readFieldEnd()
|
|
|
1444 |
iprot.readStructEnd()
|
|
|
1445 |
|
|
|
1446 |
def write(self, oprot):
|
|
|
1447 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1448 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1449 |
return
|
|
|
1450 |
oprot.writeStructBegin('insertTicket_args')
|
|
|
1451 |
if self.ticket != None:
|
|
|
1452 |
oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
|
|
|
1453 |
self.ticket.write(oprot)
|
|
|
1454 |
oprot.writeFieldEnd()
|
|
|
1455 |
oprot.writeFieldStop()
|
|
|
1456 |
oprot.writeStructEnd()
|
|
|
1457 |
|
|
|
1458 |
def __repr__(self):
|
|
|
1459 |
L = ['%s=%r' % (key, value)
|
|
|
1460 |
for key, value in self.__dict__.iteritems()]
|
|
|
1461 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1462 |
|
|
|
1463 |
def __eq__(self, other):
|
|
|
1464 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1465 |
|
|
|
1466 |
def __ne__(self, other):
|
|
|
1467 |
return not (self == other)
|
|
|
1468 |
|
|
|
1469 |
class insertTicket_result:
|
|
|
1470 |
"""
|
|
|
1471 |
Attributes:
|
|
|
1472 |
- success
|
|
|
1473 |
"""
|
|
|
1474 |
|
|
|
1475 |
thrift_spec = (
|
|
|
1476 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1477 |
)
|
|
|
1478 |
|
|
|
1479 |
def __init__(self, success=None,):
|
|
|
1480 |
self.success = success
|
|
|
1481 |
|
|
|
1482 |
def read(self, iprot):
|
|
|
1483 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1484 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1485 |
return
|
|
|
1486 |
iprot.readStructBegin()
|
|
|
1487 |
while True:
|
|
|
1488 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1489 |
if ftype == TType.STOP:
|
|
|
1490 |
break
|
|
|
1491 |
if fid == 0:
|
|
|
1492 |
if ftype == TType.I64:
|
|
|
1493 |
self.success = iprot.readI64();
|
|
|
1494 |
else:
|
|
|
1495 |
iprot.skip(ftype)
|
|
|
1496 |
else:
|
|
|
1497 |
iprot.skip(ftype)
|
|
|
1498 |
iprot.readFieldEnd()
|
|
|
1499 |
iprot.readStructEnd()
|
|
|
1500 |
|
|
|
1501 |
def write(self, oprot):
|
|
|
1502 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1503 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1504 |
return
|
|
|
1505 |
oprot.writeStructBegin('insertTicket_result')
|
|
|
1506 |
if self.success != None:
|
|
|
1507 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1508 |
oprot.writeI64(self.success)
|
|
|
1509 |
oprot.writeFieldEnd()
|
|
|
1510 |
oprot.writeFieldStop()
|
|
|
1511 |
oprot.writeStructEnd()
|
|
|
1512 |
|
|
|
1513 |
def __repr__(self):
|
|
|
1514 |
L = ['%s=%r' % (key, value)
|
|
|
1515 |
for key, value in self.__dict__.iteritems()]
|
|
|
1516 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1517 |
|
|
|
1518 |
def __eq__(self, other):
|
|
|
1519 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1520 |
|
|
|
1521 |
def __ne__(self, other):
|
|
|
1522 |
return not (self == other)
|
|
|
1523 |
|
|
|
1524 |
class getActivities_args:
|
|
|
1525 |
"""
|
|
|
1526 |
Attributes:
|
|
|
1527 |
- customerId
|
|
|
1528 |
"""
|
|
|
1529 |
|
|
|
1530 |
thrift_spec = (
|
|
|
1531 |
None, # 0
|
|
|
1532 |
(1, TType.I64, 'customerId', None, None, ), # 1
|
|
|
1533 |
)
|
|
|
1534 |
|
|
|
1535 |
def __init__(self, customerId=None,):
|
|
|
1536 |
self.customerId = customerId
|
|
|
1537 |
|
|
|
1538 |
def read(self, iprot):
|
|
|
1539 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1540 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1541 |
return
|
|
|
1542 |
iprot.readStructBegin()
|
|
|
1543 |
while True:
|
|
|
1544 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1545 |
if ftype == TType.STOP:
|
|
|
1546 |
break
|
|
|
1547 |
if fid == 1:
|
|
|
1548 |
if ftype == TType.I64:
|
|
|
1549 |
self.customerId = iprot.readI64();
|
|
|
1550 |
else:
|
|
|
1551 |
iprot.skip(ftype)
|
|
|
1552 |
else:
|
|
|
1553 |
iprot.skip(ftype)
|
|
|
1554 |
iprot.readFieldEnd()
|
|
|
1555 |
iprot.readStructEnd()
|
|
|
1556 |
|
|
|
1557 |
def write(self, oprot):
|
|
|
1558 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1559 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1560 |
return
|
|
|
1561 |
oprot.writeStructBegin('getActivities_args')
|
|
|
1562 |
if self.customerId != None:
|
|
|
1563 |
oprot.writeFieldBegin('customerId', TType.I64, 1)
|
|
|
1564 |
oprot.writeI64(self.customerId)
|
|
|
1565 |
oprot.writeFieldEnd()
|
|
|
1566 |
oprot.writeFieldStop()
|
|
|
1567 |
oprot.writeStructEnd()
|
|
|
1568 |
|
|
|
1569 |
def __repr__(self):
|
|
|
1570 |
L = ['%s=%r' % (key, value)
|
|
|
1571 |
for key, value in self.__dict__.iteritems()]
|
|
|
1572 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1573 |
|
|
|
1574 |
def __eq__(self, other):
|
|
|
1575 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1576 |
|
|
|
1577 |
def __ne__(self, other):
|
|
|
1578 |
return not (self == other)
|
|
|
1579 |
|
|
|
1580 |
class getActivities_result:
|
|
|
1581 |
"""
|
|
|
1582 |
Attributes:
|
|
|
1583 |
- success
|
|
|
1584 |
"""
|
|
|
1585 |
|
|
|
1586 |
thrift_spec = (
|
|
|
1587 |
(0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
|
|
|
1588 |
)
|
|
|
1589 |
|
|
|
1590 |
def __init__(self, success=None,):
|
|
|
1591 |
self.success = success
|
|
|
1592 |
|
|
|
1593 |
def read(self, iprot):
|
|
|
1594 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1595 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1596 |
return
|
|
|
1597 |
iprot.readStructBegin()
|
|
|
1598 |
while True:
|
|
|
1599 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1600 |
if ftype == TType.STOP:
|
|
|
1601 |
break
|
|
|
1602 |
if fid == 0:
|
|
|
1603 |
if ftype == TType.LIST:
|
|
|
1604 |
self.success = []
|
|
|
1605 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
1606 |
for _i25 in xrange(_size21):
|
|
|
1607 |
_elem26 = Activity()
|
|
|
1608 |
_elem26.read(iprot)
|
|
|
1609 |
self.success.append(_elem26)
|
|
|
1610 |
iprot.readListEnd()
|
|
|
1611 |
else:
|
|
|
1612 |
iprot.skip(ftype)
|
|
|
1613 |
else:
|
|
|
1614 |
iprot.skip(ftype)
|
|
|
1615 |
iprot.readFieldEnd()
|
|
|
1616 |
iprot.readStructEnd()
|
|
|
1617 |
|
|
|
1618 |
def write(self, oprot):
|
|
|
1619 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1620 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1621 |
return
|
|
|
1622 |
oprot.writeStructBegin('getActivities_result')
|
|
|
1623 |
if self.success != None:
|
|
|
1624 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1625 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1626 |
for iter27 in self.success:
|
|
|
1627 |
iter27.write(oprot)
|
|
|
1628 |
oprot.writeListEnd()
|
|
|
1629 |
oprot.writeFieldEnd()
|
|
|
1630 |
oprot.writeFieldStop()
|
|
|
1631 |
oprot.writeStructEnd()
|
|
|
1632 |
|
|
|
1633 |
def __repr__(self):
|
|
|
1634 |
L = ['%s=%r' % (key, value)
|
|
|
1635 |
for key, value in self.__dict__.iteritems()]
|
|
|
1636 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1637 |
|
|
|
1638 |
def __eq__(self, other):
|
|
|
1639 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1640 |
|
|
|
1641 |
def __ne__(self, other):
|
|
|
1642 |
return not (self == other)
|
|
|
1643 |
|
|
|
1644 |
class getActivitiesForTicket_args:
|
|
|
1645 |
"""
|
|
|
1646 |
Attributes:
|
|
|
1647 |
- ticketId
|
|
|
1648 |
"""
|
|
|
1649 |
|
|
|
1650 |
thrift_spec = (
|
|
|
1651 |
None, # 0
|
|
|
1652 |
(1, TType.I64, 'ticketId', None, None, ), # 1
|
|
|
1653 |
)
|
|
|
1654 |
|
|
|
1655 |
def __init__(self, ticketId=None,):
|
|
|
1656 |
self.ticketId = ticketId
|
|
|
1657 |
|
|
|
1658 |
def read(self, iprot):
|
|
|
1659 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1660 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1661 |
return
|
|
|
1662 |
iprot.readStructBegin()
|
|
|
1663 |
while True:
|
|
|
1664 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1665 |
if ftype == TType.STOP:
|
|
|
1666 |
break
|
|
|
1667 |
if fid == 1:
|
|
|
1668 |
if ftype == TType.I64:
|
|
|
1669 |
self.ticketId = iprot.readI64();
|
|
|
1670 |
else:
|
|
|
1671 |
iprot.skip(ftype)
|
|
|
1672 |
else:
|
|
|
1673 |
iprot.skip(ftype)
|
|
|
1674 |
iprot.readFieldEnd()
|
|
|
1675 |
iprot.readStructEnd()
|
|
|
1676 |
|
|
|
1677 |
def write(self, oprot):
|
|
|
1678 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1679 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1680 |
return
|
|
|
1681 |
oprot.writeStructBegin('getActivitiesForTicket_args')
|
|
|
1682 |
if self.ticketId != None:
|
|
|
1683 |
oprot.writeFieldBegin('ticketId', TType.I64, 1)
|
|
|
1684 |
oprot.writeI64(self.ticketId)
|
|
|
1685 |
oprot.writeFieldEnd()
|
|
|
1686 |
oprot.writeFieldStop()
|
|
|
1687 |
oprot.writeStructEnd()
|
|
|
1688 |
|
|
|
1689 |
def __repr__(self):
|
|
|
1690 |
L = ['%s=%r' % (key, value)
|
|
|
1691 |
for key, value in self.__dict__.iteritems()]
|
|
|
1692 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1693 |
|
|
|
1694 |
def __eq__(self, other):
|
|
|
1695 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1696 |
|
|
|
1697 |
def __ne__(self, other):
|
|
|
1698 |
return not (self == other)
|
|
|
1699 |
|
|
|
1700 |
class getActivitiesForTicket_result:
|
|
|
1701 |
"""
|
|
|
1702 |
Attributes:
|
|
|
1703 |
- success
|
|
|
1704 |
"""
|
|
|
1705 |
|
|
|
1706 |
thrift_spec = (
|
|
|
1707 |
(0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
|
|
|
1708 |
)
|
|
|
1709 |
|
|
|
1710 |
def __init__(self, success=None,):
|
|
|
1711 |
self.success = success
|
|
|
1712 |
|
|
|
1713 |
def read(self, iprot):
|
|
|
1714 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1715 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1716 |
return
|
|
|
1717 |
iprot.readStructBegin()
|
|
|
1718 |
while True:
|
|
|
1719 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1720 |
if ftype == TType.STOP:
|
|
|
1721 |
break
|
|
|
1722 |
if fid == 0:
|
|
|
1723 |
if ftype == TType.LIST:
|
|
|
1724 |
self.success = []
|
|
|
1725 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1726 |
for _i32 in xrange(_size28):
|
|
|
1727 |
_elem33 = Activity()
|
|
|
1728 |
_elem33.read(iprot)
|
|
|
1729 |
self.success.append(_elem33)
|
|
|
1730 |
iprot.readListEnd()
|
|
|
1731 |
else:
|
|
|
1732 |
iprot.skip(ftype)
|
|
|
1733 |
else:
|
|
|
1734 |
iprot.skip(ftype)
|
|
|
1735 |
iprot.readFieldEnd()
|
|
|
1736 |
iprot.readStructEnd()
|
|
|
1737 |
|
|
|
1738 |
def write(self, oprot):
|
|
|
1739 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1740 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1741 |
return
|
|
|
1742 |
oprot.writeStructBegin('getActivitiesForTicket_result')
|
|
|
1743 |
if self.success != None:
|
|
|
1744 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1745 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1746 |
for iter34 in self.success:
|
|
|
1747 |
iter34.write(oprot)
|
|
|
1748 |
oprot.writeListEnd()
|
|
|
1749 |
oprot.writeFieldEnd()
|
|
|
1750 |
oprot.writeFieldStop()
|
|
|
1751 |
oprot.writeStructEnd()
|
|
|
1752 |
|
|
|
1753 |
def __repr__(self):
|
|
|
1754 |
L = ['%s=%r' % (key, value)
|
|
|
1755 |
for key, value in self.__dict__.iteritems()]
|
|
|
1756 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1757 |
|
|
|
1758 |
def __eq__(self, other):
|
|
|
1759 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1760 |
|
|
|
1761 |
def __ne__(self, other):
|
|
|
1762 |
return not (self == other)
|
|
|
1763 |
|
|
|
1764 |
class getActivity_args:
|
|
|
1765 |
"""
|
|
|
1766 |
Attributes:
|
|
|
1767 |
- activityId
|
|
|
1768 |
"""
|
|
|
1769 |
|
|
|
1770 |
thrift_spec = (
|
|
|
1771 |
None, # 0
|
|
|
1772 |
(1, TType.I64, 'activityId', None, None, ), # 1
|
|
|
1773 |
)
|
|
|
1774 |
|
|
|
1775 |
def __init__(self, activityId=None,):
|
|
|
1776 |
self.activityId = activityId
|
|
|
1777 |
|
|
|
1778 |
def read(self, iprot):
|
|
|
1779 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1780 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1781 |
return
|
|
|
1782 |
iprot.readStructBegin()
|
|
|
1783 |
while True:
|
|
|
1784 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1785 |
if ftype == TType.STOP:
|
|
|
1786 |
break
|
|
|
1787 |
if fid == 1:
|
|
|
1788 |
if ftype == TType.I64:
|
|
|
1789 |
self.activityId = iprot.readI64();
|
|
|
1790 |
else:
|
|
|
1791 |
iprot.skip(ftype)
|
|
|
1792 |
else:
|
|
|
1793 |
iprot.skip(ftype)
|
|
|
1794 |
iprot.readFieldEnd()
|
|
|
1795 |
iprot.readStructEnd()
|
|
|
1796 |
|
|
|
1797 |
def write(self, oprot):
|
|
|
1798 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1799 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1800 |
return
|
|
|
1801 |
oprot.writeStructBegin('getActivity_args')
|
|
|
1802 |
if self.activityId != None:
|
|
|
1803 |
oprot.writeFieldBegin('activityId', TType.I64, 1)
|
|
|
1804 |
oprot.writeI64(self.activityId)
|
|
|
1805 |
oprot.writeFieldEnd()
|
|
|
1806 |
oprot.writeFieldStop()
|
|
|
1807 |
oprot.writeStructEnd()
|
|
|
1808 |
|
|
|
1809 |
def __repr__(self):
|
|
|
1810 |
L = ['%s=%r' % (key, value)
|
|
|
1811 |
for key, value in self.__dict__.iteritems()]
|
|
|
1812 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1813 |
|
|
|
1814 |
def __eq__(self, other):
|
|
|
1815 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1816 |
|
|
|
1817 |
def __ne__(self, other):
|
|
|
1818 |
return not (self == other)
|
|
|
1819 |
|
|
|
1820 |
class getActivity_result:
|
|
|
1821 |
"""
|
|
|
1822 |
Attributes:
|
|
|
1823 |
- success
|
|
|
1824 |
"""
|
|
|
1825 |
|
|
|
1826 |
thrift_spec = (
|
|
|
1827 |
(0, TType.STRUCT, 'success', (Activity, Activity.thrift_spec), None, ), # 0
|
|
|
1828 |
)
|
|
|
1829 |
|
|
|
1830 |
def __init__(self, success=None,):
|
|
|
1831 |
self.success = success
|
|
|
1832 |
|
|
|
1833 |
def read(self, iprot):
|
|
|
1834 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1835 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1836 |
return
|
|
|
1837 |
iprot.readStructBegin()
|
|
|
1838 |
while True:
|
|
|
1839 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1840 |
if ftype == TType.STOP:
|
|
|
1841 |
break
|
|
|
1842 |
if fid == 0:
|
|
|
1843 |
if ftype == TType.STRUCT:
|
|
|
1844 |
self.success = Activity()
|
|
|
1845 |
self.success.read(iprot)
|
|
|
1846 |
else:
|
|
|
1847 |
iprot.skip(ftype)
|
|
|
1848 |
else:
|
|
|
1849 |
iprot.skip(ftype)
|
|
|
1850 |
iprot.readFieldEnd()
|
|
|
1851 |
iprot.readStructEnd()
|
|
|
1852 |
|
|
|
1853 |
def write(self, oprot):
|
|
|
1854 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1855 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1856 |
return
|
|
|
1857 |
oprot.writeStructBegin('getActivity_result')
|
|
|
1858 |
if self.success != None:
|
|
|
1859 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1860 |
self.success.write(oprot)
|
|
|
1861 |
oprot.writeFieldEnd()
|
|
|
1862 |
oprot.writeFieldStop()
|
|
|
1863 |
oprot.writeStructEnd()
|
|
|
1864 |
|
|
|
1865 |
def __repr__(self):
|
|
|
1866 |
L = ['%s=%r' % (key, value)
|
|
|
1867 |
for key, value in self.__dict__.iteritems()]
|
|
|
1868 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1869 |
|
|
|
1870 |
def __eq__(self, other):
|
|
|
1871 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1872 |
|
|
|
1873 |
def __ne__(self, other):
|
|
|
1874 |
return not (self == other)
|
|
|
1875 |
|
|
|
1876 |
class getLastActivity_args:
|
|
|
1877 |
"""
|
|
|
1878 |
Attributes:
|
|
|
1879 |
- ticketId
|
|
|
1880 |
"""
|
|
|
1881 |
|
|
|
1882 |
thrift_spec = (
|
|
|
1883 |
None, # 0
|
|
|
1884 |
(1, TType.I64, 'ticketId', None, None, ), # 1
|
|
|
1885 |
)
|
|
|
1886 |
|
|
|
1887 |
def __init__(self, ticketId=None,):
|
|
|
1888 |
self.ticketId = ticketId
|
|
|
1889 |
|
|
|
1890 |
def read(self, iprot):
|
|
|
1891 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1892 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1893 |
return
|
|
|
1894 |
iprot.readStructBegin()
|
|
|
1895 |
while True:
|
|
|
1896 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1897 |
if ftype == TType.STOP:
|
|
|
1898 |
break
|
|
|
1899 |
if fid == 1:
|
|
|
1900 |
if ftype == TType.I64:
|
|
|
1901 |
self.ticketId = iprot.readI64();
|
|
|
1902 |
else:
|
|
|
1903 |
iprot.skip(ftype)
|
|
|
1904 |
else:
|
|
|
1905 |
iprot.skip(ftype)
|
|
|
1906 |
iprot.readFieldEnd()
|
|
|
1907 |
iprot.readStructEnd()
|
|
|
1908 |
|
|
|
1909 |
def write(self, oprot):
|
|
|
1910 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1911 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1912 |
return
|
|
|
1913 |
oprot.writeStructBegin('getLastActivity_args')
|
|
|
1914 |
if self.ticketId != None:
|
|
|
1915 |
oprot.writeFieldBegin('ticketId', TType.I64, 1)
|
|
|
1916 |
oprot.writeI64(self.ticketId)
|
|
|
1917 |
oprot.writeFieldEnd()
|
|
|
1918 |
oprot.writeFieldStop()
|
|
|
1919 |
oprot.writeStructEnd()
|
|
|
1920 |
|
|
|
1921 |
def __repr__(self):
|
|
|
1922 |
L = ['%s=%r' % (key, value)
|
|
|
1923 |
for key, value in self.__dict__.iteritems()]
|
|
|
1924 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1925 |
|
|
|
1926 |
def __eq__(self, other):
|
|
|
1927 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1928 |
|
|
|
1929 |
def __ne__(self, other):
|
|
|
1930 |
return not (self == other)
|
|
|
1931 |
|
|
|
1932 |
class getLastActivity_result:
|
|
|
1933 |
"""
|
|
|
1934 |
Attributes:
|
|
|
1935 |
- success
|
|
|
1936 |
"""
|
|
|
1937 |
|
|
|
1938 |
thrift_spec = (
|
|
|
1939 |
(0, TType.STRUCT, 'success', (Activity, Activity.thrift_spec), None, ), # 0
|
|
|
1940 |
)
|
|
|
1941 |
|
|
|
1942 |
def __init__(self, success=None,):
|
|
|
1943 |
self.success = success
|
|
|
1944 |
|
|
|
1945 |
def read(self, iprot):
|
|
|
1946 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1947 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1948 |
return
|
|
|
1949 |
iprot.readStructBegin()
|
|
|
1950 |
while True:
|
|
|
1951 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1952 |
if ftype == TType.STOP:
|
|
|
1953 |
break
|
|
|
1954 |
if fid == 0:
|
|
|
1955 |
if ftype == TType.STRUCT:
|
|
|
1956 |
self.success = Activity()
|
|
|
1957 |
self.success.read(iprot)
|
|
|
1958 |
else:
|
|
|
1959 |
iprot.skip(ftype)
|
|
|
1960 |
else:
|
|
|
1961 |
iprot.skip(ftype)
|
|
|
1962 |
iprot.readFieldEnd()
|
|
|
1963 |
iprot.readStructEnd()
|
|
|
1964 |
|
|
|
1965 |
def write(self, oprot):
|
|
|
1966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1968 |
return
|
|
|
1969 |
oprot.writeStructBegin('getLastActivity_result')
|
|
|
1970 |
if self.success != None:
|
|
|
1971 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1972 |
self.success.write(oprot)
|
|
|
1973 |
oprot.writeFieldEnd()
|
|
|
1974 |
oprot.writeFieldStop()
|
|
|
1975 |
oprot.writeStructEnd()
|
|
|
1976 |
|
|
|
1977 |
def __repr__(self):
|
|
|
1978 |
L = ['%s=%r' % (key, value)
|
|
|
1979 |
for key, value in self.__dict__.iteritems()]
|
|
|
1980 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1981 |
|
|
|
1982 |
def __eq__(self, other):
|
|
|
1983 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1984 |
|
|
|
1985 |
def __ne__(self, other):
|
|
|
1986 |
return not (self == other)
|
|
|
1987 |
|
|
|
1988 |
class insertActivity_args:
|
|
|
1989 |
"""
|
|
|
1990 |
Attributes:
|
|
|
1991 |
- activity
|
|
|
1992 |
"""
|
|
|
1993 |
|
|
|
1994 |
thrift_spec = (
|
|
|
1995 |
None, # 0
|
|
|
1996 |
(1, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 1
|
|
|
1997 |
)
|
|
|
1998 |
|
|
|
1999 |
def __init__(self, activity=None,):
|
|
|
2000 |
self.activity = activity
|
|
|
2001 |
|
|
|
2002 |
def read(self, iprot):
|
|
|
2003 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2004 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2005 |
return
|
|
|
2006 |
iprot.readStructBegin()
|
|
|
2007 |
while True:
|
|
|
2008 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2009 |
if ftype == TType.STOP:
|
|
|
2010 |
break
|
|
|
2011 |
if fid == 1:
|
|
|
2012 |
if ftype == TType.STRUCT:
|
|
|
2013 |
self.activity = Activity()
|
|
|
2014 |
self.activity.read(iprot)
|
|
|
2015 |
else:
|
|
|
2016 |
iprot.skip(ftype)
|
|
|
2017 |
else:
|
|
|
2018 |
iprot.skip(ftype)
|
|
|
2019 |
iprot.readFieldEnd()
|
|
|
2020 |
iprot.readStructEnd()
|
|
|
2021 |
|
|
|
2022 |
def write(self, oprot):
|
|
|
2023 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2024 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2025 |
return
|
|
|
2026 |
oprot.writeStructBegin('insertActivity_args')
|
|
|
2027 |
if self.activity != None:
|
|
|
2028 |
oprot.writeFieldBegin('activity', TType.STRUCT, 1)
|
|
|
2029 |
self.activity.write(oprot)
|
|
|
2030 |
oprot.writeFieldEnd()
|
|
|
2031 |
oprot.writeFieldStop()
|
|
|
2032 |
oprot.writeStructEnd()
|
|
|
2033 |
|
|
|
2034 |
def __repr__(self):
|
|
|
2035 |
L = ['%s=%r' % (key, value)
|
|
|
2036 |
for key, value in self.__dict__.iteritems()]
|
|
|
2037 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2038 |
|
|
|
2039 |
def __eq__(self, other):
|
|
|
2040 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2041 |
|
|
|
2042 |
def __ne__(self, other):
|
|
|
2043 |
return not (self == other)
|
|
|
2044 |
|
|
|
2045 |
class insertActivity_result:
|
|
|
2046 |
|
|
|
2047 |
thrift_spec = (
|
|
|
2048 |
)
|
|
|
2049 |
|
|
|
2050 |
def read(self, iprot):
|
|
|
2051 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2052 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2053 |
return
|
|
|
2054 |
iprot.readStructBegin()
|
|
|
2055 |
while True:
|
|
|
2056 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2057 |
if ftype == TType.STOP:
|
|
|
2058 |
break
|
|
|
2059 |
else:
|
|
|
2060 |
iprot.skip(ftype)
|
|
|
2061 |
iprot.readFieldEnd()
|
|
|
2062 |
iprot.readStructEnd()
|
|
|
2063 |
|
|
|
2064 |
def write(self, oprot):
|
|
|
2065 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2066 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2067 |
return
|
|
|
2068 |
oprot.writeStructBegin('insertActivity_result')
|
|
|
2069 |
oprot.writeFieldStop()
|
|
|
2070 |
oprot.writeStructEnd()
|
|
|
2071 |
|
|
|
2072 |
def __repr__(self):
|
|
|
2073 |
L = ['%s=%r' % (key, value)
|
|
|
2074 |
for key, value in self.__dict__.iteritems()]
|
|
|
2075 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2076 |
|
|
|
2077 |
def __eq__(self, other):
|
|
|
2078 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2079 |
|
|
|
2080 |
def __ne__(self, other):
|
|
|
2081 |
return not (self == other)
|
|
|
2082 |
|
|
|
2083 |
class getAllAgents_args:
|
|
|
2084 |
|
|
|
2085 |
thrift_spec = (
|
|
|
2086 |
)
|
|
|
2087 |
|
|
|
2088 |
def read(self, iprot):
|
|
|
2089 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2090 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2091 |
return
|
|
|
2092 |
iprot.readStructBegin()
|
|
|
2093 |
while True:
|
|
|
2094 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2095 |
if ftype == TType.STOP:
|
|
|
2096 |
break
|
|
|
2097 |
else:
|
|
|
2098 |
iprot.skip(ftype)
|
|
|
2099 |
iprot.readFieldEnd()
|
|
|
2100 |
iprot.readStructEnd()
|
|
|
2101 |
|
|
|
2102 |
def write(self, oprot):
|
|
|
2103 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2104 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2105 |
return
|
|
|
2106 |
oprot.writeStructBegin('getAllAgents_args')
|
|
|
2107 |
oprot.writeFieldStop()
|
|
|
2108 |
oprot.writeStructEnd()
|
|
|
2109 |
|
|
|
2110 |
def __repr__(self):
|
|
|
2111 |
L = ['%s=%r' % (key, value)
|
|
|
2112 |
for key, value in self.__dict__.iteritems()]
|
|
|
2113 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2114 |
|
|
|
2115 |
def __eq__(self, other):
|
|
|
2116 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2117 |
|
|
|
2118 |
def __ne__(self, other):
|
|
|
2119 |
return not (self == other)
|
|
|
2120 |
|
|
|
2121 |
class getAllAgents_result:
|
|
|
2122 |
"""
|
|
|
2123 |
Attributes:
|
|
|
2124 |
- success
|
|
|
2125 |
"""
|
|
|
2126 |
|
|
|
2127 |
thrift_spec = (
|
|
|
2128 |
(0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
|
|
|
2129 |
)
|
|
|
2130 |
|
|
|
2131 |
def __init__(self, success=None,):
|
|
|
2132 |
self.success = success
|
|
|
2133 |
|
|
|
2134 |
def read(self, iprot):
|
|
|
2135 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2136 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2137 |
return
|
|
|
2138 |
iprot.readStructBegin()
|
|
|
2139 |
while True:
|
|
|
2140 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2141 |
if ftype == TType.STOP:
|
|
|
2142 |
break
|
|
|
2143 |
if fid == 0:
|
|
|
2144 |
if ftype == TType.LIST:
|
|
|
2145 |
self.success = []
|
|
|
2146 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
2147 |
for _i39 in xrange(_size35):
|
|
|
2148 |
_elem40 = Agent()
|
|
|
2149 |
_elem40.read(iprot)
|
|
|
2150 |
self.success.append(_elem40)
|
|
|
2151 |
iprot.readListEnd()
|
|
|
2152 |
else:
|
|
|
2153 |
iprot.skip(ftype)
|
|
|
2154 |
else:
|
|
|
2155 |
iprot.skip(ftype)
|
|
|
2156 |
iprot.readFieldEnd()
|
|
|
2157 |
iprot.readStructEnd()
|
|
|
2158 |
|
|
|
2159 |
def write(self, oprot):
|
|
|
2160 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2161 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2162 |
return
|
|
|
2163 |
oprot.writeStructBegin('getAllAgents_result')
|
|
|
2164 |
if self.success != None:
|
|
|
2165 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2166 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2167 |
for iter41 in self.success:
|
|
|
2168 |
iter41.write(oprot)
|
|
|
2169 |
oprot.writeListEnd()
|
|
|
2170 |
oprot.writeFieldEnd()
|
|
|
2171 |
oprot.writeFieldStop()
|
|
|
2172 |
oprot.writeStructEnd()
|
|
|
2173 |
|
|
|
2174 |
def __repr__(self):
|
|
|
2175 |
L = ['%s=%r' % (key, value)
|
|
|
2176 |
for key, value in self.__dict__.iteritems()]
|
|
|
2177 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2178 |
|
|
|
2179 |
def __eq__(self, other):
|
|
|
2180 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2181 |
|
|
|
2182 |
def __ne__(self, other):
|
|
|
2183 |
return not (self == other)
|
|
|
2184 |
|
|
|
2185 |
class getAgent_args:
|
|
|
2186 |
"""
|
|
|
2187 |
Attributes:
|
|
|
2188 |
- agentId
|
|
|
2189 |
"""
|
|
|
2190 |
|
|
|
2191 |
thrift_spec = (
|
|
|
2192 |
None, # 0
|
|
|
2193 |
(1, TType.I64, 'agentId', None, None, ), # 1
|
|
|
2194 |
)
|
|
|
2195 |
|
|
|
2196 |
def __init__(self, agentId=None,):
|
|
|
2197 |
self.agentId = agentId
|
|
|
2198 |
|
|
|
2199 |
def read(self, iprot):
|
|
|
2200 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2201 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2202 |
return
|
|
|
2203 |
iprot.readStructBegin()
|
|
|
2204 |
while True:
|
|
|
2205 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2206 |
if ftype == TType.STOP:
|
|
|
2207 |
break
|
|
|
2208 |
if fid == 1:
|
|
|
2209 |
if ftype == TType.I64:
|
|
|
2210 |
self.agentId = iprot.readI64();
|
|
|
2211 |
else:
|
|
|
2212 |
iprot.skip(ftype)
|
|
|
2213 |
else:
|
|
|
2214 |
iprot.skip(ftype)
|
|
|
2215 |
iprot.readFieldEnd()
|
|
|
2216 |
iprot.readStructEnd()
|
|
|
2217 |
|
|
|
2218 |
def write(self, oprot):
|
|
|
2219 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2220 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2221 |
return
|
|
|
2222 |
oprot.writeStructBegin('getAgent_args')
|
|
|
2223 |
if self.agentId != None:
|
|
|
2224 |
oprot.writeFieldBegin('agentId', TType.I64, 1)
|
|
|
2225 |
oprot.writeI64(self.agentId)
|
|
|
2226 |
oprot.writeFieldEnd()
|
|
|
2227 |
oprot.writeFieldStop()
|
|
|
2228 |
oprot.writeStructEnd()
|
|
|
2229 |
|
|
|
2230 |
def __repr__(self):
|
|
|
2231 |
L = ['%s=%r' % (key, value)
|
|
|
2232 |
for key, value in self.__dict__.iteritems()]
|
|
|
2233 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2234 |
|
|
|
2235 |
def __eq__(self, other):
|
|
|
2236 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2237 |
|
|
|
2238 |
def __ne__(self, other):
|
|
|
2239 |
return not (self == other)
|
|
|
2240 |
|
|
|
2241 |
class getAgent_result:
|
|
|
2242 |
"""
|
|
|
2243 |
Attributes:
|
|
|
2244 |
- success
|
|
|
2245 |
"""
|
|
|
2246 |
|
|
|
2247 |
thrift_spec = (
|
|
|
2248 |
(0, TType.STRUCT, 'success', (Agent, Agent.thrift_spec), None, ), # 0
|
|
|
2249 |
)
|
|
|
2250 |
|
|
|
2251 |
def __init__(self, success=None,):
|
|
|
2252 |
self.success = success
|
|
|
2253 |
|
|
|
2254 |
def read(self, iprot):
|
|
|
2255 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2256 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2257 |
return
|
|
|
2258 |
iprot.readStructBegin()
|
|
|
2259 |
while True:
|
|
|
2260 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2261 |
if ftype == TType.STOP:
|
|
|
2262 |
break
|
|
|
2263 |
if fid == 0:
|
|
|
2264 |
if ftype == TType.STRUCT:
|
|
|
2265 |
self.success = Agent()
|
|
|
2266 |
self.success.read(iprot)
|
|
|
2267 |
else:
|
|
|
2268 |
iprot.skip(ftype)
|
|
|
2269 |
else:
|
|
|
2270 |
iprot.skip(ftype)
|
|
|
2271 |
iprot.readFieldEnd()
|
|
|
2272 |
iprot.readStructEnd()
|
|
|
2273 |
|
|
|
2274 |
def write(self, oprot):
|
|
|
2275 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2276 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2277 |
return
|
|
|
2278 |
oprot.writeStructBegin('getAgent_result')
|
|
|
2279 |
if self.success != None:
|
|
|
2280 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2281 |
self.success.write(oprot)
|
|
|
2282 |
oprot.writeFieldEnd()
|
|
|
2283 |
oprot.writeFieldStop()
|
|
|
2284 |
oprot.writeStructEnd()
|
|
|
2285 |
|
|
|
2286 |
def __repr__(self):
|
|
|
2287 |
L = ['%s=%r' % (key, value)
|
|
|
2288 |
for key, value in self.__dict__.iteritems()]
|
|
|
2289 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2290 |
|
|
|
2291 |
def __eq__(self, other):
|
|
|
2292 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2293 |
|
|
|
2294 |
def __ne__(self, other):
|
|
|
2295 |
return not (self == other)
|
|
|
2296 |
|
|
|
2297 |
class getAgentByEmailId_args:
|
|
|
2298 |
"""
|
|
|
2299 |
Attributes:
|
|
|
2300 |
- agentEmailId
|
|
|
2301 |
"""
|
|
|
2302 |
|
|
|
2303 |
thrift_spec = (
|
|
|
2304 |
None, # 0
|
|
|
2305 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
2306 |
)
|
|
|
2307 |
|
|
|
2308 |
def __init__(self, agentEmailId=None,):
|
|
|
2309 |
self.agentEmailId = agentEmailId
|
|
|
2310 |
|
|
|
2311 |
def read(self, iprot):
|
|
|
2312 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2313 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2314 |
return
|
|
|
2315 |
iprot.readStructBegin()
|
|
|
2316 |
while True:
|
|
|
2317 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2318 |
if ftype == TType.STOP:
|
|
|
2319 |
break
|
|
|
2320 |
if fid == 1:
|
|
|
2321 |
if ftype == TType.STRING:
|
|
|
2322 |
self.agentEmailId = iprot.readString();
|
|
|
2323 |
else:
|
|
|
2324 |
iprot.skip(ftype)
|
|
|
2325 |
else:
|
|
|
2326 |
iprot.skip(ftype)
|
|
|
2327 |
iprot.readFieldEnd()
|
|
|
2328 |
iprot.readStructEnd()
|
|
|
2329 |
|
|
|
2330 |
def write(self, oprot):
|
|
|
2331 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2332 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2333 |
return
|
|
|
2334 |
oprot.writeStructBegin('getAgentByEmailId_args')
|
|
|
2335 |
if self.agentEmailId != None:
|
|
|
2336 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
2337 |
oprot.writeString(self.agentEmailId)
|
|
|
2338 |
oprot.writeFieldEnd()
|
|
|
2339 |
oprot.writeFieldStop()
|
|
|
2340 |
oprot.writeStructEnd()
|
|
|
2341 |
|
|
|
2342 |
def __repr__(self):
|
|
|
2343 |
L = ['%s=%r' % (key, value)
|
|
|
2344 |
for key, value in self.__dict__.iteritems()]
|
|
|
2345 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2346 |
|
|
|
2347 |
def __eq__(self, other):
|
|
|
2348 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2349 |
|
|
|
2350 |
def __ne__(self, other):
|
|
|
2351 |
return not (self == other)
|
|
|
2352 |
|
|
|
2353 |
class getAgentByEmailId_result:
|
|
|
2354 |
"""
|
|
|
2355 |
Attributes:
|
|
|
2356 |
- success
|
|
|
2357 |
"""
|
|
|
2358 |
|
|
|
2359 |
thrift_spec = (
|
|
|
2360 |
(0, TType.STRUCT, 'success', (Agent, Agent.thrift_spec), None, ), # 0
|
|
|
2361 |
)
|
|
|
2362 |
|
|
|
2363 |
def __init__(self, success=None,):
|
|
|
2364 |
self.success = success
|
|
|
2365 |
|
|
|
2366 |
def read(self, iprot):
|
|
|
2367 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2368 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2369 |
return
|
|
|
2370 |
iprot.readStructBegin()
|
|
|
2371 |
while True:
|
|
|
2372 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2373 |
if ftype == TType.STOP:
|
|
|
2374 |
break
|
|
|
2375 |
if fid == 0:
|
|
|
2376 |
if ftype == TType.STRUCT:
|
|
|
2377 |
self.success = Agent()
|
|
|
2378 |
self.success.read(iprot)
|
|
|
2379 |
else:
|
|
|
2380 |
iprot.skip(ftype)
|
|
|
2381 |
else:
|
|
|
2382 |
iprot.skip(ftype)
|
|
|
2383 |
iprot.readFieldEnd()
|
|
|
2384 |
iprot.readStructEnd()
|
|
|
2385 |
|
|
|
2386 |
def write(self, oprot):
|
|
|
2387 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2388 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2389 |
return
|
|
|
2390 |
oprot.writeStructBegin('getAgentByEmailId_result')
|
|
|
2391 |
if self.success != None:
|
|
|
2392 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2393 |
self.success.write(oprot)
|
|
|
2394 |
oprot.writeFieldEnd()
|
|
|
2395 |
oprot.writeFieldStop()
|
|
|
2396 |
oprot.writeStructEnd()
|
|
|
2397 |
|
|
|
2398 |
def __repr__(self):
|
|
|
2399 |
L = ['%s=%r' % (key, value)
|
|
|
2400 |
for key, value in self.__dict__.iteritems()]
|
|
|
2401 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2402 |
|
|
|
2403 |
def __eq__(self, other):
|
|
|
2404 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2405 |
|
|
|
2406 |
def __ne__(self, other):
|
|
|
2407 |
return not (self == other)
|
|
|
2408 |
|
|
|
2409 |
class updatePasswordForAgent_args:
|
|
|
2410 |
"""
|
|
|
2411 |
Attributes:
|
|
|
2412 |
- agentEmailId
|
|
|
2413 |
- password
|
|
|
2414 |
"""
|
|
|
2415 |
|
|
|
2416 |
thrift_spec = (
|
|
|
2417 |
None, # 0
|
|
|
2418 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
2419 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2420 |
)
|
|
|
2421 |
|
|
|
2422 |
def __init__(self, agentEmailId=None, password=None,):
|
|
|
2423 |
self.agentEmailId = agentEmailId
|
|
|
2424 |
self.password = password
|
|
|
2425 |
|
|
|
2426 |
def read(self, iprot):
|
|
|
2427 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2428 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2429 |
return
|
|
|
2430 |
iprot.readStructBegin()
|
|
|
2431 |
while True:
|
|
|
2432 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2433 |
if ftype == TType.STOP:
|
|
|
2434 |
break
|
|
|
2435 |
if fid == 1:
|
|
|
2436 |
if ftype == TType.STRING:
|
|
|
2437 |
self.agentEmailId = iprot.readString();
|
|
|
2438 |
else:
|
|
|
2439 |
iprot.skip(ftype)
|
|
|
2440 |
elif fid == 2:
|
|
|
2441 |
if ftype == TType.STRING:
|
|
|
2442 |
self.password = iprot.readString();
|
|
|
2443 |
else:
|
|
|
2444 |
iprot.skip(ftype)
|
|
|
2445 |
else:
|
|
|
2446 |
iprot.skip(ftype)
|
|
|
2447 |
iprot.readFieldEnd()
|
|
|
2448 |
iprot.readStructEnd()
|
|
|
2449 |
|
|
|
2450 |
def write(self, oprot):
|
|
|
2451 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2452 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2453 |
return
|
|
|
2454 |
oprot.writeStructBegin('updatePasswordForAgent_args')
|
|
|
2455 |
if self.agentEmailId != None:
|
|
|
2456 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
2457 |
oprot.writeString(self.agentEmailId)
|
|
|
2458 |
oprot.writeFieldEnd()
|
|
|
2459 |
if self.password != None:
|
|
|
2460 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2461 |
oprot.writeString(self.password)
|
|
|
2462 |
oprot.writeFieldEnd()
|
|
|
2463 |
oprot.writeFieldStop()
|
|
|
2464 |
oprot.writeStructEnd()
|
|
|
2465 |
|
|
|
2466 |
def __repr__(self):
|
|
|
2467 |
L = ['%s=%r' % (key, value)
|
|
|
2468 |
for key, value in self.__dict__.iteritems()]
|
|
|
2469 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2470 |
|
|
|
2471 |
def __eq__(self, other):
|
|
|
2472 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2473 |
|
|
|
2474 |
def __ne__(self, other):
|
|
|
2475 |
return not (self == other)
|
|
|
2476 |
|
|
|
2477 |
class updatePasswordForAgent_result:
|
|
|
2478 |
|
|
|
2479 |
thrift_spec = (
|
|
|
2480 |
)
|
|
|
2481 |
|
|
|
2482 |
def read(self, iprot):
|
|
|
2483 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2484 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2485 |
return
|
|
|
2486 |
iprot.readStructBegin()
|
|
|
2487 |
while True:
|
|
|
2488 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2489 |
if ftype == TType.STOP:
|
|
|
2490 |
break
|
|
|
2491 |
else:
|
|
|
2492 |
iprot.skip(ftype)
|
|
|
2493 |
iprot.readFieldEnd()
|
|
|
2494 |
iprot.readStructEnd()
|
|
|
2495 |
|
|
|
2496 |
def write(self, oprot):
|
|
|
2497 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2498 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2499 |
return
|
|
|
2500 |
oprot.writeStructBegin('updatePasswordForAgent_result')
|
|
|
2501 |
oprot.writeFieldStop()
|
|
|
2502 |
oprot.writeStructEnd()
|
|
|
2503 |
|
|
|
2504 |
def __repr__(self):
|
|
|
2505 |
L = ['%s=%r' % (key, value)
|
|
|
2506 |
for key, value in self.__dict__.iteritems()]
|
|
|
2507 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2508 |
|
|
|
2509 |
def __eq__(self, other):
|
|
|
2510 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2511 |
|
|
|
2512 |
def __ne__(self, other):
|
|
|
2513 |
return not (self == other)
|
|
|
2514 |
|
|
|
2515 |
class getRoleNamesForAgent_args:
|
|
|
2516 |
"""
|
|
|
2517 |
Attributes:
|
|
|
2518 |
- agentEmailId
|
|
|
2519 |
"""
|
|
|
2520 |
|
|
|
2521 |
thrift_spec = (
|
|
|
2522 |
None, # 0
|
|
|
2523 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
2524 |
)
|
|
|
2525 |
|
|
|
2526 |
def __init__(self, agentEmailId=None,):
|
|
|
2527 |
self.agentEmailId = agentEmailId
|
|
|
2528 |
|
|
|
2529 |
def read(self, iprot):
|
|
|
2530 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2531 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2532 |
return
|
|
|
2533 |
iprot.readStructBegin()
|
|
|
2534 |
while True:
|
|
|
2535 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2536 |
if ftype == TType.STOP:
|
|
|
2537 |
break
|
|
|
2538 |
if fid == 1:
|
|
|
2539 |
if ftype == TType.STRING:
|
|
|
2540 |
self.agentEmailId = iprot.readString();
|
|
|
2541 |
else:
|
|
|
2542 |
iprot.skip(ftype)
|
|
|
2543 |
else:
|
|
|
2544 |
iprot.skip(ftype)
|
|
|
2545 |
iprot.readFieldEnd()
|
|
|
2546 |
iprot.readStructEnd()
|
|
|
2547 |
|
|
|
2548 |
def write(self, oprot):
|
|
|
2549 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2550 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2551 |
return
|
|
|
2552 |
oprot.writeStructBegin('getRoleNamesForAgent_args')
|
|
|
2553 |
if self.agentEmailId != None:
|
|
|
2554 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
2555 |
oprot.writeString(self.agentEmailId)
|
|
|
2556 |
oprot.writeFieldEnd()
|
|
|
2557 |
oprot.writeFieldStop()
|
|
|
2558 |
oprot.writeStructEnd()
|
|
|
2559 |
|
|
|
2560 |
def __repr__(self):
|
|
|
2561 |
L = ['%s=%r' % (key, value)
|
|
|
2562 |
for key, value in self.__dict__.iteritems()]
|
|
|
2563 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2564 |
|
|
|
2565 |
def __eq__(self, other):
|
|
|
2566 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2567 |
|
|
|
2568 |
def __ne__(self, other):
|
|
|
2569 |
return not (self == other)
|
|
|
2570 |
|
|
|
2571 |
class getRoleNamesForAgent_result:
|
|
|
2572 |
"""
|
|
|
2573 |
Attributes:
|
|
|
2574 |
- success
|
|
|
2575 |
"""
|
|
|
2576 |
|
|
|
2577 |
thrift_spec = (
|
|
|
2578 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
2579 |
)
|
|
|
2580 |
|
|
|
2581 |
def __init__(self, success=None,):
|
|
|
2582 |
self.success = success
|
|
|
2583 |
|
|
|
2584 |
def read(self, iprot):
|
|
|
2585 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2586 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2587 |
return
|
|
|
2588 |
iprot.readStructBegin()
|
|
|
2589 |
while True:
|
|
|
2590 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2591 |
if ftype == TType.STOP:
|
|
|
2592 |
break
|
|
|
2593 |
if fid == 0:
|
|
|
2594 |
if ftype == TType.LIST:
|
|
|
2595 |
self.success = []
|
|
|
2596 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
2597 |
for _i46 in xrange(_size42):
|
|
|
2598 |
_elem47 = iprot.readString();
|
|
|
2599 |
self.success.append(_elem47)
|
|
|
2600 |
iprot.readListEnd()
|
|
|
2601 |
else:
|
|
|
2602 |
iprot.skip(ftype)
|
|
|
2603 |
else:
|
|
|
2604 |
iprot.skip(ftype)
|
|
|
2605 |
iprot.readFieldEnd()
|
|
|
2606 |
iprot.readStructEnd()
|
|
|
2607 |
|
|
|
2608 |
def write(self, oprot):
|
|
|
2609 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2610 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2611 |
return
|
|
|
2612 |
oprot.writeStructBegin('getRoleNamesForAgent_result')
|
|
|
2613 |
if self.success != None:
|
|
|
2614 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2615 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
|
|
2616 |
for iter48 in self.success:
|
|
|
2617 |
oprot.writeString(iter48)
|
|
|
2618 |
oprot.writeListEnd()
|
|
|
2619 |
oprot.writeFieldEnd()
|
|
|
2620 |
oprot.writeFieldStop()
|
|
|
2621 |
oprot.writeStructEnd()
|
|
|
2622 |
|
|
|
2623 |
def __repr__(self):
|
|
|
2624 |
L = ['%s=%r' % (key, value)
|
|
|
2625 |
for key, value in self.__dict__.iteritems()]
|
|
|
2626 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2627 |
|
|
|
2628 |
def __eq__(self, other):
|
|
|
2629 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2630 |
|
|
|
2631 |
def __ne__(self, other):
|
|
|
2632 |
return not (self == other)
|
|
|
2633 |
|
|
|
2634 |
class getPermissionsForRoleName_args:
|
|
|
2635 |
"""
|
|
|
2636 |
Attributes:
|
|
|
2637 |
- roleName
|
|
|
2638 |
"""
|
|
|
2639 |
|
|
|
2640 |
thrift_spec = (
|
|
|
2641 |
None, # 0
|
|
|
2642 |
(1, TType.STRING, 'roleName', None, None, ), # 1
|
|
|
2643 |
)
|
|
|
2644 |
|
|
|
2645 |
def __init__(self, roleName=None,):
|
|
|
2646 |
self.roleName = roleName
|
|
|
2647 |
|
|
|
2648 |
def read(self, iprot):
|
|
|
2649 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2650 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2651 |
return
|
|
|
2652 |
iprot.readStructBegin()
|
|
|
2653 |
while True:
|
|
|
2654 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2655 |
if ftype == TType.STOP:
|
|
|
2656 |
break
|
|
|
2657 |
if fid == 1:
|
|
|
2658 |
if ftype == TType.STRING:
|
|
|
2659 |
self.roleName = iprot.readString();
|
|
|
2660 |
else:
|
|
|
2661 |
iprot.skip(ftype)
|
|
|
2662 |
else:
|
|
|
2663 |
iprot.skip(ftype)
|
|
|
2664 |
iprot.readFieldEnd()
|
|
|
2665 |
iprot.readStructEnd()
|
|
|
2666 |
|
|
|
2667 |
def write(self, oprot):
|
|
|
2668 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2669 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2670 |
return
|
|
|
2671 |
oprot.writeStructBegin('getPermissionsForRoleName_args')
|
|
|
2672 |
if self.roleName != None:
|
|
|
2673 |
oprot.writeFieldBegin('roleName', TType.STRING, 1)
|
|
|
2674 |
oprot.writeString(self.roleName)
|
|
|
2675 |
oprot.writeFieldEnd()
|
|
|
2676 |
oprot.writeFieldStop()
|
|
|
2677 |
oprot.writeStructEnd()
|
|
|
2678 |
|
|
|
2679 |
def __repr__(self):
|
|
|
2680 |
L = ['%s=%r' % (key, value)
|
|
|
2681 |
for key, value in self.__dict__.iteritems()]
|
|
|
2682 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2683 |
|
|
|
2684 |
def __eq__(self, other):
|
|
|
2685 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2686 |
|
|
|
2687 |
def __ne__(self, other):
|
|
|
2688 |
return not (self == other)
|
|
|
2689 |
|
|
|
2690 |
class getPermissionsForRoleName_result:
|
|
|
2691 |
"""
|
|
|
2692 |
Attributes:
|
|
|
2693 |
- success
|
|
|
2694 |
"""
|
|
|
2695 |
|
|
|
2696 |
thrift_spec = (
|
|
|
2697 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
2698 |
)
|
|
|
2699 |
|
|
|
2700 |
def __init__(self, success=None,):
|
|
|
2701 |
self.success = success
|
|
|
2702 |
|
|
|
2703 |
def read(self, iprot):
|
|
|
2704 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2705 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2706 |
return
|
|
|
2707 |
iprot.readStructBegin()
|
|
|
2708 |
while True:
|
|
|
2709 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2710 |
if ftype == TType.STOP:
|
|
|
2711 |
break
|
|
|
2712 |
if fid == 0:
|
|
|
2713 |
if ftype == TType.LIST:
|
|
|
2714 |
self.success = []
|
|
|
2715 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
2716 |
for _i53 in xrange(_size49):
|
|
|
2717 |
_elem54 = iprot.readString();
|
|
|
2718 |
self.success.append(_elem54)
|
|
|
2719 |
iprot.readListEnd()
|
|
|
2720 |
else:
|
|
|
2721 |
iprot.skip(ftype)
|
|
|
2722 |
else:
|
|
|
2723 |
iprot.skip(ftype)
|
|
|
2724 |
iprot.readFieldEnd()
|
|
|
2725 |
iprot.readStructEnd()
|
|
|
2726 |
|
|
|
2727 |
def write(self, oprot):
|
|
|
2728 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2729 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2730 |
return
|
|
|
2731 |
oprot.writeStructBegin('getPermissionsForRoleName_result')
|
|
|
2732 |
if self.success != None:
|
|
|
2733 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2734 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
|
|
2735 |
for iter55 in self.success:
|
|
|
2736 |
oprot.writeString(iter55)
|
|
|
2737 |
oprot.writeListEnd()
|
|
|
2738 |
oprot.writeFieldEnd()
|
|
|
2739 |
oprot.writeFieldStop()
|
|
|
2740 |
oprot.writeStructEnd()
|
|
|
2741 |
|
|
|
2742 |
def __repr__(self):
|
|
|
2743 |
L = ['%s=%r' % (key, value)
|
|
|
2744 |
for key, value in self.__dict__.iteritems()]
|
|
|
2745 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2746 |
|
|
|
2747 |
def __eq__(self, other):
|
|
|
2748 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2749 |
|
|
|
2750 |
def __ne__(self, other):
|
|
|
2751 |
return not (self == other)
|
|
|
2752 |
|
|
|
2753 |
|