| 3131 |
rajveer |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 3131 |
rajveer |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.GenericService
|
| 3131 |
rajveer |
9 |
from ttypes import *
|
|
|
10 |
from thrift.Thrift import TProcessor
|
|
|
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 3131 |
rajveer |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 3376 |
rajveer |
19 |
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
|
| 3431 |
rajveer |
20 |
def getTickets(self, searchFilter):
|
| 3131 |
rajveer |
21 |
"""
|
|
|
22 |
Parameters:
|
| 3431 |
rajveer |
23 |
- searchFilter
|
| 3131 |
rajveer |
24 |
"""
|
|
|
25 |
pass
|
|
|
26 |
|
| 3376 |
rajveer |
27 |
def getUnassignedTickets(self, ):
|
| 3131 |
rajveer |
28 |
pass
|
|
|
29 |
|
| 3376 |
rajveer |
30 |
def updateTicket(self, ticket, activity):
|
| 3131 |
rajveer |
31 |
"""
|
|
|
32 |
Parameters:
|
|
|
33 |
- ticket
|
| 3376 |
rajveer |
34 |
- activity
|
| 3131 |
rajveer |
35 |
"""
|
|
|
36 |
pass
|
|
|
37 |
|
| 3376 |
rajveer |
38 |
def insertTicket(self, ticket, activity):
|
| 3131 |
rajveer |
39 |
"""
|
|
|
40 |
Parameters:
|
|
|
41 |
- ticket
|
| 3376 |
rajveer |
42 |
- activity
|
| 3131 |
rajveer |
43 |
"""
|
|
|
44 |
pass
|
|
|
45 |
|
| 4948 |
phani.kuma |
46 |
def unassignAgentTickets(self, assigneeId):
|
|
|
47 |
"""
|
|
|
48 |
Parameters:
|
|
|
49 |
- assigneeId
|
|
|
50 |
"""
|
|
|
51 |
pass
|
|
|
52 |
|
| 3431 |
rajveer |
53 |
def getActivities(self, searchFilter):
|
| 3131 |
rajveer |
54 |
"""
|
|
|
55 |
Parameters:
|
| 3431 |
rajveer |
56 |
- searchFilter
|
| 3131 |
rajveer |
57 |
"""
|
|
|
58 |
pass
|
|
|
59 |
|
|
|
60 |
def insertActivity(self, activity):
|
|
|
61 |
"""
|
|
|
62 |
Parameters:
|
|
|
63 |
- activity
|
|
|
64 |
"""
|
|
|
65 |
pass
|
|
|
66 |
|
| 3431 |
rajveer |
67 |
def markAsRead(self, activityId, agentId):
|
| 3131 |
rajveer |
68 |
"""
|
|
|
69 |
Parameters:
|
| 3431 |
rajveer |
70 |
- activityId
|
| 3131 |
rajveer |
71 |
- agentId
|
|
|
72 |
"""
|
|
|
73 |
pass
|
|
|
74 |
|
| 3431 |
rajveer |
75 |
def getAgents(self, searchFilter):
|
| 3131 |
rajveer |
76 |
"""
|
|
|
77 |
Parameters:
|
| 3431 |
rajveer |
78 |
- searchFilter
|
| 3131 |
rajveer |
79 |
"""
|
|
|
80 |
pass
|
|
|
81 |
|
| 5407 |
amar.kumar |
82 |
def getInactiveAgents(self, searchFilter):
|
|
|
83 |
"""
|
|
|
84 |
Parameters:
|
|
|
85 |
- searchFilter
|
|
|
86 |
"""
|
|
|
87 |
pass
|
|
|
88 |
|
| 3131 |
rajveer |
89 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
90 |
"""
|
|
|
91 |
Parameters:
|
|
|
92 |
- agentEmailId
|
|
|
93 |
- password
|
|
|
94 |
"""
|
|
|
95 |
pass
|
|
|
96 |
|
|
|
97 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
98 |
"""
|
|
|
99 |
Parameters:
|
|
|
100 |
- agentEmailId
|
|
|
101 |
"""
|
|
|
102 |
pass
|
|
|
103 |
|
|
|
104 |
def getPermissionsForRoleName(self, roleName):
|
|
|
105 |
"""
|
|
|
106 |
Parameters:
|
|
|
107 |
- roleName
|
|
|
108 |
"""
|
|
|
109 |
pass
|
|
|
110 |
|
| 3376 |
rajveer |
111 |
def getLastEmailProcessedTimestamp(self, ):
|
|
|
112 |
pass
|
| 3131 |
rajveer |
113 |
|
| 3376 |
rajveer |
114 |
def updateLastEmailProcessedTimestamp(self, timestamp):
|
|
|
115 |
"""
|
|
|
116 |
Parameters:
|
|
|
117 |
- timestamp
|
|
|
118 |
"""
|
|
|
119 |
pass
|
|
|
120 |
|
| 4948 |
phani.kuma |
121 |
def changeAgentStatus(self, status, emailId):
|
|
|
122 |
"""
|
|
|
123 |
Parameters:
|
|
|
124 |
- status
|
|
|
125 |
- emailId
|
|
|
126 |
"""
|
|
|
127 |
pass
|
| 3376 |
rajveer |
128 |
|
| 4948 |
phani.kuma |
129 |
def insertAgent(self, agent, role):
|
|
|
130 |
"""
|
|
|
131 |
Parameters:
|
|
|
132 |
- agent
|
|
|
133 |
- role
|
|
|
134 |
"""
|
|
|
135 |
pass
|
|
|
136 |
|
| 5407 |
amar.kumar |
137 |
def changeAgentRole(self, id, role):
|
|
|
138 |
"""
|
|
|
139 |
Parameters:
|
|
|
140 |
- id
|
|
|
141 |
- role
|
|
|
142 |
"""
|
|
|
143 |
pass
|
| 4948 |
phani.kuma |
144 |
|
| 5407 |
amar.kumar |
145 |
def getOpenTicketCountForAgent(self, agentId):
|
|
|
146 |
"""
|
|
|
147 |
Parameters:
|
|
|
148 |
- agentId
|
|
|
149 |
"""
|
|
|
150 |
pass
|
|
|
151 |
|
| 6104 |
rajveer |
152 |
def getOpenTicketsMap(self, ):
|
|
|
153 |
pass
|
| 5407 |
amar.kumar |
154 |
|
| 8369 |
manish.sha |
155 |
def getFedexReconciliationDataMap(self, order_ids, method_key):
|
|
|
156 |
"""
|
|
|
157 |
Parameters:
|
|
|
158 |
- order_ids
|
|
|
159 |
- method_key
|
|
|
160 |
"""
|
|
|
161 |
pass
|
| 6104 |
rajveer |
162 |
|
| 8369 |
manish.sha |
163 |
|
| 3376 |
rajveer |
164 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 3131 |
rajveer |
165 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
166 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 3131 |
rajveer |
167 |
|
| 3431 |
rajveer |
168 |
def getTickets(self, searchFilter):
|
| 3131 |
rajveer |
169 |
"""
|
|
|
170 |
Parameters:
|
| 3431 |
rajveer |
171 |
- searchFilter
|
| 3131 |
rajveer |
172 |
"""
|
| 3431 |
rajveer |
173 |
self.send_getTickets(searchFilter)
|
| 3131 |
rajveer |
174 |
return self.recv_getTickets()
|
|
|
175 |
|
| 3431 |
rajveer |
176 |
def send_getTickets(self, searchFilter):
|
| 3131 |
rajveer |
177 |
self._oprot.writeMessageBegin('getTickets', TMessageType.CALL, self._seqid)
|
|
|
178 |
args = getTickets_args()
|
| 3431 |
rajveer |
179 |
args.searchFilter = searchFilter
|
| 3131 |
rajveer |
180 |
args.write(self._oprot)
|
|
|
181 |
self._oprot.writeMessageEnd()
|
|
|
182 |
self._oprot.trans.flush()
|
|
|
183 |
|
|
|
184 |
def recv_getTickets(self, ):
|
|
|
185 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
186 |
if mtype == TMessageType.EXCEPTION:
|
|
|
187 |
x = TApplicationException()
|
|
|
188 |
x.read(self._iprot)
|
|
|
189 |
self._iprot.readMessageEnd()
|
|
|
190 |
raise x
|
|
|
191 |
result = getTickets_result()
|
|
|
192 |
result.read(self._iprot)
|
|
|
193 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
194 |
if result.success is not None:
|
| 3131 |
rajveer |
195 |
return result.success
|
|
|
196 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
|
|
|
197 |
|
| 3376 |
rajveer |
198 |
def getUnassignedTickets(self, ):
|
|
|
199 |
self.send_getUnassignedTickets()
|
|
|
200 |
return self.recv_getUnassignedTickets()
|
| 3131 |
rajveer |
201 |
|
| 3376 |
rajveer |
202 |
def send_getUnassignedTickets(self, ):
|
|
|
203 |
self._oprot.writeMessageBegin('getUnassignedTickets', TMessageType.CALL, self._seqid)
|
|
|
204 |
args = getUnassignedTickets_args()
|
| 3131 |
rajveer |
205 |
args.write(self._oprot)
|
|
|
206 |
self._oprot.writeMessageEnd()
|
|
|
207 |
self._oprot.trans.flush()
|
|
|
208 |
|
| 3376 |
rajveer |
209 |
def recv_getUnassignedTickets(self, ):
|
| 3131 |
rajveer |
210 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
211 |
if mtype == TMessageType.EXCEPTION:
|
|
|
212 |
x = TApplicationException()
|
|
|
213 |
x.read(self._iprot)
|
|
|
214 |
self._iprot.readMessageEnd()
|
|
|
215 |
raise x
|
| 3376 |
rajveer |
216 |
result = getUnassignedTickets_result()
|
| 3131 |
rajveer |
217 |
result.read(self._iprot)
|
|
|
218 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
219 |
if result.success is not None:
|
| 3131 |
rajveer |
220 |
return result.success
|
| 3376 |
rajveer |
221 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
|
| 3131 |
rajveer |
222 |
|
| 3376 |
rajveer |
223 |
def updateTicket(self, ticket, activity):
|
| 3131 |
rajveer |
224 |
"""
|
|
|
225 |
Parameters:
|
|
|
226 |
- ticket
|
| 3376 |
rajveer |
227 |
- activity
|
| 3131 |
rajveer |
228 |
"""
|
| 3376 |
rajveer |
229 |
self.send_updateTicket(ticket, activity)
|
| 3131 |
rajveer |
230 |
self.recv_updateTicket()
|
|
|
231 |
|
| 3376 |
rajveer |
232 |
def send_updateTicket(self, ticket, activity):
|
| 3131 |
rajveer |
233 |
self._oprot.writeMessageBegin('updateTicket', TMessageType.CALL, self._seqid)
|
|
|
234 |
args = updateTicket_args()
|
|
|
235 |
args.ticket = ticket
|
| 3376 |
rajveer |
236 |
args.activity = activity
|
| 3131 |
rajveer |
237 |
args.write(self._oprot)
|
|
|
238 |
self._oprot.writeMessageEnd()
|
|
|
239 |
self._oprot.trans.flush()
|
|
|
240 |
|
|
|
241 |
def recv_updateTicket(self, ):
|
|
|
242 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
243 |
if mtype == TMessageType.EXCEPTION:
|
|
|
244 |
x = TApplicationException()
|
|
|
245 |
x.read(self._iprot)
|
|
|
246 |
self._iprot.readMessageEnd()
|
|
|
247 |
raise x
|
|
|
248 |
result = updateTicket_result()
|
|
|
249 |
result.read(self._iprot)
|
|
|
250 |
self._iprot.readMessageEnd()
|
|
|
251 |
return
|
|
|
252 |
|
| 3376 |
rajveer |
253 |
def insertTicket(self, ticket, activity):
|
| 3131 |
rajveer |
254 |
"""
|
|
|
255 |
Parameters:
|
|
|
256 |
- ticket
|
| 3376 |
rajveer |
257 |
- activity
|
| 3131 |
rajveer |
258 |
"""
|
| 3376 |
rajveer |
259 |
self.send_insertTicket(ticket, activity)
|
| 3131 |
rajveer |
260 |
return self.recv_insertTicket()
|
|
|
261 |
|
| 3376 |
rajveer |
262 |
def send_insertTicket(self, ticket, activity):
|
| 3131 |
rajveer |
263 |
self._oprot.writeMessageBegin('insertTicket', TMessageType.CALL, self._seqid)
|
|
|
264 |
args = insertTicket_args()
|
|
|
265 |
args.ticket = ticket
|
| 3376 |
rajveer |
266 |
args.activity = activity
|
| 3131 |
rajveer |
267 |
args.write(self._oprot)
|
|
|
268 |
self._oprot.writeMessageEnd()
|
|
|
269 |
self._oprot.trans.flush()
|
|
|
270 |
|
|
|
271 |
def recv_insertTicket(self, ):
|
|
|
272 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
273 |
if mtype == TMessageType.EXCEPTION:
|
|
|
274 |
x = TApplicationException()
|
|
|
275 |
x.read(self._iprot)
|
|
|
276 |
self._iprot.readMessageEnd()
|
|
|
277 |
raise x
|
|
|
278 |
result = insertTicket_result()
|
|
|
279 |
result.read(self._iprot)
|
|
|
280 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
281 |
if result.success is not None:
|
| 3131 |
rajveer |
282 |
return result.success
|
|
|
283 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
|
|
|
284 |
|
| 4948 |
phani.kuma |
285 |
def unassignAgentTickets(self, assigneeId):
|
|
|
286 |
"""
|
|
|
287 |
Parameters:
|
|
|
288 |
- assigneeId
|
|
|
289 |
"""
|
|
|
290 |
self.send_unassignAgentTickets(assigneeId)
|
|
|
291 |
self.recv_unassignAgentTickets()
|
|
|
292 |
|
|
|
293 |
def send_unassignAgentTickets(self, assigneeId):
|
|
|
294 |
self._oprot.writeMessageBegin('unassignAgentTickets', TMessageType.CALL, self._seqid)
|
|
|
295 |
args = unassignAgentTickets_args()
|
|
|
296 |
args.assigneeId = assigneeId
|
|
|
297 |
args.write(self._oprot)
|
|
|
298 |
self._oprot.writeMessageEnd()
|
|
|
299 |
self._oprot.trans.flush()
|
|
|
300 |
|
|
|
301 |
def recv_unassignAgentTickets(self, ):
|
|
|
302 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
303 |
if mtype == TMessageType.EXCEPTION:
|
|
|
304 |
x = TApplicationException()
|
|
|
305 |
x.read(self._iprot)
|
|
|
306 |
self._iprot.readMessageEnd()
|
|
|
307 |
raise x
|
|
|
308 |
result = unassignAgentTickets_result()
|
|
|
309 |
result.read(self._iprot)
|
|
|
310 |
self._iprot.readMessageEnd()
|
|
|
311 |
return
|
|
|
312 |
|
| 3431 |
rajveer |
313 |
def getActivities(self, searchFilter):
|
| 3131 |
rajveer |
314 |
"""
|
|
|
315 |
Parameters:
|
| 3431 |
rajveer |
316 |
- searchFilter
|
| 3131 |
rajveer |
317 |
"""
|
| 3431 |
rajveer |
318 |
self.send_getActivities(searchFilter)
|
| 3131 |
rajveer |
319 |
return self.recv_getActivities()
|
|
|
320 |
|
| 3431 |
rajveer |
321 |
def send_getActivities(self, searchFilter):
|
| 3131 |
rajveer |
322 |
self._oprot.writeMessageBegin('getActivities', TMessageType.CALL, self._seqid)
|
|
|
323 |
args = getActivities_args()
|
| 3431 |
rajveer |
324 |
args.searchFilter = searchFilter
|
| 3131 |
rajveer |
325 |
args.write(self._oprot)
|
|
|
326 |
self._oprot.writeMessageEnd()
|
|
|
327 |
self._oprot.trans.flush()
|
|
|
328 |
|
|
|
329 |
def recv_getActivities(self, ):
|
|
|
330 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
331 |
if mtype == TMessageType.EXCEPTION:
|
|
|
332 |
x = TApplicationException()
|
|
|
333 |
x.read(self._iprot)
|
|
|
334 |
self._iprot.readMessageEnd()
|
|
|
335 |
raise x
|
|
|
336 |
result = getActivities_result()
|
|
|
337 |
result.read(self._iprot)
|
|
|
338 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
339 |
if result.success is not None:
|
| 3131 |
rajveer |
340 |
return result.success
|
|
|
341 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
|
|
|
342 |
|
|
|
343 |
def insertActivity(self, activity):
|
|
|
344 |
"""
|
|
|
345 |
Parameters:
|
|
|
346 |
- activity
|
|
|
347 |
"""
|
|
|
348 |
self.send_insertActivity(activity)
|
| 3431 |
rajveer |
349 |
return self.recv_insertActivity()
|
| 3131 |
rajveer |
350 |
|
|
|
351 |
def send_insertActivity(self, activity):
|
|
|
352 |
self._oprot.writeMessageBegin('insertActivity', TMessageType.CALL, self._seqid)
|
|
|
353 |
args = insertActivity_args()
|
|
|
354 |
args.activity = activity
|
|
|
355 |
args.write(self._oprot)
|
|
|
356 |
self._oprot.writeMessageEnd()
|
|
|
357 |
self._oprot.trans.flush()
|
|
|
358 |
|
|
|
359 |
def recv_insertActivity(self, ):
|
|
|
360 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
361 |
if mtype == TMessageType.EXCEPTION:
|
|
|
362 |
x = TApplicationException()
|
|
|
363 |
x.read(self._iprot)
|
|
|
364 |
self._iprot.readMessageEnd()
|
|
|
365 |
raise x
|
|
|
366 |
result = insertActivity_result()
|
|
|
367 |
result.read(self._iprot)
|
|
|
368 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
369 |
if result.success is not None:
|
| 3131 |
rajveer |
370 |
return result.success
|
| 3431 |
rajveer |
371 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
|
| 3131 |
rajveer |
372 |
|
| 3431 |
rajveer |
373 |
def markAsRead(self, activityId, agentId):
|
| 3131 |
rajveer |
374 |
"""
|
|
|
375 |
Parameters:
|
| 3431 |
rajveer |
376 |
- activityId
|
| 3131 |
rajveer |
377 |
- agentId
|
|
|
378 |
"""
|
| 3431 |
rajveer |
379 |
self.send_markAsRead(activityId, agentId)
|
|
|
380 |
self.recv_markAsRead()
|
| 3131 |
rajveer |
381 |
|
| 3431 |
rajveer |
382 |
def send_markAsRead(self, activityId, agentId):
|
|
|
383 |
self._oprot.writeMessageBegin('markAsRead', TMessageType.CALL, self._seqid)
|
|
|
384 |
args = markAsRead_args()
|
|
|
385 |
args.activityId = activityId
|
| 3131 |
rajveer |
386 |
args.agentId = agentId
|
|
|
387 |
args.write(self._oprot)
|
|
|
388 |
self._oprot.writeMessageEnd()
|
|
|
389 |
self._oprot.trans.flush()
|
|
|
390 |
|
| 3431 |
rajveer |
391 |
def recv_markAsRead(self, ):
|
| 3131 |
rajveer |
392 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
393 |
if mtype == TMessageType.EXCEPTION:
|
|
|
394 |
x = TApplicationException()
|
|
|
395 |
x.read(self._iprot)
|
|
|
396 |
self._iprot.readMessageEnd()
|
|
|
397 |
raise x
|
| 3431 |
rajveer |
398 |
result = markAsRead_result()
|
| 3131 |
rajveer |
399 |
result.read(self._iprot)
|
|
|
400 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
401 |
return
|
| 3131 |
rajveer |
402 |
|
| 3431 |
rajveer |
403 |
def getAgents(self, searchFilter):
|
| 3131 |
rajveer |
404 |
"""
|
|
|
405 |
Parameters:
|
| 3431 |
rajveer |
406 |
- searchFilter
|
| 3131 |
rajveer |
407 |
"""
|
| 3431 |
rajveer |
408 |
self.send_getAgents(searchFilter)
|
|
|
409 |
return self.recv_getAgents()
|
| 3131 |
rajveer |
410 |
|
| 3431 |
rajveer |
411 |
def send_getAgents(self, searchFilter):
|
|
|
412 |
self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)
|
|
|
413 |
args = getAgents_args()
|
|
|
414 |
args.searchFilter = searchFilter
|
| 3131 |
rajveer |
415 |
args.write(self._oprot)
|
|
|
416 |
self._oprot.writeMessageEnd()
|
|
|
417 |
self._oprot.trans.flush()
|
|
|
418 |
|
| 3431 |
rajveer |
419 |
def recv_getAgents(self, ):
|
| 3131 |
rajveer |
420 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
421 |
if mtype == TMessageType.EXCEPTION:
|
|
|
422 |
x = TApplicationException()
|
|
|
423 |
x.read(self._iprot)
|
|
|
424 |
self._iprot.readMessageEnd()
|
|
|
425 |
raise x
|
| 3431 |
rajveer |
426 |
result = getAgents_result()
|
| 3131 |
rajveer |
427 |
result.read(self._iprot)
|
|
|
428 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
429 |
if result.success is not None:
|
| 3131 |
rajveer |
430 |
return result.success
|
| 3431 |
rajveer |
431 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
|
| 3131 |
rajveer |
432 |
|
| 5407 |
amar.kumar |
433 |
def getInactiveAgents(self, searchFilter):
|
|
|
434 |
"""
|
|
|
435 |
Parameters:
|
|
|
436 |
- searchFilter
|
|
|
437 |
"""
|
|
|
438 |
self.send_getInactiveAgents(searchFilter)
|
|
|
439 |
return self.recv_getInactiveAgents()
|
|
|
440 |
|
|
|
441 |
def send_getInactiveAgents(self, searchFilter):
|
|
|
442 |
self._oprot.writeMessageBegin('getInactiveAgents', TMessageType.CALL, self._seqid)
|
|
|
443 |
args = getInactiveAgents_args()
|
|
|
444 |
args.searchFilter = searchFilter
|
|
|
445 |
args.write(self._oprot)
|
|
|
446 |
self._oprot.writeMessageEnd()
|
|
|
447 |
self._oprot.trans.flush()
|
|
|
448 |
|
|
|
449 |
def recv_getInactiveAgents(self, ):
|
|
|
450 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
451 |
if mtype == TMessageType.EXCEPTION:
|
|
|
452 |
x = TApplicationException()
|
|
|
453 |
x.read(self._iprot)
|
|
|
454 |
self._iprot.readMessageEnd()
|
|
|
455 |
raise x
|
|
|
456 |
result = getInactiveAgents_result()
|
|
|
457 |
result.read(self._iprot)
|
|
|
458 |
self._iprot.readMessageEnd()
|
|
|
459 |
if result.success is not None:
|
|
|
460 |
return result.success
|
|
|
461 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
|
|
|
462 |
|
| 3131 |
rajveer |
463 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
464 |
"""
|
|
|
465 |
Parameters:
|
|
|
466 |
- agentEmailId
|
|
|
467 |
- password
|
|
|
468 |
"""
|
|
|
469 |
self.send_updatePasswordForAgent(agentEmailId, password)
|
|
|
470 |
self.recv_updatePasswordForAgent()
|
|
|
471 |
|
|
|
472 |
def send_updatePasswordForAgent(self, agentEmailId, password):
|
|
|
473 |
self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
|
|
|
474 |
args = updatePasswordForAgent_args()
|
|
|
475 |
args.agentEmailId = agentEmailId
|
|
|
476 |
args.password = password
|
|
|
477 |
args.write(self._oprot)
|
|
|
478 |
self._oprot.writeMessageEnd()
|
|
|
479 |
self._oprot.trans.flush()
|
|
|
480 |
|
|
|
481 |
def recv_updatePasswordForAgent(self, ):
|
|
|
482 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
483 |
if mtype == TMessageType.EXCEPTION:
|
|
|
484 |
x = TApplicationException()
|
|
|
485 |
x.read(self._iprot)
|
|
|
486 |
self._iprot.readMessageEnd()
|
|
|
487 |
raise x
|
|
|
488 |
result = updatePasswordForAgent_result()
|
|
|
489 |
result.read(self._iprot)
|
|
|
490 |
self._iprot.readMessageEnd()
|
|
|
491 |
return
|
|
|
492 |
|
|
|
493 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
494 |
"""
|
|
|
495 |
Parameters:
|
|
|
496 |
- agentEmailId
|
|
|
497 |
"""
|
|
|
498 |
self.send_getRoleNamesForAgent(agentEmailId)
|
|
|
499 |
return self.recv_getRoleNamesForAgent()
|
|
|
500 |
|
|
|
501 |
def send_getRoleNamesForAgent(self, agentEmailId):
|
|
|
502 |
self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
|
|
|
503 |
args = getRoleNamesForAgent_args()
|
|
|
504 |
args.agentEmailId = agentEmailId
|
|
|
505 |
args.write(self._oprot)
|
|
|
506 |
self._oprot.writeMessageEnd()
|
|
|
507 |
self._oprot.trans.flush()
|
|
|
508 |
|
|
|
509 |
def recv_getRoleNamesForAgent(self, ):
|
|
|
510 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
511 |
if mtype == TMessageType.EXCEPTION:
|
|
|
512 |
x = TApplicationException()
|
|
|
513 |
x.read(self._iprot)
|
|
|
514 |
self._iprot.readMessageEnd()
|
|
|
515 |
raise x
|
|
|
516 |
result = getRoleNamesForAgent_result()
|
|
|
517 |
result.read(self._iprot)
|
|
|
518 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
519 |
if result.success is not None:
|
| 3131 |
rajveer |
520 |
return result.success
|
|
|
521 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
|
|
|
522 |
|
|
|
523 |
def getPermissionsForRoleName(self, roleName):
|
|
|
524 |
"""
|
|
|
525 |
Parameters:
|
|
|
526 |
- roleName
|
|
|
527 |
"""
|
|
|
528 |
self.send_getPermissionsForRoleName(roleName)
|
|
|
529 |
return self.recv_getPermissionsForRoleName()
|
|
|
530 |
|
|
|
531 |
def send_getPermissionsForRoleName(self, roleName):
|
|
|
532 |
self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
|
|
|
533 |
args = getPermissionsForRoleName_args()
|
|
|
534 |
args.roleName = roleName
|
|
|
535 |
args.write(self._oprot)
|
|
|
536 |
self._oprot.writeMessageEnd()
|
|
|
537 |
self._oprot.trans.flush()
|
|
|
538 |
|
|
|
539 |
def recv_getPermissionsForRoleName(self, ):
|
|
|
540 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
541 |
if mtype == TMessageType.EXCEPTION:
|
|
|
542 |
x = TApplicationException()
|
|
|
543 |
x.read(self._iprot)
|
|
|
544 |
self._iprot.readMessageEnd()
|
|
|
545 |
raise x
|
|
|
546 |
result = getPermissionsForRoleName_result()
|
|
|
547 |
result.read(self._iprot)
|
|
|
548 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
549 |
if result.success is not None:
|
| 3131 |
rajveer |
550 |
return result.success
|
|
|
551 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
|
|
|
552 |
|
| 3376 |
rajveer |
553 |
def getLastEmailProcessedTimestamp(self, ):
|
|
|
554 |
self.send_getLastEmailProcessedTimestamp()
|
|
|
555 |
return self.recv_getLastEmailProcessedTimestamp()
|
| 3131 |
rajveer |
556 |
|
| 3376 |
rajveer |
557 |
def send_getLastEmailProcessedTimestamp(self, ):
|
|
|
558 |
self._oprot.writeMessageBegin('getLastEmailProcessedTimestamp', TMessageType.CALL, self._seqid)
|
|
|
559 |
args = getLastEmailProcessedTimestamp_args()
|
|
|
560 |
args.write(self._oprot)
|
|
|
561 |
self._oprot.writeMessageEnd()
|
|
|
562 |
self._oprot.trans.flush()
|
|
|
563 |
|
|
|
564 |
def recv_getLastEmailProcessedTimestamp(self, ):
|
|
|
565 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
566 |
if mtype == TMessageType.EXCEPTION:
|
|
|
567 |
x = TApplicationException()
|
|
|
568 |
x.read(self._iprot)
|
|
|
569 |
self._iprot.readMessageEnd()
|
|
|
570 |
raise x
|
|
|
571 |
result = getLastEmailProcessedTimestamp_result()
|
|
|
572 |
result.read(self._iprot)
|
|
|
573 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
574 |
if result.success is not None:
|
| 3376 |
rajveer |
575 |
return result.success
|
|
|
576 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
|
|
|
577 |
|
|
|
578 |
def updateLastEmailProcessedTimestamp(self, timestamp):
|
|
|
579 |
"""
|
|
|
580 |
Parameters:
|
|
|
581 |
- timestamp
|
|
|
582 |
"""
|
|
|
583 |
self.send_updateLastEmailProcessedTimestamp(timestamp)
|
|
|
584 |
self.recv_updateLastEmailProcessedTimestamp()
|
|
|
585 |
|
|
|
586 |
def send_updateLastEmailProcessedTimestamp(self, timestamp):
|
|
|
587 |
self._oprot.writeMessageBegin('updateLastEmailProcessedTimestamp', TMessageType.CALL, self._seqid)
|
|
|
588 |
args = updateLastEmailProcessedTimestamp_args()
|
|
|
589 |
args.timestamp = timestamp
|
|
|
590 |
args.write(self._oprot)
|
|
|
591 |
self._oprot.writeMessageEnd()
|
|
|
592 |
self._oprot.trans.flush()
|
|
|
593 |
|
|
|
594 |
def recv_updateLastEmailProcessedTimestamp(self, ):
|
|
|
595 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
596 |
if mtype == TMessageType.EXCEPTION:
|
|
|
597 |
x = TApplicationException()
|
|
|
598 |
x.read(self._iprot)
|
|
|
599 |
self._iprot.readMessageEnd()
|
|
|
600 |
raise x
|
|
|
601 |
result = updateLastEmailProcessedTimestamp_result()
|
|
|
602 |
result.read(self._iprot)
|
|
|
603 |
self._iprot.readMessageEnd()
|
|
|
604 |
return
|
|
|
605 |
|
| 4948 |
phani.kuma |
606 |
def changeAgentStatus(self, status, emailId):
|
|
|
607 |
"""
|
|
|
608 |
Parameters:
|
|
|
609 |
- status
|
|
|
610 |
- emailId
|
|
|
611 |
"""
|
|
|
612 |
self.send_changeAgentStatus(status, emailId)
|
|
|
613 |
self.recv_changeAgentStatus()
|
| 3376 |
rajveer |
614 |
|
| 4948 |
phani.kuma |
615 |
def send_changeAgentStatus(self, status, emailId):
|
|
|
616 |
self._oprot.writeMessageBegin('changeAgentStatus', TMessageType.CALL, self._seqid)
|
|
|
617 |
args = changeAgentStatus_args()
|
|
|
618 |
args.status = status
|
|
|
619 |
args.emailId = emailId
|
|
|
620 |
args.write(self._oprot)
|
|
|
621 |
self._oprot.writeMessageEnd()
|
|
|
622 |
self._oprot.trans.flush()
|
|
|
623 |
|
|
|
624 |
def recv_changeAgentStatus(self, ):
|
|
|
625 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
626 |
if mtype == TMessageType.EXCEPTION:
|
|
|
627 |
x = TApplicationException()
|
|
|
628 |
x.read(self._iprot)
|
|
|
629 |
self._iprot.readMessageEnd()
|
|
|
630 |
raise x
|
|
|
631 |
result = changeAgentStatus_result()
|
|
|
632 |
result.read(self._iprot)
|
|
|
633 |
self._iprot.readMessageEnd()
|
|
|
634 |
return
|
|
|
635 |
|
|
|
636 |
def insertAgent(self, agent, role):
|
|
|
637 |
"""
|
|
|
638 |
Parameters:
|
|
|
639 |
- agent
|
|
|
640 |
- role
|
|
|
641 |
"""
|
|
|
642 |
self.send_insertAgent(agent, role)
|
|
|
643 |
self.recv_insertAgent()
|
|
|
644 |
|
|
|
645 |
def send_insertAgent(self, agent, role):
|
|
|
646 |
self._oprot.writeMessageBegin('insertAgent', TMessageType.CALL, self._seqid)
|
|
|
647 |
args = insertAgent_args()
|
|
|
648 |
args.agent = agent
|
|
|
649 |
args.role = role
|
|
|
650 |
args.write(self._oprot)
|
|
|
651 |
self._oprot.writeMessageEnd()
|
|
|
652 |
self._oprot.trans.flush()
|
|
|
653 |
|
|
|
654 |
def recv_insertAgent(self, ):
|
|
|
655 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
656 |
if mtype == TMessageType.EXCEPTION:
|
|
|
657 |
x = TApplicationException()
|
|
|
658 |
x.read(self._iprot)
|
|
|
659 |
self._iprot.readMessageEnd()
|
|
|
660 |
raise x
|
|
|
661 |
result = insertAgent_result()
|
|
|
662 |
result.read(self._iprot)
|
|
|
663 |
self._iprot.readMessageEnd()
|
|
|
664 |
return
|
|
|
665 |
|
| 5407 |
amar.kumar |
666 |
def changeAgentRole(self, id, role):
|
|
|
667 |
"""
|
|
|
668 |
Parameters:
|
|
|
669 |
- id
|
|
|
670 |
- role
|
|
|
671 |
"""
|
|
|
672 |
self.send_changeAgentRole(id, role)
|
|
|
673 |
self.recv_changeAgentRole()
|
| 4948 |
phani.kuma |
674 |
|
| 5407 |
amar.kumar |
675 |
def send_changeAgentRole(self, id, role):
|
|
|
676 |
self._oprot.writeMessageBegin('changeAgentRole', TMessageType.CALL, self._seqid)
|
|
|
677 |
args = changeAgentRole_args()
|
|
|
678 |
args.id = id
|
|
|
679 |
args.role = role
|
|
|
680 |
args.write(self._oprot)
|
|
|
681 |
self._oprot.writeMessageEnd()
|
|
|
682 |
self._oprot.trans.flush()
|
|
|
683 |
|
|
|
684 |
def recv_changeAgentRole(self, ):
|
|
|
685 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
686 |
if mtype == TMessageType.EXCEPTION:
|
|
|
687 |
x = TApplicationException()
|
|
|
688 |
x.read(self._iprot)
|
|
|
689 |
self._iprot.readMessageEnd()
|
|
|
690 |
raise x
|
|
|
691 |
result = changeAgentRole_result()
|
|
|
692 |
result.read(self._iprot)
|
|
|
693 |
self._iprot.readMessageEnd()
|
|
|
694 |
return
|
|
|
695 |
|
|
|
696 |
def getOpenTicketCountForAgent(self, agentId):
|
|
|
697 |
"""
|
|
|
698 |
Parameters:
|
|
|
699 |
- agentId
|
|
|
700 |
"""
|
|
|
701 |
self.send_getOpenTicketCountForAgent(agentId)
|
|
|
702 |
return self.recv_getOpenTicketCountForAgent()
|
|
|
703 |
|
|
|
704 |
def send_getOpenTicketCountForAgent(self, agentId):
|
|
|
705 |
self._oprot.writeMessageBegin('getOpenTicketCountForAgent', TMessageType.CALL, self._seqid)
|
|
|
706 |
args = getOpenTicketCountForAgent_args()
|
|
|
707 |
args.agentId = agentId
|
|
|
708 |
args.write(self._oprot)
|
|
|
709 |
self._oprot.writeMessageEnd()
|
|
|
710 |
self._oprot.trans.flush()
|
|
|
711 |
|
|
|
712 |
def recv_getOpenTicketCountForAgent(self, ):
|
|
|
713 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
714 |
if mtype == TMessageType.EXCEPTION:
|
|
|
715 |
x = TApplicationException()
|
|
|
716 |
x.read(self._iprot)
|
|
|
717 |
self._iprot.readMessageEnd()
|
|
|
718 |
raise x
|
|
|
719 |
result = getOpenTicketCountForAgent_result()
|
|
|
720 |
result.read(self._iprot)
|
|
|
721 |
self._iprot.readMessageEnd()
|
|
|
722 |
if result.success is not None:
|
|
|
723 |
return result.success
|
|
|
724 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
|
|
|
725 |
|
| 6104 |
rajveer |
726 |
def getOpenTicketsMap(self, ):
|
|
|
727 |
self.send_getOpenTicketsMap()
|
|
|
728 |
return self.recv_getOpenTicketsMap()
|
| 5407 |
amar.kumar |
729 |
|
| 6104 |
rajveer |
730 |
def send_getOpenTicketsMap(self, ):
|
|
|
731 |
self._oprot.writeMessageBegin('getOpenTicketsMap', TMessageType.CALL, self._seqid)
|
|
|
732 |
args = getOpenTicketsMap_args()
|
|
|
733 |
args.write(self._oprot)
|
|
|
734 |
self._oprot.writeMessageEnd()
|
|
|
735 |
self._oprot.trans.flush()
|
|
|
736 |
|
|
|
737 |
def recv_getOpenTicketsMap(self, ):
|
|
|
738 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
739 |
if mtype == TMessageType.EXCEPTION:
|
|
|
740 |
x = TApplicationException()
|
|
|
741 |
x.read(self._iprot)
|
|
|
742 |
self._iprot.readMessageEnd()
|
|
|
743 |
raise x
|
|
|
744 |
result = getOpenTicketsMap_result()
|
|
|
745 |
result.read(self._iprot)
|
|
|
746 |
self._iprot.readMessageEnd()
|
|
|
747 |
if result.success is not None:
|
|
|
748 |
return result.success
|
|
|
749 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTicketsMap failed: unknown result");
|
|
|
750 |
|
| 8369 |
manish.sha |
751 |
def getFedexReconciliationDataMap(self, order_ids, method_key):
|
|
|
752 |
"""
|
|
|
753 |
Parameters:
|
|
|
754 |
- order_ids
|
|
|
755 |
- method_key
|
|
|
756 |
"""
|
|
|
757 |
self.send_getFedexReconciliationDataMap(order_ids, method_key)
|
|
|
758 |
return self.recv_getFedexReconciliationDataMap()
|
| 6104 |
rajveer |
759 |
|
| 8369 |
manish.sha |
760 |
def send_getFedexReconciliationDataMap(self, order_ids, method_key):
|
|
|
761 |
self._oprot.writeMessageBegin('getFedexReconciliationDataMap', TMessageType.CALL, self._seqid)
|
|
|
762 |
args = getFedexReconciliationDataMap_args()
|
|
|
763 |
args.order_ids = order_ids
|
|
|
764 |
args.method_key = method_key
|
|
|
765 |
args.write(self._oprot)
|
|
|
766 |
self._oprot.writeMessageEnd()
|
|
|
767 |
self._oprot.trans.flush()
|
|
|
768 |
|
|
|
769 |
def recv_getFedexReconciliationDataMap(self, ):
|
|
|
770 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
771 |
if mtype == TMessageType.EXCEPTION:
|
|
|
772 |
x = TApplicationException()
|
|
|
773 |
x.read(self._iprot)
|
|
|
774 |
self._iprot.readMessageEnd()
|
|
|
775 |
raise x
|
|
|
776 |
result = getFedexReconciliationDataMap_result()
|
|
|
777 |
result.read(self._iprot)
|
|
|
778 |
self._iprot.readMessageEnd()
|
|
|
779 |
if result.success is not None:
|
|
|
780 |
return result.success
|
|
|
781 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getFedexReconciliationDataMap failed: unknown result");
|
|
|
782 |
|
|
|
783 |
|
| 3376 |
rajveer |
784 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 3131 |
rajveer |
785 |
def __init__(self, handler):
|
| 3376 |
rajveer |
786 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 3131 |
rajveer |
787 |
self._processMap["getTickets"] = Processor.process_getTickets
|
| 3376 |
rajveer |
788 |
self._processMap["getUnassignedTickets"] = Processor.process_getUnassignedTickets
|
| 3131 |
rajveer |
789 |
self._processMap["updateTicket"] = Processor.process_updateTicket
|
|
|
790 |
self._processMap["insertTicket"] = Processor.process_insertTicket
|
| 4948 |
phani.kuma |
791 |
self._processMap["unassignAgentTickets"] = Processor.process_unassignAgentTickets
|
| 3131 |
rajveer |
792 |
self._processMap["getActivities"] = Processor.process_getActivities
|
|
|
793 |
self._processMap["insertActivity"] = Processor.process_insertActivity
|
| 3431 |
rajveer |
794 |
self._processMap["markAsRead"] = Processor.process_markAsRead
|
|
|
795 |
self._processMap["getAgents"] = Processor.process_getAgents
|
| 5407 |
amar.kumar |
796 |
self._processMap["getInactiveAgents"] = Processor.process_getInactiveAgents
|
| 3131 |
rajveer |
797 |
self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
|
|
|
798 |
self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
|
|
|
799 |
self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
|
| 3376 |
rajveer |
800 |
self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
|
|
|
801 |
self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
|
| 4948 |
phani.kuma |
802 |
self._processMap["changeAgentStatus"] = Processor.process_changeAgentStatus
|
|
|
803 |
self._processMap["insertAgent"] = Processor.process_insertAgent
|
| 5407 |
amar.kumar |
804 |
self._processMap["changeAgentRole"] = Processor.process_changeAgentRole
|
|
|
805 |
self._processMap["getOpenTicketCountForAgent"] = Processor.process_getOpenTicketCountForAgent
|
| 6104 |
rajveer |
806 |
self._processMap["getOpenTicketsMap"] = Processor.process_getOpenTicketsMap
|
| 8369 |
manish.sha |
807 |
self._processMap["getFedexReconciliationDataMap"] = Processor.process_getFedexReconciliationDataMap
|
| 3131 |
rajveer |
808 |
|
|
|
809 |
def process(self, iprot, oprot):
|
|
|
810 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
811 |
if name not in self._processMap:
|
|
|
812 |
iprot.skip(TType.STRUCT)
|
|
|
813 |
iprot.readMessageEnd()
|
|
|
814 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
815 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
816 |
x.write(oprot)
|
|
|
817 |
oprot.writeMessageEnd()
|
|
|
818 |
oprot.trans.flush()
|
|
|
819 |
return
|
|
|
820 |
else:
|
|
|
821 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
822 |
return True
|
|
|
823 |
|
|
|
824 |
def process_getTickets(self, seqid, iprot, oprot):
|
|
|
825 |
args = getTickets_args()
|
|
|
826 |
args.read(iprot)
|
|
|
827 |
iprot.readMessageEnd()
|
|
|
828 |
result = getTickets_result()
|
| 3431 |
rajveer |
829 |
result.success = self._handler.getTickets(args.searchFilter)
|
| 3131 |
rajveer |
830 |
oprot.writeMessageBegin("getTickets", TMessageType.REPLY, seqid)
|
|
|
831 |
result.write(oprot)
|
|
|
832 |
oprot.writeMessageEnd()
|
|
|
833 |
oprot.trans.flush()
|
|
|
834 |
|
| 3376 |
rajveer |
835 |
def process_getUnassignedTickets(self, seqid, iprot, oprot):
|
|
|
836 |
args = getUnassignedTickets_args()
|
| 3131 |
rajveer |
837 |
args.read(iprot)
|
|
|
838 |
iprot.readMessageEnd()
|
| 3376 |
rajveer |
839 |
result = getUnassignedTickets_result()
|
|
|
840 |
result.success = self._handler.getUnassignedTickets()
|
|
|
841 |
oprot.writeMessageBegin("getUnassignedTickets", TMessageType.REPLY, seqid)
|
| 3131 |
rajveer |
842 |
result.write(oprot)
|
|
|
843 |
oprot.writeMessageEnd()
|
|
|
844 |
oprot.trans.flush()
|
|
|
845 |
|
|
|
846 |
def process_updateTicket(self, seqid, iprot, oprot):
|
|
|
847 |
args = updateTicket_args()
|
|
|
848 |
args.read(iprot)
|
|
|
849 |
iprot.readMessageEnd()
|
|
|
850 |
result = updateTicket_result()
|
| 3376 |
rajveer |
851 |
self._handler.updateTicket(args.ticket, args.activity)
|
| 3131 |
rajveer |
852 |
oprot.writeMessageBegin("updateTicket", TMessageType.REPLY, seqid)
|
|
|
853 |
result.write(oprot)
|
|
|
854 |
oprot.writeMessageEnd()
|
|
|
855 |
oprot.trans.flush()
|
|
|
856 |
|
|
|
857 |
def process_insertTicket(self, seqid, iprot, oprot):
|
|
|
858 |
args = insertTicket_args()
|
|
|
859 |
args.read(iprot)
|
|
|
860 |
iprot.readMessageEnd()
|
|
|
861 |
result = insertTicket_result()
|
| 3376 |
rajveer |
862 |
result.success = self._handler.insertTicket(args.ticket, args.activity)
|
| 3131 |
rajveer |
863 |
oprot.writeMessageBegin("insertTicket", TMessageType.REPLY, seqid)
|
|
|
864 |
result.write(oprot)
|
|
|
865 |
oprot.writeMessageEnd()
|
|
|
866 |
oprot.trans.flush()
|
|
|
867 |
|
| 4948 |
phani.kuma |
868 |
def process_unassignAgentTickets(self, seqid, iprot, oprot):
|
|
|
869 |
args = unassignAgentTickets_args()
|
|
|
870 |
args.read(iprot)
|
|
|
871 |
iprot.readMessageEnd()
|
|
|
872 |
result = unassignAgentTickets_result()
|
|
|
873 |
self._handler.unassignAgentTickets(args.assigneeId)
|
|
|
874 |
oprot.writeMessageBegin("unassignAgentTickets", TMessageType.REPLY, seqid)
|
|
|
875 |
result.write(oprot)
|
|
|
876 |
oprot.writeMessageEnd()
|
|
|
877 |
oprot.trans.flush()
|
|
|
878 |
|
| 3131 |
rajveer |
879 |
def process_getActivities(self, seqid, iprot, oprot):
|
|
|
880 |
args = getActivities_args()
|
|
|
881 |
args.read(iprot)
|
|
|
882 |
iprot.readMessageEnd()
|
|
|
883 |
result = getActivities_result()
|
| 3431 |
rajveer |
884 |
result.success = self._handler.getActivities(args.searchFilter)
|
| 3131 |
rajveer |
885 |
oprot.writeMessageBegin("getActivities", TMessageType.REPLY, seqid)
|
|
|
886 |
result.write(oprot)
|
|
|
887 |
oprot.writeMessageEnd()
|
|
|
888 |
oprot.trans.flush()
|
|
|
889 |
|
|
|
890 |
def process_insertActivity(self, seqid, iprot, oprot):
|
|
|
891 |
args = insertActivity_args()
|
|
|
892 |
args.read(iprot)
|
|
|
893 |
iprot.readMessageEnd()
|
|
|
894 |
result = insertActivity_result()
|
| 3431 |
rajveer |
895 |
result.success = self._handler.insertActivity(args.activity)
|
| 3131 |
rajveer |
896 |
oprot.writeMessageBegin("insertActivity", TMessageType.REPLY, seqid)
|
|
|
897 |
result.write(oprot)
|
|
|
898 |
oprot.writeMessageEnd()
|
|
|
899 |
oprot.trans.flush()
|
|
|
900 |
|
| 3431 |
rajveer |
901 |
def process_markAsRead(self, seqid, iprot, oprot):
|
|
|
902 |
args = markAsRead_args()
|
| 3131 |
rajveer |
903 |
args.read(iprot)
|
|
|
904 |
iprot.readMessageEnd()
|
| 3431 |
rajveer |
905 |
result = markAsRead_result()
|
|
|
906 |
self._handler.markAsRead(args.activityId, args.agentId)
|
|
|
907 |
oprot.writeMessageBegin("markAsRead", TMessageType.REPLY, seqid)
|
| 3131 |
rajveer |
908 |
result.write(oprot)
|
|
|
909 |
oprot.writeMessageEnd()
|
|
|
910 |
oprot.trans.flush()
|
|
|
911 |
|
| 3431 |
rajveer |
912 |
def process_getAgents(self, seqid, iprot, oprot):
|
|
|
913 |
args = getAgents_args()
|
| 3131 |
rajveer |
914 |
args.read(iprot)
|
|
|
915 |
iprot.readMessageEnd()
|
| 3431 |
rajveer |
916 |
result = getAgents_result()
|
|
|
917 |
result.success = self._handler.getAgents(args.searchFilter)
|
|
|
918 |
oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
|
| 3131 |
rajveer |
919 |
result.write(oprot)
|
|
|
920 |
oprot.writeMessageEnd()
|
|
|
921 |
oprot.trans.flush()
|
|
|
922 |
|
| 5407 |
amar.kumar |
923 |
def process_getInactiveAgents(self, seqid, iprot, oprot):
|
|
|
924 |
args = getInactiveAgents_args()
|
|
|
925 |
args.read(iprot)
|
|
|
926 |
iprot.readMessageEnd()
|
|
|
927 |
result = getInactiveAgents_result()
|
|
|
928 |
result.success = self._handler.getInactiveAgents(args.searchFilter)
|
|
|
929 |
oprot.writeMessageBegin("getInactiveAgents", TMessageType.REPLY, seqid)
|
|
|
930 |
result.write(oprot)
|
|
|
931 |
oprot.writeMessageEnd()
|
|
|
932 |
oprot.trans.flush()
|
|
|
933 |
|
| 3131 |
rajveer |
934 |
def process_updatePasswordForAgent(self, seqid, iprot, oprot):
|
|
|
935 |
args = updatePasswordForAgent_args()
|
|
|
936 |
args.read(iprot)
|
|
|
937 |
iprot.readMessageEnd()
|
|
|
938 |
result = updatePasswordForAgent_result()
|
|
|
939 |
self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
|
|
|
940 |
oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
|
|
|
941 |
result.write(oprot)
|
|
|
942 |
oprot.writeMessageEnd()
|
|
|
943 |
oprot.trans.flush()
|
|
|
944 |
|
|
|
945 |
def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
|
|
|
946 |
args = getRoleNamesForAgent_args()
|
|
|
947 |
args.read(iprot)
|
|
|
948 |
iprot.readMessageEnd()
|
|
|
949 |
result = getRoleNamesForAgent_result()
|
|
|
950 |
result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
|
|
|
951 |
oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
|
|
|
952 |
result.write(oprot)
|
|
|
953 |
oprot.writeMessageEnd()
|
|
|
954 |
oprot.trans.flush()
|
|
|
955 |
|
|
|
956 |
def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
|
|
|
957 |
args = getPermissionsForRoleName_args()
|
|
|
958 |
args.read(iprot)
|
|
|
959 |
iprot.readMessageEnd()
|
|
|
960 |
result = getPermissionsForRoleName_result()
|
|
|
961 |
result.success = self._handler.getPermissionsForRoleName(args.roleName)
|
|
|
962 |
oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
|
|
|
963 |
result.write(oprot)
|
|
|
964 |
oprot.writeMessageEnd()
|
|
|
965 |
oprot.trans.flush()
|
|
|
966 |
|
| 3376 |
rajveer |
967 |
def process_getLastEmailProcessedTimestamp(self, seqid, iprot, oprot):
|
|
|
968 |
args = getLastEmailProcessedTimestamp_args()
|
|
|
969 |
args.read(iprot)
|
|
|
970 |
iprot.readMessageEnd()
|
|
|
971 |
result = getLastEmailProcessedTimestamp_result()
|
|
|
972 |
result.success = self._handler.getLastEmailProcessedTimestamp()
|
|
|
973 |
oprot.writeMessageBegin("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
|
|
|
974 |
result.write(oprot)
|
|
|
975 |
oprot.writeMessageEnd()
|
|
|
976 |
oprot.trans.flush()
|
| 3131 |
rajveer |
977 |
|
| 3376 |
rajveer |
978 |
def process_updateLastEmailProcessedTimestamp(self, seqid, iprot, oprot):
|
|
|
979 |
args = updateLastEmailProcessedTimestamp_args()
|
|
|
980 |
args.read(iprot)
|
|
|
981 |
iprot.readMessageEnd()
|
|
|
982 |
result = updateLastEmailProcessedTimestamp_result()
|
|
|
983 |
self._handler.updateLastEmailProcessedTimestamp(args.timestamp)
|
|
|
984 |
oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
|
|
|
985 |
result.write(oprot)
|
|
|
986 |
oprot.writeMessageEnd()
|
|
|
987 |
oprot.trans.flush()
|
|
|
988 |
|
| 4948 |
phani.kuma |
989 |
def process_changeAgentStatus(self, seqid, iprot, oprot):
|
|
|
990 |
args = changeAgentStatus_args()
|
|
|
991 |
args.read(iprot)
|
|
|
992 |
iprot.readMessageEnd()
|
|
|
993 |
result = changeAgentStatus_result()
|
|
|
994 |
self._handler.changeAgentStatus(args.status, args.emailId)
|
|
|
995 |
oprot.writeMessageBegin("changeAgentStatus", TMessageType.REPLY, seqid)
|
|
|
996 |
result.write(oprot)
|
|
|
997 |
oprot.writeMessageEnd()
|
|
|
998 |
oprot.trans.flush()
|
| 3376 |
rajveer |
999 |
|
| 4948 |
phani.kuma |
1000 |
def process_insertAgent(self, seqid, iprot, oprot):
|
|
|
1001 |
args = insertAgent_args()
|
|
|
1002 |
args.read(iprot)
|
|
|
1003 |
iprot.readMessageEnd()
|
|
|
1004 |
result = insertAgent_result()
|
|
|
1005 |
self._handler.insertAgent(args.agent, args.role)
|
|
|
1006 |
oprot.writeMessageBegin("insertAgent", TMessageType.REPLY, seqid)
|
|
|
1007 |
result.write(oprot)
|
|
|
1008 |
oprot.writeMessageEnd()
|
|
|
1009 |
oprot.trans.flush()
|
|
|
1010 |
|
| 5407 |
amar.kumar |
1011 |
def process_changeAgentRole(self, seqid, iprot, oprot):
|
|
|
1012 |
args = changeAgentRole_args()
|
|
|
1013 |
args.read(iprot)
|
|
|
1014 |
iprot.readMessageEnd()
|
|
|
1015 |
result = changeAgentRole_result()
|
|
|
1016 |
self._handler.changeAgentRole(args.id, args.role)
|
|
|
1017 |
oprot.writeMessageBegin("changeAgentRole", TMessageType.REPLY, seqid)
|
|
|
1018 |
result.write(oprot)
|
|
|
1019 |
oprot.writeMessageEnd()
|
|
|
1020 |
oprot.trans.flush()
|
| 4948 |
phani.kuma |
1021 |
|
| 5407 |
amar.kumar |
1022 |
def process_getOpenTicketCountForAgent(self, seqid, iprot, oprot):
|
|
|
1023 |
args = getOpenTicketCountForAgent_args()
|
|
|
1024 |
args.read(iprot)
|
|
|
1025 |
iprot.readMessageEnd()
|
|
|
1026 |
result = getOpenTicketCountForAgent_result()
|
|
|
1027 |
result.success = self._handler.getOpenTicketCountForAgent(args.agentId)
|
|
|
1028 |
oprot.writeMessageBegin("getOpenTicketCountForAgent", TMessageType.REPLY, seqid)
|
|
|
1029 |
result.write(oprot)
|
|
|
1030 |
oprot.writeMessageEnd()
|
|
|
1031 |
oprot.trans.flush()
|
|
|
1032 |
|
| 6104 |
rajveer |
1033 |
def process_getOpenTicketsMap(self, seqid, iprot, oprot):
|
|
|
1034 |
args = getOpenTicketsMap_args()
|
|
|
1035 |
args.read(iprot)
|
|
|
1036 |
iprot.readMessageEnd()
|
|
|
1037 |
result = getOpenTicketsMap_result()
|
|
|
1038 |
result.success = self._handler.getOpenTicketsMap()
|
|
|
1039 |
oprot.writeMessageBegin("getOpenTicketsMap", TMessageType.REPLY, seqid)
|
|
|
1040 |
result.write(oprot)
|
|
|
1041 |
oprot.writeMessageEnd()
|
|
|
1042 |
oprot.trans.flush()
|
| 5407 |
amar.kumar |
1043 |
|
| 8369 |
manish.sha |
1044 |
def process_getFedexReconciliationDataMap(self, seqid, iprot, oprot):
|
|
|
1045 |
args = getFedexReconciliationDataMap_args()
|
|
|
1046 |
args.read(iprot)
|
|
|
1047 |
iprot.readMessageEnd()
|
|
|
1048 |
result = getFedexReconciliationDataMap_result()
|
|
|
1049 |
result.success = self._handler.getFedexReconciliationDataMap(args.order_ids, args.method_key)
|
|
|
1050 |
oprot.writeMessageBegin("getFedexReconciliationDataMap", TMessageType.REPLY, seqid)
|
|
|
1051 |
result.write(oprot)
|
|
|
1052 |
oprot.writeMessageEnd()
|
|
|
1053 |
oprot.trans.flush()
|
| 6104 |
rajveer |
1054 |
|
| 8369 |
manish.sha |
1055 |
|
| 3131 |
rajveer |
1056 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1057 |
|
|
|
1058 |
class getTickets_args:
|
|
|
1059 |
"""
|
|
|
1060 |
Attributes:
|
| 3431 |
rajveer |
1061 |
- searchFilter
|
| 3131 |
rajveer |
1062 |
"""
|
|
|
1063 |
|
|
|
1064 |
thrift_spec = (
|
|
|
1065 |
None, # 0
|
| 3431 |
rajveer |
1066 |
(1, TType.STRUCT, 'searchFilter', (SearchFilter, SearchFilter.thrift_spec), None, ), # 1
|
| 3131 |
rajveer |
1067 |
)
|
|
|
1068 |
|
| 3431 |
rajveer |
1069 |
def __init__(self, searchFilter=None,):
|
|
|
1070 |
self.searchFilter = searchFilter
|
| 3131 |
rajveer |
1071 |
|
|
|
1072 |
def read(self, iprot):
|
|
|
1073 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1074 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1075 |
return
|
|
|
1076 |
iprot.readStructBegin()
|
|
|
1077 |
while True:
|
|
|
1078 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1079 |
if ftype == TType.STOP:
|
|
|
1080 |
break
|
|
|
1081 |
if fid == 1:
|
| 3431 |
rajveer |
1082 |
if ftype == TType.STRUCT:
|
|
|
1083 |
self.searchFilter = SearchFilter()
|
|
|
1084 |
self.searchFilter.read(iprot)
|
| 3131 |
rajveer |
1085 |
else:
|
|
|
1086 |
iprot.skip(ftype)
|
|
|
1087 |
else:
|
|
|
1088 |
iprot.skip(ftype)
|
|
|
1089 |
iprot.readFieldEnd()
|
|
|
1090 |
iprot.readStructEnd()
|
|
|
1091 |
|
|
|
1092 |
def write(self, oprot):
|
|
|
1093 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1094 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1095 |
return
|
|
|
1096 |
oprot.writeStructBegin('getTickets_args')
|
| 3431 |
rajveer |
1097 |
if self.searchFilter is not None:
|
|
|
1098 |
oprot.writeFieldBegin('searchFilter', TType.STRUCT, 1)
|
|
|
1099 |
self.searchFilter.write(oprot)
|
| 3131 |
rajveer |
1100 |
oprot.writeFieldEnd()
|
|
|
1101 |
oprot.writeFieldStop()
|
|
|
1102 |
oprot.writeStructEnd()
|
|
|
1103 |
|
| 3431 |
rajveer |
1104 |
def validate(self):
|
|
|
1105 |
return
|
| 3131 |
rajveer |
1106 |
|
|
|
1107 |
|
|
|
1108 |
def __repr__(self):
|
|
|
1109 |
L = ['%s=%r' % (key, value)
|
|
|
1110 |
for key, value in self.__dict__.iteritems()]
|
|
|
1111 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1112 |
|
|
|
1113 |
def __eq__(self, other):
|
|
|
1114 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1115 |
|
|
|
1116 |
def __ne__(self, other):
|
|
|
1117 |
return not (self == other)
|
|
|
1118 |
|
| 3431 |
rajveer |
1119 |
class getTickets_result:
|
| 3131 |
rajveer |
1120 |
"""
|
|
|
1121 |
Attributes:
|
|
|
1122 |
- success
|
|
|
1123 |
"""
|
|
|
1124 |
|
|
|
1125 |
thrift_spec = (
|
|
|
1126 |
(0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
|
|
|
1127 |
)
|
|
|
1128 |
|
|
|
1129 |
def __init__(self, success=None,):
|
|
|
1130 |
self.success = success
|
|
|
1131 |
|
|
|
1132 |
def read(self, iprot):
|
|
|
1133 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1134 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1135 |
return
|
|
|
1136 |
iprot.readStructBegin()
|
|
|
1137 |
while True:
|
|
|
1138 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1139 |
if ftype == TType.STOP:
|
|
|
1140 |
break
|
|
|
1141 |
if fid == 0:
|
|
|
1142 |
if ftype == TType.LIST:
|
|
|
1143 |
self.success = []
|
| 14882 |
manish.sha |
1144 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1145 |
for _i32 in xrange(_size28):
|
|
|
1146 |
_elem33 = Ticket()
|
|
|
1147 |
_elem33.read(iprot)
|
|
|
1148 |
self.success.append(_elem33)
|
| 3131 |
rajveer |
1149 |
iprot.readListEnd()
|
|
|
1150 |
else:
|
|
|
1151 |
iprot.skip(ftype)
|
|
|
1152 |
else:
|
|
|
1153 |
iprot.skip(ftype)
|
|
|
1154 |
iprot.readFieldEnd()
|
|
|
1155 |
iprot.readStructEnd()
|
|
|
1156 |
|
|
|
1157 |
def write(self, oprot):
|
|
|
1158 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1159 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1160 |
return
|
| 3431 |
rajveer |
1161 |
oprot.writeStructBegin('getTickets_result')
|
|
|
1162 |
if self.success is not None:
|
| 3131 |
rajveer |
1163 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1164 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 14882 |
manish.sha |
1165 |
for iter34 in self.success:
|
|
|
1166 |
iter34.write(oprot)
|
| 3131 |
rajveer |
1167 |
oprot.writeListEnd()
|
|
|
1168 |
oprot.writeFieldEnd()
|
|
|
1169 |
oprot.writeFieldStop()
|
|
|
1170 |
oprot.writeStructEnd()
|
|
|
1171 |
|
| 3431 |
rajveer |
1172 |
def validate(self):
|
|
|
1173 |
return
|
|
|
1174 |
|
|
|
1175 |
|
| 3131 |
rajveer |
1176 |
def __repr__(self):
|
|
|
1177 |
L = ['%s=%r' % (key, value)
|
|
|
1178 |
for key, value in self.__dict__.iteritems()]
|
|
|
1179 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1180 |
|
|
|
1181 |
def __eq__(self, other):
|
|
|
1182 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1183 |
|
|
|
1184 |
def __ne__(self, other):
|
|
|
1185 |
return not (self == other)
|
|
|
1186 |
|
| 3431 |
rajveer |
1187 |
class getUnassignedTickets_args:
|
| 3376 |
rajveer |
1188 |
|
|
|
1189 |
thrift_spec = (
|
|
|
1190 |
)
|
|
|
1191 |
|
|
|
1192 |
def read(self, iprot):
|
|
|
1193 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1194 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1195 |
return
|
|
|
1196 |
iprot.readStructBegin()
|
|
|
1197 |
while True:
|
|
|
1198 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1199 |
if ftype == TType.STOP:
|
|
|
1200 |
break
|
|
|
1201 |
else:
|
|
|
1202 |
iprot.skip(ftype)
|
|
|
1203 |
iprot.readFieldEnd()
|
|
|
1204 |
iprot.readStructEnd()
|
|
|
1205 |
|
|
|
1206 |
def write(self, oprot):
|
|
|
1207 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1208 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1209 |
return
|
| 3431 |
rajveer |
1210 |
oprot.writeStructBegin('getUnassignedTickets_args')
|
| 3376 |
rajveer |
1211 |
oprot.writeFieldStop()
|
|
|
1212 |
oprot.writeStructEnd()
|
|
|
1213 |
|
| 3431 |
rajveer |
1214 |
def validate(self):
|
|
|
1215 |
return
|
|
|
1216 |
|
|
|
1217 |
|
| 3376 |
rajveer |
1218 |
def __repr__(self):
|
|
|
1219 |
L = ['%s=%r' % (key, value)
|
|
|
1220 |
for key, value in self.__dict__.iteritems()]
|
|
|
1221 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1222 |
|
|
|
1223 |
def __eq__(self, other):
|
|
|
1224 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1225 |
|
|
|
1226 |
def __ne__(self, other):
|
|
|
1227 |
return not (self == other)
|
|
|
1228 |
|
| 3431 |
rajveer |
1229 |
class getUnassignedTickets_result:
|
| 3376 |
rajveer |
1230 |
"""
|
|
|
1231 |
Attributes:
|
|
|
1232 |
- success
|
|
|
1233 |
"""
|
|
|
1234 |
|
|
|
1235 |
thrift_spec = (
|
|
|
1236 |
(0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
|
|
|
1237 |
)
|
|
|
1238 |
|
|
|
1239 |
def __init__(self, success=None,):
|
|
|
1240 |
self.success = success
|
|
|
1241 |
|
|
|
1242 |
def read(self, iprot):
|
|
|
1243 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1244 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1245 |
return
|
|
|
1246 |
iprot.readStructBegin()
|
|
|
1247 |
while True:
|
|
|
1248 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1249 |
if ftype == TType.STOP:
|
|
|
1250 |
break
|
|
|
1251 |
if fid == 0:
|
|
|
1252 |
if ftype == TType.LIST:
|
|
|
1253 |
self.success = []
|
| 14882 |
manish.sha |
1254 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
1255 |
for _i39 in xrange(_size35):
|
|
|
1256 |
_elem40 = Ticket()
|
|
|
1257 |
_elem40.read(iprot)
|
|
|
1258 |
self.success.append(_elem40)
|
| 3376 |
rajveer |
1259 |
iprot.readListEnd()
|
|
|
1260 |
else:
|
|
|
1261 |
iprot.skip(ftype)
|
|
|
1262 |
else:
|
|
|
1263 |
iprot.skip(ftype)
|
|
|
1264 |
iprot.readFieldEnd()
|
|
|
1265 |
iprot.readStructEnd()
|
|
|
1266 |
|
|
|
1267 |
def write(self, oprot):
|
|
|
1268 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1269 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1270 |
return
|
| 3431 |
rajveer |
1271 |
oprot.writeStructBegin('getUnassignedTickets_result')
|
|
|
1272 |
if self.success is not None:
|
| 3376 |
rajveer |
1273 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1274 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 14882 |
manish.sha |
1275 |
for iter41 in self.success:
|
|
|
1276 |
iter41.write(oprot)
|
| 3376 |
rajveer |
1277 |
oprot.writeListEnd()
|
|
|
1278 |
oprot.writeFieldEnd()
|
|
|
1279 |
oprot.writeFieldStop()
|
|
|
1280 |
oprot.writeStructEnd()
|
|
|
1281 |
|
| 3431 |
rajveer |
1282 |
def validate(self):
|
|
|
1283 |
return
|
| 3376 |
rajveer |
1284 |
|
|
|
1285 |
|
| 3131 |
rajveer |
1286 |
def __repr__(self):
|
|
|
1287 |
L = ['%s=%r' % (key, value)
|
|
|
1288 |
for key, value in self.__dict__.iteritems()]
|
|
|
1289 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1290 |
|
|
|
1291 |
def __eq__(self, other):
|
|
|
1292 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1293 |
|
|
|
1294 |
def __ne__(self, other):
|
|
|
1295 |
return not (self == other)
|
|
|
1296 |
|
|
|
1297 |
class updateTicket_args:
|
|
|
1298 |
"""
|
|
|
1299 |
Attributes:
|
|
|
1300 |
- ticket
|
| 3376 |
rajveer |
1301 |
- activity
|
| 3131 |
rajveer |
1302 |
"""
|
|
|
1303 |
|
|
|
1304 |
thrift_spec = (
|
|
|
1305 |
None, # 0
|
|
|
1306 |
(1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
|
| 3376 |
rajveer |
1307 |
(2, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 2
|
| 3131 |
rajveer |
1308 |
)
|
|
|
1309 |
|
| 3376 |
rajveer |
1310 |
def __init__(self, ticket=None, activity=None,):
|
| 3131 |
rajveer |
1311 |
self.ticket = ticket
|
| 3376 |
rajveer |
1312 |
self.activity = activity
|
| 3131 |
rajveer |
1313 |
|
|
|
1314 |
def read(self, iprot):
|
|
|
1315 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1316 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1317 |
return
|
|
|
1318 |
iprot.readStructBegin()
|
|
|
1319 |
while True:
|
|
|
1320 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1321 |
if ftype == TType.STOP:
|
|
|
1322 |
break
|
|
|
1323 |
if fid == 1:
|
|
|
1324 |
if ftype == TType.STRUCT:
|
|
|
1325 |
self.ticket = Ticket()
|
|
|
1326 |
self.ticket.read(iprot)
|
|
|
1327 |
else:
|
|
|
1328 |
iprot.skip(ftype)
|
| 3376 |
rajveer |
1329 |
elif fid == 2:
|
|
|
1330 |
if ftype == TType.STRUCT:
|
|
|
1331 |
self.activity = Activity()
|
|
|
1332 |
self.activity.read(iprot)
|
|
|
1333 |
else:
|
|
|
1334 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
1335 |
else:
|
|
|
1336 |
iprot.skip(ftype)
|
|
|
1337 |
iprot.readFieldEnd()
|
|
|
1338 |
iprot.readStructEnd()
|
|
|
1339 |
|
|
|
1340 |
def write(self, oprot):
|
|
|
1341 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1342 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1343 |
return
|
|
|
1344 |
oprot.writeStructBegin('updateTicket_args')
|
| 3431 |
rajveer |
1345 |
if self.ticket is not None:
|
| 3131 |
rajveer |
1346 |
oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
|
|
|
1347 |
self.ticket.write(oprot)
|
|
|
1348 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1349 |
if self.activity is not None:
|
| 3376 |
rajveer |
1350 |
oprot.writeFieldBegin('activity', TType.STRUCT, 2)
|
|
|
1351 |
self.activity.write(oprot)
|
|
|
1352 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
1353 |
oprot.writeFieldStop()
|
|
|
1354 |
oprot.writeStructEnd()
|
|
|
1355 |
|
| 3431 |
rajveer |
1356 |
def validate(self):
|
|
|
1357 |
return
|
|
|
1358 |
|
|
|
1359 |
|
| 3131 |
rajveer |
1360 |
def __repr__(self):
|
|
|
1361 |
L = ['%s=%r' % (key, value)
|
|
|
1362 |
for key, value in self.__dict__.iteritems()]
|
|
|
1363 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1364 |
|
|
|
1365 |
def __eq__(self, other):
|
|
|
1366 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1367 |
|
|
|
1368 |
def __ne__(self, other):
|
|
|
1369 |
return not (self == other)
|
|
|
1370 |
|
|
|
1371 |
class updateTicket_result:
|
|
|
1372 |
|
|
|
1373 |
thrift_spec = (
|
|
|
1374 |
)
|
|
|
1375 |
|
|
|
1376 |
def read(self, iprot):
|
|
|
1377 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1378 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1379 |
return
|
|
|
1380 |
iprot.readStructBegin()
|
|
|
1381 |
while True:
|
|
|
1382 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1383 |
if ftype == TType.STOP:
|
|
|
1384 |
break
|
|
|
1385 |
else:
|
|
|
1386 |
iprot.skip(ftype)
|
|
|
1387 |
iprot.readFieldEnd()
|
|
|
1388 |
iprot.readStructEnd()
|
|
|
1389 |
|
|
|
1390 |
def write(self, oprot):
|
|
|
1391 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1392 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1393 |
return
|
|
|
1394 |
oprot.writeStructBegin('updateTicket_result')
|
|
|
1395 |
oprot.writeFieldStop()
|
|
|
1396 |
oprot.writeStructEnd()
|
|
|
1397 |
|
| 3431 |
rajveer |
1398 |
def validate(self):
|
|
|
1399 |
return
|
|
|
1400 |
|
|
|
1401 |
|
| 3131 |
rajveer |
1402 |
def __repr__(self):
|
|
|
1403 |
L = ['%s=%r' % (key, value)
|
|
|
1404 |
for key, value in self.__dict__.iteritems()]
|
|
|
1405 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1406 |
|
|
|
1407 |
def __eq__(self, other):
|
|
|
1408 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1409 |
|
|
|
1410 |
def __ne__(self, other):
|
|
|
1411 |
return not (self == other)
|
|
|
1412 |
|
|
|
1413 |
class insertTicket_args:
|
|
|
1414 |
"""
|
|
|
1415 |
Attributes:
|
|
|
1416 |
- ticket
|
| 3376 |
rajveer |
1417 |
- activity
|
| 3131 |
rajveer |
1418 |
"""
|
|
|
1419 |
|
|
|
1420 |
thrift_spec = (
|
|
|
1421 |
None, # 0
|
|
|
1422 |
(1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
|
| 3376 |
rajveer |
1423 |
(2, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 2
|
| 3131 |
rajveer |
1424 |
)
|
|
|
1425 |
|
| 3376 |
rajveer |
1426 |
def __init__(self, ticket=None, activity=None,):
|
| 3131 |
rajveer |
1427 |
self.ticket = ticket
|
| 3376 |
rajveer |
1428 |
self.activity = activity
|
| 3131 |
rajveer |
1429 |
|
|
|
1430 |
def read(self, iprot):
|
|
|
1431 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1432 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1433 |
return
|
|
|
1434 |
iprot.readStructBegin()
|
|
|
1435 |
while True:
|
|
|
1436 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1437 |
if ftype == TType.STOP:
|
|
|
1438 |
break
|
|
|
1439 |
if fid == 1:
|
|
|
1440 |
if ftype == TType.STRUCT:
|
|
|
1441 |
self.ticket = Ticket()
|
|
|
1442 |
self.ticket.read(iprot)
|
|
|
1443 |
else:
|
|
|
1444 |
iprot.skip(ftype)
|
| 3376 |
rajveer |
1445 |
elif fid == 2:
|
|
|
1446 |
if ftype == TType.STRUCT:
|
|
|
1447 |
self.activity = Activity()
|
|
|
1448 |
self.activity.read(iprot)
|
|
|
1449 |
else:
|
|
|
1450 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
1451 |
else:
|
|
|
1452 |
iprot.skip(ftype)
|
|
|
1453 |
iprot.readFieldEnd()
|
|
|
1454 |
iprot.readStructEnd()
|
|
|
1455 |
|
|
|
1456 |
def write(self, oprot):
|
|
|
1457 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1458 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1459 |
return
|
|
|
1460 |
oprot.writeStructBegin('insertTicket_args')
|
| 3431 |
rajveer |
1461 |
if self.ticket is not None:
|
| 3131 |
rajveer |
1462 |
oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
|
|
|
1463 |
self.ticket.write(oprot)
|
|
|
1464 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1465 |
if self.activity is not None:
|
| 3376 |
rajveer |
1466 |
oprot.writeFieldBegin('activity', TType.STRUCT, 2)
|
|
|
1467 |
self.activity.write(oprot)
|
|
|
1468 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
1469 |
oprot.writeFieldStop()
|
|
|
1470 |
oprot.writeStructEnd()
|
|
|
1471 |
|
| 3431 |
rajveer |
1472 |
def validate(self):
|
|
|
1473 |
return
|
|
|
1474 |
|
|
|
1475 |
|
| 3131 |
rajveer |
1476 |
def __repr__(self):
|
|
|
1477 |
L = ['%s=%r' % (key, value)
|
|
|
1478 |
for key, value in self.__dict__.iteritems()]
|
|
|
1479 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1480 |
|
|
|
1481 |
def __eq__(self, other):
|
|
|
1482 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1483 |
|
|
|
1484 |
def __ne__(self, other):
|
|
|
1485 |
return not (self == other)
|
|
|
1486 |
|
|
|
1487 |
class insertTicket_result:
|
|
|
1488 |
"""
|
|
|
1489 |
Attributes:
|
|
|
1490 |
- success
|
|
|
1491 |
"""
|
|
|
1492 |
|
|
|
1493 |
thrift_spec = (
|
|
|
1494 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1495 |
)
|
|
|
1496 |
|
|
|
1497 |
def __init__(self, success=None,):
|
|
|
1498 |
self.success = success
|
|
|
1499 |
|
|
|
1500 |
def read(self, iprot):
|
|
|
1501 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1502 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1503 |
return
|
|
|
1504 |
iprot.readStructBegin()
|
|
|
1505 |
while True:
|
|
|
1506 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1507 |
if ftype == TType.STOP:
|
|
|
1508 |
break
|
|
|
1509 |
if fid == 0:
|
|
|
1510 |
if ftype == TType.I64:
|
|
|
1511 |
self.success = iprot.readI64();
|
|
|
1512 |
else:
|
|
|
1513 |
iprot.skip(ftype)
|
|
|
1514 |
else:
|
|
|
1515 |
iprot.skip(ftype)
|
|
|
1516 |
iprot.readFieldEnd()
|
|
|
1517 |
iprot.readStructEnd()
|
|
|
1518 |
|
|
|
1519 |
def write(self, oprot):
|
|
|
1520 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1521 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1522 |
return
|
|
|
1523 |
oprot.writeStructBegin('insertTicket_result')
|
| 3431 |
rajveer |
1524 |
if self.success is not None:
|
| 3131 |
rajveer |
1525 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1526 |
oprot.writeI64(self.success)
|
|
|
1527 |
oprot.writeFieldEnd()
|
|
|
1528 |
oprot.writeFieldStop()
|
|
|
1529 |
oprot.writeStructEnd()
|
|
|
1530 |
|
| 3431 |
rajveer |
1531 |
def validate(self):
|
|
|
1532 |
return
|
|
|
1533 |
|
|
|
1534 |
|
| 3131 |
rajveer |
1535 |
def __repr__(self):
|
|
|
1536 |
L = ['%s=%r' % (key, value)
|
|
|
1537 |
for key, value in self.__dict__.iteritems()]
|
|
|
1538 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1539 |
|
|
|
1540 |
def __eq__(self, other):
|
|
|
1541 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1542 |
|
|
|
1543 |
def __ne__(self, other):
|
|
|
1544 |
return not (self == other)
|
|
|
1545 |
|
| 4948 |
phani.kuma |
1546 |
class unassignAgentTickets_args:
|
|
|
1547 |
"""
|
|
|
1548 |
Attributes:
|
|
|
1549 |
- assigneeId
|
|
|
1550 |
"""
|
|
|
1551 |
|
|
|
1552 |
thrift_spec = (
|
|
|
1553 |
None, # 0
|
|
|
1554 |
(1, TType.I32, 'assigneeId', None, None, ), # 1
|
|
|
1555 |
)
|
|
|
1556 |
|
|
|
1557 |
def __init__(self, assigneeId=None,):
|
|
|
1558 |
self.assigneeId = assigneeId
|
|
|
1559 |
|
|
|
1560 |
def read(self, iprot):
|
|
|
1561 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1562 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1563 |
return
|
|
|
1564 |
iprot.readStructBegin()
|
|
|
1565 |
while True:
|
|
|
1566 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1567 |
if ftype == TType.STOP:
|
|
|
1568 |
break
|
|
|
1569 |
if fid == 1:
|
|
|
1570 |
if ftype == TType.I32:
|
|
|
1571 |
self.assigneeId = iprot.readI32();
|
|
|
1572 |
else:
|
|
|
1573 |
iprot.skip(ftype)
|
|
|
1574 |
else:
|
|
|
1575 |
iprot.skip(ftype)
|
|
|
1576 |
iprot.readFieldEnd()
|
|
|
1577 |
iprot.readStructEnd()
|
|
|
1578 |
|
|
|
1579 |
def write(self, oprot):
|
|
|
1580 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1581 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1582 |
return
|
|
|
1583 |
oprot.writeStructBegin('unassignAgentTickets_args')
|
|
|
1584 |
if self.assigneeId is not None:
|
|
|
1585 |
oprot.writeFieldBegin('assigneeId', TType.I32, 1)
|
|
|
1586 |
oprot.writeI32(self.assigneeId)
|
|
|
1587 |
oprot.writeFieldEnd()
|
|
|
1588 |
oprot.writeFieldStop()
|
|
|
1589 |
oprot.writeStructEnd()
|
|
|
1590 |
|
|
|
1591 |
def validate(self):
|
|
|
1592 |
return
|
|
|
1593 |
|
|
|
1594 |
|
|
|
1595 |
def __repr__(self):
|
|
|
1596 |
L = ['%s=%r' % (key, value)
|
|
|
1597 |
for key, value in self.__dict__.iteritems()]
|
|
|
1598 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1599 |
|
|
|
1600 |
def __eq__(self, other):
|
|
|
1601 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1602 |
|
|
|
1603 |
def __ne__(self, other):
|
|
|
1604 |
return not (self == other)
|
|
|
1605 |
|
|
|
1606 |
class unassignAgentTickets_result:
|
|
|
1607 |
|
|
|
1608 |
thrift_spec = (
|
|
|
1609 |
)
|
|
|
1610 |
|
|
|
1611 |
def read(self, iprot):
|
|
|
1612 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1613 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1614 |
return
|
|
|
1615 |
iprot.readStructBegin()
|
|
|
1616 |
while True:
|
|
|
1617 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1618 |
if ftype == TType.STOP:
|
|
|
1619 |
break
|
|
|
1620 |
else:
|
|
|
1621 |
iprot.skip(ftype)
|
|
|
1622 |
iprot.readFieldEnd()
|
|
|
1623 |
iprot.readStructEnd()
|
|
|
1624 |
|
|
|
1625 |
def write(self, oprot):
|
|
|
1626 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1627 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1628 |
return
|
|
|
1629 |
oprot.writeStructBegin('unassignAgentTickets_result')
|
|
|
1630 |
oprot.writeFieldStop()
|
|
|
1631 |
oprot.writeStructEnd()
|
|
|
1632 |
|
|
|
1633 |
def validate(self):
|
|
|
1634 |
return
|
|
|
1635 |
|
|
|
1636 |
|
|
|
1637 |
def __repr__(self):
|
|
|
1638 |
L = ['%s=%r' % (key, value)
|
|
|
1639 |
for key, value in self.__dict__.iteritems()]
|
|
|
1640 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1641 |
|
|
|
1642 |
def __eq__(self, other):
|
|
|
1643 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1644 |
|
|
|
1645 |
def __ne__(self, other):
|
|
|
1646 |
return not (self == other)
|
|
|
1647 |
|
| 3131 |
rajveer |
1648 |
class getActivities_args:
|
|
|
1649 |
"""
|
|
|
1650 |
Attributes:
|
| 3431 |
rajveer |
1651 |
- searchFilter
|
| 3131 |
rajveer |
1652 |
"""
|
|
|
1653 |
|
|
|
1654 |
thrift_spec = (
|
|
|
1655 |
None, # 0
|
| 3431 |
rajveer |
1656 |
(1, TType.STRUCT, 'searchFilter', (SearchFilter, SearchFilter.thrift_spec), None, ), # 1
|
| 3131 |
rajveer |
1657 |
)
|
|
|
1658 |
|
| 3431 |
rajveer |
1659 |
def __init__(self, searchFilter=None,):
|
|
|
1660 |
self.searchFilter = searchFilter
|
| 3131 |
rajveer |
1661 |
|
|
|
1662 |
def read(self, iprot):
|
|
|
1663 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1664 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1665 |
return
|
|
|
1666 |
iprot.readStructBegin()
|
|
|
1667 |
while True:
|
|
|
1668 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1669 |
if ftype == TType.STOP:
|
|
|
1670 |
break
|
|
|
1671 |
if fid == 1:
|
| 3431 |
rajveer |
1672 |
if ftype == TType.STRUCT:
|
|
|
1673 |
self.searchFilter = SearchFilter()
|
|
|
1674 |
self.searchFilter.read(iprot)
|
| 3131 |
rajveer |
1675 |
else:
|
|
|
1676 |
iprot.skip(ftype)
|
|
|
1677 |
else:
|
|
|
1678 |
iprot.skip(ftype)
|
|
|
1679 |
iprot.readFieldEnd()
|
|
|
1680 |
iprot.readStructEnd()
|
|
|
1681 |
|
|
|
1682 |
def write(self, oprot):
|
|
|
1683 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1684 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1685 |
return
|
|
|
1686 |
oprot.writeStructBegin('getActivities_args')
|
| 3431 |
rajveer |
1687 |
if self.searchFilter is not None:
|
|
|
1688 |
oprot.writeFieldBegin('searchFilter', TType.STRUCT, 1)
|
|
|
1689 |
self.searchFilter.write(oprot)
|
| 3131 |
rajveer |
1690 |
oprot.writeFieldEnd()
|
|
|
1691 |
oprot.writeFieldStop()
|
|
|
1692 |
oprot.writeStructEnd()
|
|
|
1693 |
|
| 3431 |
rajveer |
1694 |
def validate(self):
|
|
|
1695 |
return
|
|
|
1696 |
|
|
|
1697 |
|
| 3131 |
rajveer |
1698 |
def __repr__(self):
|
|
|
1699 |
L = ['%s=%r' % (key, value)
|
|
|
1700 |
for key, value in self.__dict__.iteritems()]
|
|
|
1701 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1702 |
|
|
|
1703 |
def __eq__(self, other):
|
|
|
1704 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1705 |
|
|
|
1706 |
def __ne__(self, other):
|
|
|
1707 |
return not (self == other)
|
|
|
1708 |
|
|
|
1709 |
class getActivities_result:
|
|
|
1710 |
"""
|
|
|
1711 |
Attributes:
|
|
|
1712 |
- success
|
|
|
1713 |
"""
|
|
|
1714 |
|
|
|
1715 |
thrift_spec = (
|
|
|
1716 |
(0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
|
|
|
1717 |
)
|
|
|
1718 |
|
|
|
1719 |
def __init__(self, success=None,):
|
|
|
1720 |
self.success = success
|
|
|
1721 |
|
|
|
1722 |
def read(self, iprot):
|
|
|
1723 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1724 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1725 |
return
|
|
|
1726 |
iprot.readStructBegin()
|
|
|
1727 |
while True:
|
|
|
1728 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1729 |
if ftype == TType.STOP:
|
|
|
1730 |
break
|
|
|
1731 |
if fid == 0:
|
|
|
1732 |
if ftype == TType.LIST:
|
|
|
1733 |
self.success = []
|
| 14882 |
manish.sha |
1734 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
1735 |
for _i46 in xrange(_size42):
|
|
|
1736 |
_elem47 = Activity()
|
|
|
1737 |
_elem47.read(iprot)
|
|
|
1738 |
self.success.append(_elem47)
|
| 3131 |
rajveer |
1739 |
iprot.readListEnd()
|
|
|
1740 |
else:
|
|
|
1741 |
iprot.skip(ftype)
|
|
|
1742 |
else:
|
|
|
1743 |
iprot.skip(ftype)
|
|
|
1744 |
iprot.readFieldEnd()
|
|
|
1745 |
iprot.readStructEnd()
|
|
|
1746 |
|
|
|
1747 |
def write(self, oprot):
|
|
|
1748 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1749 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1750 |
return
|
|
|
1751 |
oprot.writeStructBegin('getActivities_result')
|
| 3431 |
rajveer |
1752 |
if self.success is not None:
|
| 3131 |
rajveer |
1753 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1754 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 14882 |
manish.sha |
1755 |
for iter48 in self.success:
|
|
|
1756 |
iter48.write(oprot)
|
| 3131 |
rajveer |
1757 |
oprot.writeListEnd()
|
|
|
1758 |
oprot.writeFieldEnd()
|
|
|
1759 |
oprot.writeFieldStop()
|
|
|
1760 |
oprot.writeStructEnd()
|
|
|
1761 |
|
| 3431 |
rajveer |
1762 |
def validate(self):
|
|
|
1763 |
return
|
|
|
1764 |
|
|
|
1765 |
|
| 3131 |
rajveer |
1766 |
def __repr__(self):
|
|
|
1767 |
L = ['%s=%r' % (key, value)
|
|
|
1768 |
for key, value in self.__dict__.iteritems()]
|
|
|
1769 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1770 |
|
|
|
1771 |
def __eq__(self, other):
|
|
|
1772 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1773 |
|
|
|
1774 |
def __ne__(self, other):
|
|
|
1775 |
return not (self == other)
|
|
|
1776 |
|
| 3431 |
rajveer |
1777 |
class insertActivity_args:
|
| 3376 |
rajveer |
1778 |
"""
|
|
|
1779 |
Attributes:
|
| 3431 |
rajveer |
1780 |
- activity
|
| 3376 |
rajveer |
1781 |
"""
|
|
|
1782 |
|
|
|
1783 |
thrift_spec = (
|
|
|
1784 |
None, # 0
|
| 3431 |
rajveer |
1785 |
(1, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 1
|
| 3376 |
rajveer |
1786 |
)
|
|
|
1787 |
|
| 3431 |
rajveer |
1788 |
def __init__(self, activity=None,):
|
|
|
1789 |
self.activity = activity
|
| 3376 |
rajveer |
1790 |
|
|
|
1791 |
def read(self, iprot):
|
|
|
1792 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1793 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1794 |
return
|
|
|
1795 |
iprot.readStructBegin()
|
|
|
1796 |
while True:
|
|
|
1797 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1798 |
if ftype == TType.STOP:
|
|
|
1799 |
break
|
|
|
1800 |
if fid == 1:
|
| 3431 |
rajveer |
1801 |
if ftype == TType.STRUCT:
|
|
|
1802 |
self.activity = Activity()
|
|
|
1803 |
self.activity.read(iprot)
|
| 3376 |
rajveer |
1804 |
else:
|
|
|
1805 |
iprot.skip(ftype)
|
|
|
1806 |
else:
|
|
|
1807 |
iprot.skip(ftype)
|
|
|
1808 |
iprot.readFieldEnd()
|
|
|
1809 |
iprot.readStructEnd()
|
|
|
1810 |
|
|
|
1811 |
def write(self, oprot):
|
|
|
1812 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1813 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1814 |
return
|
| 3431 |
rajveer |
1815 |
oprot.writeStructBegin('insertActivity_args')
|
|
|
1816 |
if self.activity is not None:
|
|
|
1817 |
oprot.writeFieldBegin('activity', TType.STRUCT, 1)
|
|
|
1818 |
self.activity.write(oprot)
|
| 3376 |
rajveer |
1819 |
oprot.writeFieldEnd()
|
|
|
1820 |
oprot.writeFieldStop()
|
|
|
1821 |
oprot.writeStructEnd()
|
|
|
1822 |
|
| 3431 |
rajveer |
1823 |
def validate(self):
|
|
|
1824 |
return
|
|
|
1825 |
|
|
|
1826 |
|
| 3376 |
rajveer |
1827 |
def __repr__(self):
|
|
|
1828 |
L = ['%s=%r' % (key, value)
|
|
|
1829 |
for key, value in self.__dict__.iteritems()]
|
|
|
1830 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1831 |
|
|
|
1832 |
def __eq__(self, other):
|
|
|
1833 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1834 |
|
|
|
1835 |
def __ne__(self, other):
|
|
|
1836 |
return not (self == other)
|
|
|
1837 |
|
| 3431 |
rajveer |
1838 |
class insertActivity_result:
|
| 3376 |
rajveer |
1839 |
"""
|
|
|
1840 |
Attributes:
|
|
|
1841 |
- success
|
|
|
1842 |
"""
|
|
|
1843 |
|
|
|
1844 |
thrift_spec = (
|
| 3431 |
rajveer |
1845 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 3376 |
rajveer |
1846 |
)
|
|
|
1847 |
|
|
|
1848 |
def __init__(self, success=None,):
|
|
|
1849 |
self.success = success
|
|
|
1850 |
|
|
|
1851 |
def read(self, iprot):
|
|
|
1852 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1853 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1854 |
return
|
|
|
1855 |
iprot.readStructBegin()
|
|
|
1856 |
while True:
|
|
|
1857 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1858 |
if ftype == TType.STOP:
|
|
|
1859 |
break
|
|
|
1860 |
if fid == 0:
|
| 3131 |
rajveer |
1861 |
if ftype == TType.I64:
|
| 3431 |
rajveer |
1862 |
self.success = iprot.readI64();
|
| 3131 |
rajveer |
1863 |
else:
|
|
|
1864 |
iprot.skip(ftype)
|
|
|
1865 |
else:
|
|
|
1866 |
iprot.skip(ftype)
|
|
|
1867 |
iprot.readFieldEnd()
|
|
|
1868 |
iprot.readStructEnd()
|
|
|
1869 |
|
|
|
1870 |
def write(self, oprot):
|
|
|
1871 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1872 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1873 |
return
|
| 3431 |
rajveer |
1874 |
oprot.writeStructBegin('insertActivity_result')
|
|
|
1875 |
if self.success is not None:
|
|
|
1876 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1877 |
oprot.writeI64(self.success)
|
| 3131 |
rajveer |
1878 |
oprot.writeFieldEnd()
|
|
|
1879 |
oprot.writeFieldStop()
|
|
|
1880 |
oprot.writeStructEnd()
|
|
|
1881 |
|
| 3431 |
rajveer |
1882 |
def validate(self):
|
|
|
1883 |
return
|
| 3131 |
rajveer |
1884 |
|
|
|
1885 |
|
|
|
1886 |
def __repr__(self):
|
|
|
1887 |
L = ['%s=%r' % (key, value)
|
|
|
1888 |
for key, value in self.__dict__.iteritems()]
|
|
|
1889 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1890 |
|
|
|
1891 |
def __eq__(self, other):
|
|
|
1892 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1893 |
|
|
|
1894 |
def __ne__(self, other):
|
|
|
1895 |
return not (self == other)
|
|
|
1896 |
|
| 3431 |
rajveer |
1897 |
class markAsRead_args:
|
| 3131 |
rajveer |
1898 |
"""
|
|
|
1899 |
Attributes:
|
|
|
1900 |
- activityId
|
| 3431 |
rajveer |
1901 |
- agentId
|
| 3131 |
rajveer |
1902 |
"""
|
|
|
1903 |
|
|
|
1904 |
thrift_spec = (
|
|
|
1905 |
None, # 0
|
|
|
1906 |
(1, TType.I64, 'activityId', None, None, ), # 1
|
| 3431 |
rajveer |
1907 |
(2, TType.I64, 'agentId', None, None, ), # 2
|
| 3131 |
rajveer |
1908 |
)
|
|
|
1909 |
|
| 3431 |
rajveer |
1910 |
def __init__(self, activityId=None, agentId=None,):
|
| 3131 |
rajveer |
1911 |
self.activityId = activityId
|
| 3431 |
rajveer |
1912 |
self.agentId = agentId
|
| 3131 |
rajveer |
1913 |
|
|
|
1914 |
def read(self, iprot):
|
|
|
1915 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1916 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1917 |
return
|
|
|
1918 |
iprot.readStructBegin()
|
|
|
1919 |
while True:
|
|
|
1920 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1921 |
if ftype == TType.STOP:
|
|
|
1922 |
break
|
|
|
1923 |
if fid == 1:
|
|
|
1924 |
if ftype == TType.I64:
|
|
|
1925 |
self.activityId = iprot.readI64();
|
|
|
1926 |
else:
|
|
|
1927 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
1928 |
elif fid == 2:
|
|
|
1929 |
if ftype == TType.I64:
|
|
|
1930 |
self.agentId = iprot.readI64();
|
|
|
1931 |
else:
|
|
|
1932 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
1933 |
else:
|
|
|
1934 |
iprot.skip(ftype)
|
|
|
1935 |
iprot.readFieldEnd()
|
|
|
1936 |
iprot.readStructEnd()
|
|
|
1937 |
|
|
|
1938 |
def write(self, oprot):
|
|
|
1939 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1940 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1941 |
return
|
| 3431 |
rajveer |
1942 |
oprot.writeStructBegin('markAsRead_args')
|
|
|
1943 |
if self.activityId is not None:
|
| 3131 |
rajveer |
1944 |
oprot.writeFieldBegin('activityId', TType.I64, 1)
|
|
|
1945 |
oprot.writeI64(self.activityId)
|
|
|
1946 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1947 |
if self.agentId is not None:
|
|
|
1948 |
oprot.writeFieldBegin('agentId', TType.I64, 2)
|
|
|
1949 |
oprot.writeI64(self.agentId)
|
|
|
1950 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
1951 |
oprot.writeFieldStop()
|
|
|
1952 |
oprot.writeStructEnd()
|
|
|
1953 |
|
| 3431 |
rajveer |
1954 |
def validate(self):
|
|
|
1955 |
return
|
| 3131 |
rajveer |
1956 |
|
|
|
1957 |
|
|
|
1958 |
def __repr__(self):
|
|
|
1959 |
L = ['%s=%r' % (key, value)
|
|
|
1960 |
for key, value in self.__dict__.iteritems()]
|
|
|
1961 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1962 |
|
|
|
1963 |
def __eq__(self, other):
|
|
|
1964 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1965 |
|
|
|
1966 |
def __ne__(self, other):
|
|
|
1967 |
return not (self == other)
|
|
|
1968 |
|
| 3431 |
rajveer |
1969 |
class markAsRead_result:
|
| 3131 |
rajveer |
1970 |
|
|
|
1971 |
thrift_spec = (
|
|
|
1972 |
)
|
|
|
1973 |
|
|
|
1974 |
def read(self, iprot):
|
|
|
1975 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1976 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1977 |
return
|
|
|
1978 |
iprot.readStructBegin()
|
|
|
1979 |
while True:
|
|
|
1980 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1981 |
if ftype == TType.STOP:
|
|
|
1982 |
break
|
|
|
1983 |
else:
|
|
|
1984 |
iprot.skip(ftype)
|
|
|
1985 |
iprot.readFieldEnd()
|
|
|
1986 |
iprot.readStructEnd()
|
|
|
1987 |
|
|
|
1988 |
def write(self, oprot):
|
|
|
1989 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1990 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1991 |
return
|
| 3431 |
rajveer |
1992 |
oprot.writeStructBegin('markAsRead_result')
|
| 3131 |
rajveer |
1993 |
oprot.writeFieldStop()
|
|
|
1994 |
oprot.writeStructEnd()
|
|
|
1995 |
|
| 3431 |
rajveer |
1996 |
def validate(self):
|
|
|
1997 |
return
|
| 3131 |
rajveer |
1998 |
|
|
|
1999 |
|
|
|
2000 |
def __repr__(self):
|
|
|
2001 |
L = ['%s=%r' % (key, value)
|
|
|
2002 |
for key, value in self.__dict__.iteritems()]
|
|
|
2003 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2004 |
|
|
|
2005 |
def __eq__(self, other):
|
|
|
2006 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2007 |
|
|
|
2008 |
def __ne__(self, other):
|
|
|
2009 |
return not (self == other)
|
|
|
2010 |
|
| 3431 |
rajveer |
2011 |
class getAgents_args:
|
| 3131 |
rajveer |
2012 |
"""
|
|
|
2013 |
Attributes:
|
| 3431 |
rajveer |
2014 |
- searchFilter
|
| 3131 |
rajveer |
2015 |
"""
|
|
|
2016 |
|
|
|
2017 |
thrift_spec = (
|
|
|
2018 |
None, # 0
|
| 3431 |
rajveer |
2019 |
(1, TType.STRUCT, 'searchFilter', (SearchFilter, SearchFilter.thrift_spec), None, ), # 1
|
| 3131 |
rajveer |
2020 |
)
|
|
|
2021 |
|
| 3431 |
rajveer |
2022 |
def __init__(self, searchFilter=None,):
|
|
|
2023 |
self.searchFilter = searchFilter
|
| 3131 |
rajveer |
2024 |
|
|
|
2025 |
def read(self, iprot):
|
|
|
2026 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2027 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2028 |
return
|
|
|
2029 |
iprot.readStructBegin()
|
|
|
2030 |
while True:
|
|
|
2031 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2032 |
if ftype == TType.STOP:
|
|
|
2033 |
break
|
|
|
2034 |
if fid == 1:
|
|
|
2035 |
if ftype == TType.STRUCT:
|
| 3431 |
rajveer |
2036 |
self.searchFilter = SearchFilter()
|
|
|
2037 |
self.searchFilter.read(iprot)
|
| 3131 |
rajveer |
2038 |
else:
|
|
|
2039 |
iprot.skip(ftype)
|
|
|
2040 |
else:
|
|
|
2041 |
iprot.skip(ftype)
|
|
|
2042 |
iprot.readFieldEnd()
|
|
|
2043 |
iprot.readStructEnd()
|
|
|
2044 |
|
|
|
2045 |
def write(self, oprot):
|
|
|
2046 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2047 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2048 |
return
|
| 3431 |
rajveer |
2049 |
oprot.writeStructBegin('getAgents_args')
|
|
|
2050 |
if self.searchFilter is not None:
|
|
|
2051 |
oprot.writeFieldBegin('searchFilter', TType.STRUCT, 1)
|
|
|
2052 |
self.searchFilter.write(oprot)
|
| 3131 |
rajveer |
2053 |
oprot.writeFieldEnd()
|
|
|
2054 |
oprot.writeFieldStop()
|
|
|
2055 |
oprot.writeStructEnd()
|
|
|
2056 |
|
| 3431 |
rajveer |
2057 |
def validate(self):
|
|
|
2058 |
return
|
| 3131 |
rajveer |
2059 |
|
|
|
2060 |
|
|
|
2061 |
def __repr__(self):
|
|
|
2062 |
L = ['%s=%r' % (key, value)
|
|
|
2063 |
for key, value in self.__dict__.iteritems()]
|
|
|
2064 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2065 |
|
|
|
2066 |
def __eq__(self, other):
|
|
|
2067 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2068 |
|
|
|
2069 |
def __ne__(self, other):
|
|
|
2070 |
return not (self == other)
|
|
|
2071 |
|
| 3431 |
rajveer |
2072 |
class getAgents_result:
|
| 3131 |
rajveer |
2073 |
"""
|
|
|
2074 |
Attributes:
|
|
|
2075 |
- success
|
|
|
2076 |
"""
|
|
|
2077 |
|
|
|
2078 |
thrift_spec = (
|
|
|
2079 |
(0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
|
|
|
2080 |
)
|
|
|
2081 |
|
|
|
2082 |
def __init__(self, success=None,):
|
|
|
2083 |
self.success = success
|
|
|
2084 |
|
|
|
2085 |
def read(self, iprot):
|
|
|
2086 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2087 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2088 |
return
|
|
|
2089 |
iprot.readStructBegin()
|
|
|
2090 |
while True:
|
|
|
2091 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2092 |
if ftype == TType.STOP:
|
|
|
2093 |
break
|
|
|
2094 |
if fid == 0:
|
|
|
2095 |
if ftype == TType.LIST:
|
|
|
2096 |
self.success = []
|
| 14882 |
manish.sha |
2097 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
2098 |
for _i53 in xrange(_size49):
|
|
|
2099 |
_elem54 = Agent()
|
|
|
2100 |
_elem54.read(iprot)
|
|
|
2101 |
self.success.append(_elem54)
|
| 3131 |
rajveer |
2102 |
iprot.readListEnd()
|
|
|
2103 |
else:
|
|
|
2104 |
iprot.skip(ftype)
|
|
|
2105 |
else:
|
|
|
2106 |
iprot.skip(ftype)
|
|
|
2107 |
iprot.readFieldEnd()
|
|
|
2108 |
iprot.readStructEnd()
|
|
|
2109 |
|
|
|
2110 |
def write(self, oprot):
|
|
|
2111 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2112 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2113 |
return
|
| 3431 |
rajveer |
2114 |
oprot.writeStructBegin('getAgents_result')
|
|
|
2115 |
if self.success is not None:
|
| 3131 |
rajveer |
2116 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2117 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 14882 |
manish.sha |
2118 |
for iter55 in self.success:
|
|
|
2119 |
iter55.write(oprot)
|
| 3131 |
rajveer |
2120 |
oprot.writeListEnd()
|
|
|
2121 |
oprot.writeFieldEnd()
|
|
|
2122 |
oprot.writeFieldStop()
|
|
|
2123 |
oprot.writeStructEnd()
|
|
|
2124 |
|
| 3431 |
rajveer |
2125 |
def validate(self):
|
|
|
2126 |
return
|
| 3131 |
rajveer |
2127 |
|
|
|
2128 |
|
|
|
2129 |
def __repr__(self):
|
|
|
2130 |
L = ['%s=%r' % (key, value)
|
|
|
2131 |
for key, value in self.__dict__.iteritems()]
|
|
|
2132 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2133 |
|
|
|
2134 |
def __eq__(self, other):
|
|
|
2135 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2136 |
|
|
|
2137 |
def __ne__(self, other):
|
|
|
2138 |
return not (self == other)
|
|
|
2139 |
|
| 5407 |
amar.kumar |
2140 |
class getInactiveAgents_args:
|
|
|
2141 |
"""
|
|
|
2142 |
Attributes:
|
|
|
2143 |
- searchFilter
|
|
|
2144 |
"""
|
|
|
2145 |
|
|
|
2146 |
thrift_spec = (
|
|
|
2147 |
None, # 0
|
|
|
2148 |
(1, TType.STRUCT, 'searchFilter', (SearchFilter, SearchFilter.thrift_spec), None, ), # 1
|
|
|
2149 |
)
|
|
|
2150 |
|
|
|
2151 |
def __init__(self, searchFilter=None,):
|
|
|
2152 |
self.searchFilter = searchFilter
|
|
|
2153 |
|
|
|
2154 |
def read(self, iprot):
|
|
|
2155 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2156 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2157 |
return
|
|
|
2158 |
iprot.readStructBegin()
|
|
|
2159 |
while True:
|
|
|
2160 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2161 |
if ftype == TType.STOP:
|
|
|
2162 |
break
|
|
|
2163 |
if fid == 1:
|
|
|
2164 |
if ftype == TType.STRUCT:
|
|
|
2165 |
self.searchFilter = SearchFilter()
|
|
|
2166 |
self.searchFilter.read(iprot)
|
|
|
2167 |
else:
|
|
|
2168 |
iprot.skip(ftype)
|
|
|
2169 |
else:
|
|
|
2170 |
iprot.skip(ftype)
|
|
|
2171 |
iprot.readFieldEnd()
|
|
|
2172 |
iprot.readStructEnd()
|
|
|
2173 |
|
|
|
2174 |
def write(self, oprot):
|
|
|
2175 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2176 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2177 |
return
|
|
|
2178 |
oprot.writeStructBegin('getInactiveAgents_args')
|
|
|
2179 |
if self.searchFilter is not None:
|
|
|
2180 |
oprot.writeFieldBegin('searchFilter', TType.STRUCT, 1)
|
|
|
2181 |
self.searchFilter.write(oprot)
|
|
|
2182 |
oprot.writeFieldEnd()
|
|
|
2183 |
oprot.writeFieldStop()
|
|
|
2184 |
oprot.writeStructEnd()
|
|
|
2185 |
|
|
|
2186 |
def validate(self):
|
|
|
2187 |
return
|
|
|
2188 |
|
|
|
2189 |
|
|
|
2190 |
def __repr__(self):
|
|
|
2191 |
L = ['%s=%r' % (key, value)
|
|
|
2192 |
for key, value in self.__dict__.iteritems()]
|
|
|
2193 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2194 |
|
|
|
2195 |
def __eq__(self, other):
|
|
|
2196 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2197 |
|
|
|
2198 |
def __ne__(self, other):
|
|
|
2199 |
return not (self == other)
|
|
|
2200 |
|
|
|
2201 |
class getInactiveAgents_result:
|
|
|
2202 |
"""
|
|
|
2203 |
Attributes:
|
|
|
2204 |
- success
|
|
|
2205 |
"""
|
|
|
2206 |
|
|
|
2207 |
thrift_spec = (
|
|
|
2208 |
(0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
|
|
|
2209 |
)
|
|
|
2210 |
|
|
|
2211 |
def __init__(self, success=None,):
|
|
|
2212 |
self.success = success
|
|
|
2213 |
|
|
|
2214 |
def read(self, iprot):
|
|
|
2215 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2216 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2217 |
return
|
|
|
2218 |
iprot.readStructBegin()
|
|
|
2219 |
while True:
|
|
|
2220 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2221 |
if ftype == TType.STOP:
|
|
|
2222 |
break
|
|
|
2223 |
if fid == 0:
|
|
|
2224 |
if ftype == TType.LIST:
|
|
|
2225 |
self.success = []
|
| 14882 |
manish.sha |
2226 |
(_etype59, _size56) = iprot.readListBegin()
|
|
|
2227 |
for _i60 in xrange(_size56):
|
|
|
2228 |
_elem61 = Agent()
|
|
|
2229 |
_elem61.read(iprot)
|
|
|
2230 |
self.success.append(_elem61)
|
| 5407 |
amar.kumar |
2231 |
iprot.readListEnd()
|
|
|
2232 |
else:
|
|
|
2233 |
iprot.skip(ftype)
|
|
|
2234 |
else:
|
|
|
2235 |
iprot.skip(ftype)
|
|
|
2236 |
iprot.readFieldEnd()
|
|
|
2237 |
iprot.readStructEnd()
|
|
|
2238 |
|
|
|
2239 |
def write(self, oprot):
|
|
|
2240 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2241 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2242 |
return
|
|
|
2243 |
oprot.writeStructBegin('getInactiveAgents_result')
|
|
|
2244 |
if self.success is not None:
|
|
|
2245 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2246 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 14882 |
manish.sha |
2247 |
for iter62 in self.success:
|
|
|
2248 |
iter62.write(oprot)
|
| 5407 |
amar.kumar |
2249 |
oprot.writeListEnd()
|
|
|
2250 |
oprot.writeFieldEnd()
|
|
|
2251 |
oprot.writeFieldStop()
|
|
|
2252 |
oprot.writeStructEnd()
|
|
|
2253 |
|
|
|
2254 |
def validate(self):
|
|
|
2255 |
return
|
|
|
2256 |
|
|
|
2257 |
|
|
|
2258 |
def __repr__(self):
|
|
|
2259 |
L = ['%s=%r' % (key, value)
|
|
|
2260 |
for key, value in self.__dict__.iteritems()]
|
|
|
2261 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2262 |
|
|
|
2263 |
def __eq__(self, other):
|
|
|
2264 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2265 |
|
|
|
2266 |
def __ne__(self, other):
|
|
|
2267 |
return not (self == other)
|
|
|
2268 |
|
| 3131 |
rajveer |
2269 |
class updatePasswordForAgent_args:
|
|
|
2270 |
"""
|
|
|
2271 |
Attributes:
|
|
|
2272 |
- agentEmailId
|
|
|
2273 |
- password
|
|
|
2274 |
"""
|
|
|
2275 |
|
|
|
2276 |
thrift_spec = (
|
|
|
2277 |
None, # 0
|
|
|
2278 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
2279 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2280 |
)
|
|
|
2281 |
|
|
|
2282 |
def __init__(self, agentEmailId=None, password=None,):
|
|
|
2283 |
self.agentEmailId = agentEmailId
|
|
|
2284 |
self.password = password
|
|
|
2285 |
|
|
|
2286 |
def read(self, iprot):
|
|
|
2287 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2288 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2289 |
return
|
|
|
2290 |
iprot.readStructBegin()
|
|
|
2291 |
while True:
|
|
|
2292 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2293 |
if ftype == TType.STOP:
|
|
|
2294 |
break
|
|
|
2295 |
if fid == 1:
|
|
|
2296 |
if ftype == TType.STRING:
|
|
|
2297 |
self.agentEmailId = iprot.readString();
|
|
|
2298 |
else:
|
|
|
2299 |
iprot.skip(ftype)
|
|
|
2300 |
elif fid == 2:
|
|
|
2301 |
if ftype == TType.STRING:
|
|
|
2302 |
self.password = iprot.readString();
|
|
|
2303 |
else:
|
|
|
2304 |
iprot.skip(ftype)
|
|
|
2305 |
else:
|
|
|
2306 |
iprot.skip(ftype)
|
|
|
2307 |
iprot.readFieldEnd()
|
|
|
2308 |
iprot.readStructEnd()
|
|
|
2309 |
|
|
|
2310 |
def write(self, oprot):
|
|
|
2311 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2312 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2313 |
return
|
|
|
2314 |
oprot.writeStructBegin('updatePasswordForAgent_args')
|
| 3431 |
rajveer |
2315 |
if self.agentEmailId is not None:
|
| 3131 |
rajveer |
2316 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
2317 |
oprot.writeString(self.agentEmailId)
|
|
|
2318 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2319 |
if self.password is not None:
|
| 3131 |
rajveer |
2320 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2321 |
oprot.writeString(self.password)
|
|
|
2322 |
oprot.writeFieldEnd()
|
|
|
2323 |
oprot.writeFieldStop()
|
|
|
2324 |
oprot.writeStructEnd()
|
|
|
2325 |
|
| 3431 |
rajveer |
2326 |
def validate(self):
|
|
|
2327 |
return
|
|
|
2328 |
|
|
|
2329 |
|
| 3131 |
rajveer |
2330 |
def __repr__(self):
|
|
|
2331 |
L = ['%s=%r' % (key, value)
|
|
|
2332 |
for key, value in self.__dict__.iteritems()]
|
|
|
2333 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2334 |
|
|
|
2335 |
def __eq__(self, other):
|
|
|
2336 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2337 |
|
|
|
2338 |
def __ne__(self, other):
|
|
|
2339 |
return not (self == other)
|
|
|
2340 |
|
|
|
2341 |
class updatePasswordForAgent_result:
|
|
|
2342 |
|
|
|
2343 |
thrift_spec = (
|
|
|
2344 |
)
|
|
|
2345 |
|
|
|
2346 |
def read(self, iprot):
|
|
|
2347 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2348 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2349 |
return
|
|
|
2350 |
iprot.readStructBegin()
|
|
|
2351 |
while True:
|
|
|
2352 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2353 |
if ftype == TType.STOP:
|
|
|
2354 |
break
|
|
|
2355 |
else:
|
|
|
2356 |
iprot.skip(ftype)
|
|
|
2357 |
iprot.readFieldEnd()
|
|
|
2358 |
iprot.readStructEnd()
|
|
|
2359 |
|
|
|
2360 |
def write(self, oprot):
|
|
|
2361 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2362 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2363 |
return
|
|
|
2364 |
oprot.writeStructBegin('updatePasswordForAgent_result')
|
|
|
2365 |
oprot.writeFieldStop()
|
|
|
2366 |
oprot.writeStructEnd()
|
|
|
2367 |
|
| 3431 |
rajveer |
2368 |
def validate(self):
|
|
|
2369 |
return
|
|
|
2370 |
|
|
|
2371 |
|
| 3131 |
rajveer |
2372 |
def __repr__(self):
|
|
|
2373 |
L = ['%s=%r' % (key, value)
|
|
|
2374 |
for key, value in self.__dict__.iteritems()]
|
|
|
2375 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2376 |
|
|
|
2377 |
def __eq__(self, other):
|
|
|
2378 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2379 |
|
|
|
2380 |
def __ne__(self, other):
|
|
|
2381 |
return not (self == other)
|
|
|
2382 |
|
|
|
2383 |
class getRoleNamesForAgent_args:
|
|
|
2384 |
"""
|
|
|
2385 |
Attributes:
|
|
|
2386 |
- agentEmailId
|
|
|
2387 |
"""
|
|
|
2388 |
|
|
|
2389 |
thrift_spec = (
|
|
|
2390 |
None, # 0
|
|
|
2391 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
2392 |
)
|
|
|
2393 |
|
|
|
2394 |
def __init__(self, agentEmailId=None,):
|
|
|
2395 |
self.agentEmailId = agentEmailId
|
|
|
2396 |
|
|
|
2397 |
def read(self, iprot):
|
|
|
2398 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2399 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2400 |
return
|
|
|
2401 |
iprot.readStructBegin()
|
|
|
2402 |
while True:
|
|
|
2403 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2404 |
if ftype == TType.STOP:
|
|
|
2405 |
break
|
|
|
2406 |
if fid == 1:
|
|
|
2407 |
if ftype == TType.STRING:
|
|
|
2408 |
self.agentEmailId = iprot.readString();
|
|
|
2409 |
else:
|
|
|
2410 |
iprot.skip(ftype)
|
|
|
2411 |
else:
|
|
|
2412 |
iprot.skip(ftype)
|
|
|
2413 |
iprot.readFieldEnd()
|
|
|
2414 |
iprot.readStructEnd()
|
|
|
2415 |
|
|
|
2416 |
def write(self, oprot):
|
|
|
2417 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2418 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2419 |
return
|
|
|
2420 |
oprot.writeStructBegin('getRoleNamesForAgent_args')
|
| 3431 |
rajveer |
2421 |
if self.agentEmailId is not None:
|
| 3131 |
rajveer |
2422 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
2423 |
oprot.writeString(self.agentEmailId)
|
|
|
2424 |
oprot.writeFieldEnd()
|
|
|
2425 |
oprot.writeFieldStop()
|
|
|
2426 |
oprot.writeStructEnd()
|
|
|
2427 |
|
| 3431 |
rajveer |
2428 |
def validate(self):
|
|
|
2429 |
return
|
|
|
2430 |
|
|
|
2431 |
|
| 3131 |
rajveer |
2432 |
def __repr__(self):
|
|
|
2433 |
L = ['%s=%r' % (key, value)
|
|
|
2434 |
for key, value in self.__dict__.iteritems()]
|
|
|
2435 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2436 |
|
|
|
2437 |
def __eq__(self, other):
|
|
|
2438 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2439 |
|
|
|
2440 |
def __ne__(self, other):
|
|
|
2441 |
return not (self == other)
|
|
|
2442 |
|
|
|
2443 |
class getRoleNamesForAgent_result:
|
|
|
2444 |
"""
|
|
|
2445 |
Attributes:
|
|
|
2446 |
- success
|
|
|
2447 |
"""
|
|
|
2448 |
|
|
|
2449 |
thrift_spec = (
|
|
|
2450 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
2451 |
)
|
|
|
2452 |
|
|
|
2453 |
def __init__(self, success=None,):
|
|
|
2454 |
self.success = success
|
|
|
2455 |
|
|
|
2456 |
def read(self, iprot):
|
|
|
2457 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2458 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2459 |
return
|
|
|
2460 |
iprot.readStructBegin()
|
|
|
2461 |
while True:
|
|
|
2462 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2463 |
if ftype == TType.STOP:
|
|
|
2464 |
break
|
|
|
2465 |
if fid == 0:
|
|
|
2466 |
if ftype == TType.LIST:
|
|
|
2467 |
self.success = []
|
| 14882 |
manish.sha |
2468 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
2469 |
for _i67 in xrange(_size63):
|
|
|
2470 |
_elem68 = iprot.readString();
|
|
|
2471 |
self.success.append(_elem68)
|
| 3131 |
rajveer |
2472 |
iprot.readListEnd()
|
|
|
2473 |
else:
|
|
|
2474 |
iprot.skip(ftype)
|
|
|
2475 |
else:
|
|
|
2476 |
iprot.skip(ftype)
|
|
|
2477 |
iprot.readFieldEnd()
|
|
|
2478 |
iprot.readStructEnd()
|
|
|
2479 |
|
|
|
2480 |
def write(self, oprot):
|
|
|
2481 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2482 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2483 |
return
|
|
|
2484 |
oprot.writeStructBegin('getRoleNamesForAgent_result')
|
| 3431 |
rajveer |
2485 |
if self.success is not None:
|
| 3131 |
rajveer |
2486 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2487 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
| 14882 |
manish.sha |
2488 |
for iter69 in self.success:
|
|
|
2489 |
oprot.writeString(iter69)
|
| 3131 |
rajveer |
2490 |
oprot.writeListEnd()
|
|
|
2491 |
oprot.writeFieldEnd()
|
|
|
2492 |
oprot.writeFieldStop()
|
|
|
2493 |
oprot.writeStructEnd()
|
|
|
2494 |
|
| 3431 |
rajveer |
2495 |
def validate(self):
|
|
|
2496 |
return
|
|
|
2497 |
|
|
|
2498 |
|
| 3131 |
rajveer |
2499 |
def __repr__(self):
|
|
|
2500 |
L = ['%s=%r' % (key, value)
|
|
|
2501 |
for key, value in self.__dict__.iteritems()]
|
|
|
2502 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2503 |
|
|
|
2504 |
def __eq__(self, other):
|
|
|
2505 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2506 |
|
|
|
2507 |
def __ne__(self, other):
|
|
|
2508 |
return not (self == other)
|
|
|
2509 |
|
|
|
2510 |
class getPermissionsForRoleName_args:
|
|
|
2511 |
"""
|
|
|
2512 |
Attributes:
|
|
|
2513 |
- roleName
|
|
|
2514 |
"""
|
|
|
2515 |
|
|
|
2516 |
thrift_spec = (
|
|
|
2517 |
None, # 0
|
|
|
2518 |
(1, TType.STRING, 'roleName', None, None, ), # 1
|
|
|
2519 |
)
|
|
|
2520 |
|
|
|
2521 |
def __init__(self, roleName=None,):
|
|
|
2522 |
self.roleName = roleName
|
|
|
2523 |
|
|
|
2524 |
def read(self, iprot):
|
|
|
2525 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2526 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2527 |
return
|
|
|
2528 |
iprot.readStructBegin()
|
|
|
2529 |
while True:
|
|
|
2530 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2531 |
if ftype == TType.STOP:
|
|
|
2532 |
break
|
|
|
2533 |
if fid == 1:
|
|
|
2534 |
if ftype == TType.STRING:
|
|
|
2535 |
self.roleName = iprot.readString();
|
|
|
2536 |
else:
|
|
|
2537 |
iprot.skip(ftype)
|
|
|
2538 |
else:
|
|
|
2539 |
iprot.skip(ftype)
|
|
|
2540 |
iprot.readFieldEnd()
|
|
|
2541 |
iprot.readStructEnd()
|
|
|
2542 |
|
|
|
2543 |
def write(self, oprot):
|
|
|
2544 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2545 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2546 |
return
|
|
|
2547 |
oprot.writeStructBegin('getPermissionsForRoleName_args')
|
| 3431 |
rajveer |
2548 |
if self.roleName is not None:
|
| 3131 |
rajveer |
2549 |
oprot.writeFieldBegin('roleName', TType.STRING, 1)
|
|
|
2550 |
oprot.writeString(self.roleName)
|
|
|
2551 |
oprot.writeFieldEnd()
|
|
|
2552 |
oprot.writeFieldStop()
|
|
|
2553 |
oprot.writeStructEnd()
|
|
|
2554 |
|
| 3431 |
rajveer |
2555 |
def validate(self):
|
|
|
2556 |
return
|
|
|
2557 |
|
|
|
2558 |
|
| 3131 |
rajveer |
2559 |
def __repr__(self):
|
|
|
2560 |
L = ['%s=%r' % (key, value)
|
|
|
2561 |
for key, value in self.__dict__.iteritems()]
|
|
|
2562 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2563 |
|
|
|
2564 |
def __eq__(self, other):
|
|
|
2565 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2566 |
|
|
|
2567 |
def __ne__(self, other):
|
|
|
2568 |
return not (self == other)
|
|
|
2569 |
|
|
|
2570 |
class getPermissionsForRoleName_result:
|
|
|
2571 |
"""
|
|
|
2572 |
Attributes:
|
|
|
2573 |
- success
|
|
|
2574 |
"""
|
|
|
2575 |
|
|
|
2576 |
thrift_spec = (
|
|
|
2577 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
2578 |
)
|
|
|
2579 |
|
|
|
2580 |
def __init__(self, success=None,):
|
|
|
2581 |
self.success = success
|
|
|
2582 |
|
|
|
2583 |
def read(self, iprot):
|
|
|
2584 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2585 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2586 |
return
|
|
|
2587 |
iprot.readStructBegin()
|
|
|
2588 |
while True:
|
|
|
2589 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2590 |
if ftype == TType.STOP:
|
|
|
2591 |
break
|
|
|
2592 |
if fid == 0:
|
|
|
2593 |
if ftype == TType.LIST:
|
|
|
2594 |
self.success = []
|
| 14882 |
manish.sha |
2595 |
(_etype73, _size70) = iprot.readListBegin()
|
|
|
2596 |
for _i74 in xrange(_size70):
|
|
|
2597 |
_elem75 = iprot.readString();
|
|
|
2598 |
self.success.append(_elem75)
|
| 3131 |
rajveer |
2599 |
iprot.readListEnd()
|
|
|
2600 |
else:
|
|
|
2601 |
iprot.skip(ftype)
|
|
|
2602 |
else:
|
|
|
2603 |
iprot.skip(ftype)
|
|
|
2604 |
iprot.readFieldEnd()
|
|
|
2605 |
iprot.readStructEnd()
|
|
|
2606 |
|
|
|
2607 |
def write(self, oprot):
|
|
|
2608 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2609 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2610 |
return
|
|
|
2611 |
oprot.writeStructBegin('getPermissionsForRoleName_result')
|
| 3431 |
rajveer |
2612 |
if self.success is not None:
|
| 3131 |
rajveer |
2613 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2614 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
| 14882 |
manish.sha |
2615 |
for iter76 in self.success:
|
|
|
2616 |
oprot.writeString(iter76)
|
| 3131 |
rajveer |
2617 |
oprot.writeListEnd()
|
|
|
2618 |
oprot.writeFieldEnd()
|
|
|
2619 |
oprot.writeFieldStop()
|
|
|
2620 |
oprot.writeStructEnd()
|
|
|
2621 |
|
| 3431 |
rajveer |
2622 |
def validate(self):
|
|
|
2623 |
return
|
|
|
2624 |
|
|
|
2625 |
|
| 3131 |
rajveer |
2626 |
def __repr__(self):
|
|
|
2627 |
L = ['%s=%r' % (key, value)
|
|
|
2628 |
for key, value in self.__dict__.iteritems()]
|
|
|
2629 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2630 |
|
|
|
2631 |
def __eq__(self, other):
|
|
|
2632 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2633 |
|
|
|
2634 |
def __ne__(self, other):
|
|
|
2635 |
return not (self == other)
|
|
|
2636 |
|
| 3376 |
rajveer |
2637 |
class getLastEmailProcessedTimestamp_args:
|
| 3131 |
rajveer |
2638 |
|
| 3376 |
rajveer |
2639 |
thrift_spec = (
|
|
|
2640 |
)
|
|
|
2641 |
|
|
|
2642 |
def read(self, iprot):
|
|
|
2643 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2644 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2645 |
return
|
|
|
2646 |
iprot.readStructBegin()
|
|
|
2647 |
while True:
|
|
|
2648 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2649 |
if ftype == TType.STOP:
|
|
|
2650 |
break
|
|
|
2651 |
else:
|
|
|
2652 |
iprot.skip(ftype)
|
|
|
2653 |
iprot.readFieldEnd()
|
|
|
2654 |
iprot.readStructEnd()
|
|
|
2655 |
|
|
|
2656 |
def write(self, oprot):
|
|
|
2657 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2658 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2659 |
return
|
|
|
2660 |
oprot.writeStructBegin('getLastEmailProcessedTimestamp_args')
|
|
|
2661 |
oprot.writeFieldStop()
|
|
|
2662 |
oprot.writeStructEnd()
|
|
|
2663 |
|
| 3431 |
rajveer |
2664 |
def validate(self):
|
|
|
2665 |
return
|
|
|
2666 |
|
|
|
2667 |
|
| 3376 |
rajveer |
2668 |
def __repr__(self):
|
|
|
2669 |
L = ['%s=%r' % (key, value)
|
|
|
2670 |
for key, value in self.__dict__.iteritems()]
|
|
|
2671 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2672 |
|
|
|
2673 |
def __eq__(self, other):
|
|
|
2674 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2675 |
|
|
|
2676 |
def __ne__(self, other):
|
|
|
2677 |
return not (self == other)
|
|
|
2678 |
|
|
|
2679 |
class getLastEmailProcessedTimestamp_result:
|
|
|
2680 |
"""
|
|
|
2681 |
Attributes:
|
|
|
2682 |
- success
|
|
|
2683 |
"""
|
|
|
2684 |
|
|
|
2685 |
thrift_spec = (
|
|
|
2686 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
2687 |
)
|
|
|
2688 |
|
|
|
2689 |
def __init__(self, success=None,):
|
|
|
2690 |
self.success = success
|
|
|
2691 |
|
|
|
2692 |
def read(self, iprot):
|
|
|
2693 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2694 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2695 |
return
|
|
|
2696 |
iprot.readStructBegin()
|
|
|
2697 |
while True:
|
|
|
2698 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2699 |
if ftype == TType.STOP:
|
|
|
2700 |
break
|
|
|
2701 |
if fid == 0:
|
|
|
2702 |
if ftype == TType.I64:
|
|
|
2703 |
self.success = iprot.readI64();
|
|
|
2704 |
else:
|
|
|
2705 |
iprot.skip(ftype)
|
|
|
2706 |
else:
|
|
|
2707 |
iprot.skip(ftype)
|
|
|
2708 |
iprot.readFieldEnd()
|
|
|
2709 |
iprot.readStructEnd()
|
|
|
2710 |
|
|
|
2711 |
def write(self, oprot):
|
|
|
2712 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2713 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2714 |
return
|
|
|
2715 |
oprot.writeStructBegin('getLastEmailProcessedTimestamp_result')
|
| 3431 |
rajveer |
2716 |
if self.success is not None:
|
| 3376 |
rajveer |
2717 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2718 |
oprot.writeI64(self.success)
|
|
|
2719 |
oprot.writeFieldEnd()
|
|
|
2720 |
oprot.writeFieldStop()
|
|
|
2721 |
oprot.writeStructEnd()
|
|
|
2722 |
|
| 3431 |
rajveer |
2723 |
def validate(self):
|
|
|
2724 |
return
|
|
|
2725 |
|
|
|
2726 |
|
| 3376 |
rajveer |
2727 |
def __repr__(self):
|
|
|
2728 |
L = ['%s=%r' % (key, value)
|
|
|
2729 |
for key, value in self.__dict__.iteritems()]
|
|
|
2730 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2731 |
|
|
|
2732 |
def __eq__(self, other):
|
|
|
2733 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2734 |
|
|
|
2735 |
def __ne__(self, other):
|
|
|
2736 |
return not (self == other)
|
|
|
2737 |
|
|
|
2738 |
class updateLastEmailProcessedTimestamp_args:
|
|
|
2739 |
"""
|
|
|
2740 |
Attributes:
|
|
|
2741 |
- timestamp
|
|
|
2742 |
"""
|
|
|
2743 |
|
|
|
2744 |
thrift_spec = (
|
|
|
2745 |
None, # 0
|
|
|
2746 |
(1, TType.I64, 'timestamp', None, None, ), # 1
|
|
|
2747 |
)
|
|
|
2748 |
|
|
|
2749 |
def __init__(self, timestamp=None,):
|
|
|
2750 |
self.timestamp = timestamp
|
|
|
2751 |
|
|
|
2752 |
def read(self, iprot):
|
|
|
2753 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2754 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2755 |
return
|
|
|
2756 |
iprot.readStructBegin()
|
|
|
2757 |
while True:
|
|
|
2758 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2759 |
if ftype == TType.STOP:
|
|
|
2760 |
break
|
|
|
2761 |
if fid == 1:
|
|
|
2762 |
if ftype == TType.I64:
|
|
|
2763 |
self.timestamp = iprot.readI64();
|
|
|
2764 |
else:
|
|
|
2765 |
iprot.skip(ftype)
|
|
|
2766 |
else:
|
|
|
2767 |
iprot.skip(ftype)
|
|
|
2768 |
iprot.readFieldEnd()
|
|
|
2769 |
iprot.readStructEnd()
|
|
|
2770 |
|
|
|
2771 |
def write(self, oprot):
|
|
|
2772 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2773 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2774 |
return
|
|
|
2775 |
oprot.writeStructBegin('updateLastEmailProcessedTimestamp_args')
|
| 3431 |
rajveer |
2776 |
if self.timestamp is not None:
|
| 3376 |
rajveer |
2777 |
oprot.writeFieldBegin('timestamp', TType.I64, 1)
|
|
|
2778 |
oprot.writeI64(self.timestamp)
|
|
|
2779 |
oprot.writeFieldEnd()
|
|
|
2780 |
oprot.writeFieldStop()
|
|
|
2781 |
oprot.writeStructEnd()
|
|
|
2782 |
|
| 3431 |
rajveer |
2783 |
def validate(self):
|
|
|
2784 |
return
|
|
|
2785 |
|
|
|
2786 |
|
| 3376 |
rajveer |
2787 |
def __repr__(self):
|
|
|
2788 |
L = ['%s=%r' % (key, value)
|
|
|
2789 |
for key, value in self.__dict__.iteritems()]
|
|
|
2790 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2791 |
|
|
|
2792 |
def __eq__(self, other):
|
|
|
2793 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2794 |
|
|
|
2795 |
def __ne__(self, other):
|
|
|
2796 |
return not (self == other)
|
|
|
2797 |
|
|
|
2798 |
class updateLastEmailProcessedTimestamp_result:
|
|
|
2799 |
|
|
|
2800 |
thrift_spec = (
|
|
|
2801 |
)
|
|
|
2802 |
|
|
|
2803 |
def read(self, iprot):
|
|
|
2804 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2805 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2806 |
return
|
|
|
2807 |
iprot.readStructBegin()
|
|
|
2808 |
while True:
|
|
|
2809 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2810 |
if ftype == TType.STOP:
|
|
|
2811 |
break
|
|
|
2812 |
else:
|
|
|
2813 |
iprot.skip(ftype)
|
|
|
2814 |
iprot.readFieldEnd()
|
|
|
2815 |
iprot.readStructEnd()
|
|
|
2816 |
|
|
|
2817 |
def write(self, oprot):
|
|
|
2818 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2819 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2820 |
return
|
|
|
2821 |
oprot.writeStructBegin('updateLastEmailProcessedTimestamp_result')
|
|
|
2822 |
oprot.writeFieldStop()
|
|
|
2823 |
oprot.writeStructEnd()
|
|
|
2824 |
|
| 3431 |
rajveer |
2825 |
def validate(self):
|
|
|
2826 |
return
|
|
|
2827 |
|
|
|
2828 |
|
| 3376 |
rajveer |
2829 |
def __repr__(self):
|
|
|
2830 |
L = ['%s=%r' % (key, value)
|
|
|
2831 |
for key, value in self.__dict__.iteritems()]
|
|
|
2832 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2833 |
|
|
|
2834 |
def __eq__(self, other):
|
|
|
2835 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2836 |
|
|
|
2837 |
def __ne__(self, other):
|
|
|
2838 |
return not (self == other)
|
| 4948 |
phani.kuma |
2839 |
|
|
|
2840 |
class changeAgentStatus_args:
|
|
|
2841 |
"""
|
|
|
2842 |
Attributes:
|
|
|
2843 |
- status
|
|
|
2844 |
- emailId
|
|
|
2845 |
"""
|
|
|
2846 |
|
|
|
2847 |
thrift_spec = (
|
|
|
2848 |
None, # 0
|
|
|
2849 |
(1, TType.BOOL, 'status', None, None, ), # 1
|
|
|
2850 |
(2, TType.STRING, 'emailId', None, None, ), # 2
|
|
|
2851 |
)
|
|
|
2852 |
|
|
|
2853 |
def __init__(self, status=None, emailId=None,):
|
|
|
2854 |
self.status = status
|
|
|
2855 |
self.emailId = emailId
|
|
|
2856 |
|
|
|
2857 |
def read(self, iprot):
|
|
|
2858 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2859 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2860 |
return
|
|
|
2861 |
iprot.readStructBegin()
|
|
|
2862 |
while True:
|
|
|
2863 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2864 |
if ftype == TType.STOP:
|
|
|
2865 |
break
|
|
|
2866 |
if fid == 1:
|
|
|
2867 |
if ftype == TType.BOOL:
|
|
|
2868 |
self.status = iprot.readBool();
|
|
|
2869 |
else:
|
|
|
2870 |
iprot.skip(ftype)
|
|
|
2871 |
elif fid == 2:
|
|
|
2872 |
if ftype == TType.STRING:
|
|
|
2873 |
self.emailId = iprot.readString();
|
|
|
2874 |
else:
|
|
|
2875 |
iprot.skip(ftype)
|
|
|
2876 |
else:
|
|
|
2877 |
iprot.skip(ftype)
|
|
|
2878 |
iprot.readFieldEnd()
|
|
|
2879 |
iprot.readStructEnd()
|
|
|
2880 |
|
|
|
2881 |
def write(self, oprot):
|
|
|
2882 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2883 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2884 |
return
|
|
|
2885 |
oprot.writeStructBegin('changeAgentStatus_args')
|
|
|
2886 |
if self.status is not None:
|
|
|
2887 |
oprot.writeFieldBegin('status', TType.BOOL, 1)
|
|
|
2888 |
oprot.writeBool(self.status)
|
|
|
2889 |
oprot.writeFieldEnd()
|
|
|
2890 |
if self.emailId is not None:
|
|
|
2891 |
oprot.writeFieldBegin('emailId', TType.STRING, 2)
|
|
|
2892 |
oprot.writeString(self.emailId)
|
|
|
2893 |
oprot.writeFieldEnd()
|
|
|
2894 |
oprot.writeFieldStop()
|
|
|
2895 |
oprot.writeStructEnd()
|
|
|
2896 |
|
|
|
2897 |
def validate(self):
|
|
|
2898 |
return
|
|
|
2899 |
|
|
|
2900 |
|
|
|
2901 |
def __repr__(self):
|
|
|
2902 |
L = ['%s=%r' % (key, value)
|
|
|
2903 |
for key, value in self.__dict__.iteritems()]
|
|
|
2904 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2905 |
|
|
|
2906 |
def __eq__(self, other):
|
|
|
2907 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2908 |
|
|
|
2909 |
def __ne__(self, other):
|
|
|
2910 |
return not (self == other)
|
|
|
2911 |
|
|
|
2912 |
class changeAgentStatus_result:
|
|
|
2913 |
|
|
|
2914 |
thrift_spec = (
|
|
|
2915 |
)
|
|
|
2916 |
|
|
|
2917 |
def read(self, iprot):
|
|
|
2918 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2919 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2920 |
return
|
|
|
2921 |
iprot.readStructBegin()
|
|
|
2922 |
while True:
|
|
|
2923 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2924 |
if ftype == TType.STOP:
|
|
|
2925 |
break
|
|
|
2926 |
else:
|
|
|
2927 |
iprot.skip(ftype)
|
|
|
2928 |
iprot.readFieldEnd()
|
|
|
2929 |
iprot.readStructEnd()
|
|
|
2930 |
|
|
|
2931 |
def write(self, oprot):
|
|
|
2932 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2933 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2934 |
return
|
|
|
2935 |
oprot.writeStructBegin('changeAgentStatus_result')
|
|
|
2936 |
oprot.writeFieldStop()
|
|
|
2937 |
oprot.writeStructEnd()
|
|
|
2938 |
|
|
|
2939 |
def validate(self):
|
|
|
2940 |
return
|
|
|
2941 |
|
|
|
2942 |
|
|
|
2943 |
def __repr__(self):
|
|
|
2944 |
L = ['%s=%r' % (key, value)
|
|
|
2945 |
for key, value in self.__dict__.iteritems()]
|
|
|
2946 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2947 |
|
|
|
2948 |
def __eq__(self, other):
|
|
|
2949 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2950 |
|
|
|
2951 |
def __ne__(self, other):
|
|
|
2952 |
return not (self == other)
|
|
|
2953 |
|
|
|
2954 |
class insertAgent_args:
|
|
|
2955 |
"""
|
|
|
2956 |
Attributes:
|
|
|
2957 |
- agent
|
|
|
2958 |
- role
|
|
|
2959 |
"""
|
|
|
2960 |
|
|
|
2961 |
thrift_spec = (
|
|
|
2962 |
None, # 0
|
|
|
2963 |
(1, TType.STRUCT, 'agent', (Agent, Agent.thrift_spec), None, ), # 1
|
|
|
2964 |
(2, TType.LIST, 'role', (TType.STRING,None), None, ), # 2
|
|
|
2965 |
)
|
|
|
2966 |
|
|
|
2967 |
def __init__(self, agent=None, role=None,):
|
|
|
2968 |
self.agent = agent
|
|
|
2969 |
self.role = role
|
|
|
2970 |
|
|
|
2971 |
def read(self, iprot):
|
|
|
2972 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2973 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2974 |
return
|
|
|
2975 |
iprot.readStructBegin()
|
|
|
2976 |
while True:
|
|
|
2977 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2978 |
if ftype == TType.STOP:
|
|
|
2979 |
break
|
|
|
2980 |
if fid == 1:
|
|
|
2981 |
if ftype == TType.STRUCT:
|
|
|
2982 |
self.agent = Agent()
|
|
|
2983 |
self.agent.read(iprot)
|
|
|
2984 |
else:
|
|
|
2985 |
iprot.skip(ftype)
|
|
|
2986 |
elif fid == 2:
|
|
|
2987 |
if ftype == TType.LIST:
|
|
|
2988 |
self.role = []
|
| 14882 |
manish.sha |
2989 |
(_etype80, _size77) = iprot.readListBegin()
|
|
|
2990 |
for _i81 in xrange(_size77):
|
|
|
2991 |
_elem82 = iprot.readString();
|
|
|
2992 |
self.role.append(_elem82)
|
| 4948 |
phani.kuma |
2993 |
iprot.readListEnd()
|
|
|
2994 |
else:
|
|
|
2995 |
iprot.skip(ftype)
|
|
|
2996 |
else:
|
|
|
2997 |
iprot.skip(ftype)
|
|
|
2998 |
iprot.readFieldEnd()
|
|
|
2999 |
iprot.readStructEnd()
|
|
|
3000 |
|
|
|
3001 |
def write(self, oprot):
|
|
|
3002 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3003 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3004 |
return
|
|
|
3005 |
oprot.writeStructBegin('insertAgent_args')
|
|
|
3006 |
if self.agent is not None:
|
|
|
3007 |
oprot.writeFieldBegin('agent', TType.STRUCT, 1)
|
|
|
3008 |
self.agent.write(oprot)
|
|
|
3009 |
oprot.writeFieldEnd()
|
|
|
3010 |
if self.role is not None:
|
|
|
3011 |
oprot.writeFieldBegin('role', TType.LIST, 2)
|
|
|
3012 |
oprot.writeListBegin(TType.STRING, len(self.role))
|
| 14882 |
manish.sha |
3013 |
for iter83 in self.role:
|
|
|
3014 |
oprot.writeString(iter83)
|
| 4948 |
phani.kuma |
3015 |
oprot.writeListEnd()
|
|
|
3016 |
oprot.writeFieldEnd()
|
|
|
3017 |
oprot.writeFieldStop()
|
|
|
3018 |
oprot.writeStructEnd()
|
|
|
3019 |
|
|
|
3020 |
def validate(self):
|
|
|
3021 |
return
|
|
|
3022 |
|
|
|
3023 |
|
|
|
3024 |
def __repr__(self):
|
|
|
3025 |
L = ['%s=%r' % (key, value)
|
|
|
3026 |
for key, value in self.__dict__.iteritems()]
|
|
|
3027 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3028 |
|
|
|
3029 |
def __eq__(self, other):
|
|
|
3030 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3031 |
|
|
|
3032 |
def __ne__(self, other):
|
|
|
3033 |
return not (self == other)
|
|
|
3034 |
|
|
|
3035 |
class insertAgent_result:
|
|
|
3036 |
|
|
|
3037 |
thrift_spec = (
|
|
|
3038 |
)
|
|
|
3039 |
|
|
|
3040 |
def read(self, iprot):
|
|
|
3041 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3042 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3043 |
return
|
|
|
3044 |
iprot.readStructBegin()
|
|
|
3045 |
while True:
|
|
|
3046 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3047 |
if ftype == TType.STOP:
|
|
|
3048 |
break
|
|
|
3049 |
else:
|
|
|
3050 |
iprot.skip(ftype)
|
|
|
3051 |
iprot.readFieldEnd()
|
|
|
3052 |
iprot.readStructEnd()
|
|
|
3053 |
|
|
|
3054 |
def write(self, oprot):
|
|
|
3055 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3056 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3057 |
return
|
|
|
3058 |
oprot.writeStructBegin('insertAgent_result')
|
|
|
3059 |
oprot.writeFieldStop()
|
|
|
3060 |
oprot.writeStructEnd()
|
|
|
3061 |
|
|
|
3062 |
def validate(self):
|
|
|
3063 |
return
|
|
|
3064 |
|
|
|
3065 |
|
|
|
3066 |
def __repr__(self):
|
|
|
3067 |
L = ['%s=%r' % (key, value)
|
|
|
3068 |
for key, value in self.__dict__.iteritems()]
|
|
|
3069 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3070 |
|
|
|
3071 |
def __eq__(self, other):
|
|
|
3072 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3073 |
|
|
|
3074 |
def __ne__(self, other):
|
|
|
3075 |
return not (self == other)
|
| 5407 |
amar.kumar |
3076 |
|
|
|
3077 |
class changeAgentRole_args:
|
|
|
3078 |
"""
|
|
|
3079 |
Attributes:
|
|
|
3080 |
- id
|
|
|
3081 |
- role
|
|
|
3082 |
"""
|
|
|
3083 |
|
|
|
3084 |
thrift_spec = (
|
|
|
3085 |
None, # 0
|
|
|
3086 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
3087 |
(2, TType.LIST, 'role', (TType.STRING,None), None, ), # 2
|
|
|
3088 |
)
|
|
|
3089 |
|
|
|
3090 |
def __init__(self, id=None, role=None,):
|
|
|
3091 |
self.id = id
|
|
|
3092 |
self.role = role
|
|
|
3093 |
|
|
|
3094 |
def read(self, iprot):
|
|
|
3095 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3096 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3097 |
return
|
|
|
3098 |
iprot.readStructBegin()
|
|
|
3099 |
while True:
|
|
|
3100 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3101 |
if ftype == TType.STOP:
|
|
|
3102 |
break
|
|
|
3103 |
if fid == 1:
|
|
|
3104 |
if ftype == TType.I64:
|
|
|
3105 |
self.id = iprot.readI64();
|
|
|
3106 |
else:
|
|
|
3107 |
iprot.skip(ftype)
|
|
|
3108 |
elif fid == 2:
|
|
|
3109 |
if ftype == TType.LIST:
|
|
|
3110 |
self.role = []
|
| 14882 |
manish.sha |
3111 |
(_etype87, _size84) = iprot.readListBegin()
|
|
|
3112 |
for _i88 in xrange(_size84):
|
|
|
3113 |
_elem89 = iprot.readString();
|
|
|
3114 |
self.role.append(_elem89)
|
| 5407 |
amar.kumar |
3115 |
iprot.readListEnd()
|
|
|
3116 |
else:
|
|
|
3117 |
iprot.skip(ftype)
|
|
|
3118 |
else:
|
|
|
3119 |
iprot.skip(ftype)
|
|
|
3120 |
iprot.readFieldEnd()
|
|
|
3121 |
iprot.readStructEnd()
|
|
|
3122 |
|
|
|
3123 |
def write(self, oprot):
|
|
|
3124 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3125 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3126 |
return
|
|
|
3127 |
oprot.writeStructBegin('changeAgentRole_args')
|
|
|
3128 |
if self.id is not None:
|
|
|
3129 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3130 |
oprot.writeI64(self.id)
|
|
|
3131 |
oprot.writeFieldEnd()
|
|
|
3132 |
if self.role is not None:
|
|
|
3133 |
oprot.writeFieldBegin('role', TType.LIST, 2)
|
|
|
3134 |
oprot.writeListBegin(TType.STRING, len(self.role))
|
| 14882 |
manish.sha |
3135 |
for iter90 in self.role:
|
|
|
3136 |
oprot.writeString(iter90)
|
| 5407 |
amar.kumar |
3137 |
oprot.writeListEnd()
|
|
|
3138 |
oprot.writeFieldEnd()
|
|
|
3139 |
oprot.writeFieldStop()
|
|
|
3140 |
oprot.writeStructEnd()
|
|
|
3141 |
|
|
|
3142 |
def validate(self):
|
|
|
3143 |
return
|
|
|
3144 |
|
|
|
3145 |
|
|
|
3146 |
def __repr__(self):
|
|
|
3147 |
L = ['%s=%r' % (key, value)
|
|
|
3148 |
for key, value in self.__dict__.iteritems()]
|
|
|
3149 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3150 |
|
|
|
3151 |
def __eq__(self, other):
|
|
|
3152 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3153 |
|
|
|
3154 |
def __ne__(self, other):
|
|
|
3155 |
return not (self == other)
|
|
|
3156 |
|
|
|
3157 |
class changeAgentRole_result:
|
|
|
3158 |
|
|
|
3159 |
thrift_spec = (
|
|
|
3160 |
)
|
|
|
3161 |
|
|
|
3162 |
def read(self, iprot):
|
|
|
3163 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3164 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3165 |
return
|
|
|
3166 |
iprot.readStructBegin()
|
|
|
3167 |
while True:
|
|
|
3168 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3169 |
if ftype == TType.STOP:
|
|
|
3170 |
break
|
|
|
3171 |
else:
|
|
|
3172 |
iprot.skip(ftype)
|
|
|
3173 |
iprot.readFieldEnd()
|
|
|
3174 |
iprot.readStructEnd()
|
|
|
3175 |
|
|
|
3176 |
def write(self, oprot):
|
|
|
3177 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3178 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3179 |
return
|
|
|
3180 |
oprot.writeStructBegin('changeAgentRole_result')
|
|
|
3181 |
oprot.writeFieldStop()
|
|
|
3182 |
oprot.writeStructEnd()
|
|
|
3183 |
|
|
|
3184 |
def validate(self):
|
|
|
3185 |
return
|
|
|
3186 |
|
|
|
3187 |
|
|
|
3188 |
def __repr__(self):
|
|
|
3189 |
L = ['%s=%r' % (key, value)
|
|
|
3190 |
for key, value in self.__dict__.iteritems()]
|
|
|
3191 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3192 |
|
|
|
3193 |
def __eq__(self, other):
|
|
|
3194 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3195 |
|
|
|
3196 |
def __ne__(self, other):
|
|
|
3197 |
return not (self == other)
|
|
|
3198 |
|
|
|
3199 |
class getOpenTicketCountForAgent_args:
|
|
|
3200 |
"""
|
|
|
3201 |
Attributes:
|
|
|
3202 |
- agentId
|
|
|
3203 |
"""
|
|
|
3204 |
|
|
|
3205 |
thrift_spec = (
|
|
|
3206 |
None, # 0
|
|
|
3207 |
(1, TType.I64, 'agentId', None, None, ), # 1
|
|
|
3208 |
)
|
|
|
3209 |
|
|
|
3210 |
def __init__(self, agentId=None,):
|
|
|
3211 |
self.agentId = agentId
|
|
|
3212 |
|
|
|
3213 |
def read(self, iprot):
|
|
|
3214 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3215 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3216 |
return
|
|
|
3217 |
iprot.readStructBegin()
|
|
|
3218 |
while True:
|
|
|
3219 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3220 |
if ftype == TType.STOP:
|
|
|
3221 |
break
|
|
|
3222 |
if fid == 1:
|
|
|
3223 |
if ftype == TType.I64:
|
|
|
3224 |
self.agentId = iprot.readI64();
|
|
|
3225 |
else:
|
|
|
3226 |
iprot.skip(ftype)
|
|
|
3227 |
else:
|
|
|
3228 |
iprot.skip(ftype)
|
|
|
3229 |
iprot.readFieldEnd()
|
|
|
3230 |
iprot.readStructEnd()
|
|
|
3231 |
|
|
|
3232 |
def write(self, oprot):
|
|
|
3233 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3234 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3235 |
return
|
|
|
3236 |
oprot.writeStructBegin('getOpenTicketCountForAgent_args')
|
|
|
3237 |
if self.agentId is not None:
|
|
|
3238 |
oprot.writeFieldBegin('agentId', TType.I64, 1)
|
|
|
3239 |
oprot.writeI64(self.agentId)
|
|
|
3240 |
oprot.writeFieldEnd()
|
|
|
3241 |
oprot.writeFieldStop()
|
|
|
3242 |
oprot.writeStructEnd()
|
|
|
3243 |
|
|
|
3244 |
def validate(self):
|
|
|
3245 |
return
|
|
|
3246 |
|
|
|
3247 |
|
|
|
3248 |
def __repr__(self):
|
|
|
3249 |
L = ['%s=%r' % (key, value)
|
|
|
3250 |
for key, value in self.__dict__.iteritems()]
|
|
|
3251 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3252 |
|
|
|
3253 |
def __eq__(self, other):
|
|
|
3254 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3255 |
|
|
|
3256 |
def __ne__(self, other):
|
|
|
3257 |
return not (self == other)
|
|
|
3258 |
|
|
|
3259 |
class getOpenTicketCountForAgent_result:
|
|
|
3260 |
"""
|
|
|
3261 |
Attributes:
|
|
|
3262 |
- success
|
|
|
3263 |
"""
|
|
|
3264 |
|
|
|
3265 |
thrift_spec = (
|
|
|
3266 |
(0, TType.I32, 'success', None, None, ), # 0
|
|
|
3267 |
)
|
|
|
3268 |
|
|
|
3269 |
def __init__(self, success=None,):
|
|
|
3270 |
self.success = success
|
|
|
3271 |
|
|
|
3272 |
def read(self, iprot):
|
|
|
3273 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3274 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3275 |
return
|
|
|
3276 |
iprot.readStructBegin()
|
|
|
3277 |
while True:
|
|
|
3278 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3279 |
if ftype == TType.STOP:
|
|
|
3280 |
break
|
|
|
3281 |
if fid == 0:
|
|
|
3282 |
if ftype == TType.I32:
|
|
|
3283 |
self.success = iprot.readI32();
|
|
|
3284 |
else:
|
|
|
3285 |
iprot.skip(ftype)
|
|
|
3286 |
else:
|
|
|
3287 |
iprot.skip(ftype)
|
|
|
3288 |
iprot.readFieldEnd()
|
|
|
3289 |
iprot.readStructEnd()
|
|
|
3290 |
|
|
|
3291 |
def write(self, oprot):
|
|
|
3292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3294 |
return
|
|
|
3295 |
oprot.writeStructBegin('getOpenTicketCountForAgent_result')
|
|
|
3296 |
if self.success is not None:
|
|
|
3297 |
oprot.writeFieldBegin('success', TType.I32, 0)
|
|
|
3298 |
oprot.writeI32(self.success)
|
|
|
3299 |
oprot.writeFieldEnd()
|
|
|
3300 |
oprot.writeFieldStop()
|
|
|
3301 |
oprot.writeStructEnd()
|
|
|
3302 |
|
|
|
3303 |
def validate(self):
|
|
|
3304 |
return
|
|
|
3305 |
|
|
|
3306 |
|
|
|
3307 |
def __repr__(self):
|
|
|
3308 |
L = ['%s=%r' % (key, value)
|
|
|
3309 |
for key, value in self.__dict__.iteritems()]
|
|
|
3310 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3311 |
|
|
|
3312 |
def __eq__(self, other):
|
|
|
3313 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3314 |
|
|
|
3315 |
def __ne__(self, other):
|
|
|
3316 |
return not (self == other)
|
| 6104 |
rajveer |
3317 |
|
|
|
3318 |
class getOpenTicketsMap_args:
|
|
|
3319 |
|
|
|
3320 |
thrift_spec = (
|
|
|
3321 |
)
|
|
|
3322 |
|
|
|
3323 |
def read(self, iprot):
|
|
|
3324 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3325 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3326 |
return
|
|
|
3327 |
iprot.readStructBegin()
|
|
|
3328 |
while True:
|
|
|
3329 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3330 |
if ftype == TType.STOP:
|
|
|
3331 |
break
|
|
|
3332 |
else:
|
|
|
3333 |
iprot.skip(ftype)
|
|
|
3334 |
iprot.readFieldEnd()
|
|
|
3335 |
iprot.readStructEnd()
|
|
|
3336 |
|
|
|
3337 |
def write(self, oprot):
|
|
|
3338 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3339 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3340 |
return
|
|
|
3341 |
oprot.writeStructBegin('getOpenTicketsMap_args')
|
|
|
3342 |
oprot.writeFieldStop()
|
|
|
3343 |
oprot.writeStructEnd()
|
|
|
3344 |
|
|
|
3345 |
def validate(self):
|
|
|
3346 |
return
|
|
|
3347 |
|
|
|
3348 |
|
|
|
3349 |
def __repr__(self):
|
|
|
3350 |
L = ['%s=%r' % (key, value)
|
|
|
3351 |
for key, value in self.__dict__.iteritems()]
|
|
|
3352 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3353 |
|
|
|
3354 |
def __eq__(self, other):
|
|
|
3355 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3356 |
|
|
|
3357 |
def __ne__(self, other):
|
|
|
3358 |
return not (self == other)
|
|
|
3359 |
|
|
|
3360 |
class getOpenTicketsMap_result:
|
|
|
3361 |
"""
|
|
|
3362 |
Attributes:
|
|
|
3363 |
- success
|
|
|
3364 |
"""
|
|
|
3365 |
|
|
|
3366 |
thrift_spec = (
|
|
|
3367 |
(0, TType.MAP, 'success', (TType.STRING,None,TType.I64,None), None, ), # 0
|
|
|
3368 |
)
|
|
|
3369 |
|
|
|
3370 |
def __init__(self, success=None,):
|
|
|
3371 |
self.success = success
|
|
|
3372 |
|
|
|
3373 |
def read(self, iprot):
|
|
|
3374 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3375 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3376 |
return
|
|
|
3377 |
iprot.readStructBegin()
|
|
|
3378 |
while True:
|
|
|
3379 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3380 |
if ftype == TType.STOP:
|
|
|
3381 |
break
|
|
|
3382 |
if fid == 0:
|
|
|
3383 |
if ftype == TType.MAP:
|
|
|
3384 |
self.success = {}
|
| 14882 |
manish.sha |
3385 |
(_ktype92, _vtype93, _size91 ) = iprot.readMapBegin()
|
|
|
3386 |
for _i95 in xrange(_size91):
|
|
|
3387 |
_key96 = iprot.readString();
|
|
|
3388 |
_val97 = iprot.readI64();
|
|
|
3389 |
self.success[_key96] = _val97
|
| 6104 |
rajveer |
3390 |
iprot.readMapEnd()
|
|
|
3391 |
else:
|
|
|
3392 |
iprot.skip(ftype)
|
|
|
3393 |
else:
|
|
|
3394 |
iprot.skip(ftype)
|
|
|
3395 |
iprot.readFieldEnd()
|
|
|
3396 |
iprot.readStructEnd()
|
|
|
3397 |
|
|
|
3398 |
def write(self, oprot):
|
|
|
3399 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3400 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3401 |
return
|
|
|
3402 |
oprot.writeStructBegin('getOpenTicketsMap_result')
|
|
|
3403 |
if self.success is not None:
|
|
|
3404 |
oprot.writeFieldBegin('success', TType.MAP, 0)
|
|
|
3405 |
oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success))
|
| 14882 |
manish.sha |
3406 |
for kiter98,viter99 in self.success.items():
|
|
|
3407 |
oprot.writeString(kiter98)
|
|
|
3408 |
oprot.writeI64(viter99)
|
| 6104 |
rajveer |
3409 |
oprot.writeMapEnd()
|
|
|
3410 |
oprot.writeFieldEnd()
|
|
|
3411 |
oprot.writeFieldStop()
|
|
|
3412 |
oprot.writeStructEnd()
|
|
|
3413 |
|
|
|
3414 |
def validate(self):
|
|
|
3415 |
return
|
|
|
3416 |
|
|
|
3417 |
|
|
|
3418 |
def __repr__(self):
|
|
|
3419 |
L = ['%s=%r' % (key, value)
|
|
|
3420 |
for key, value in self.__dict__.iteritems()]
|
|
|
3421 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3422 |
|
|
|
3423 |
def __eq__(self, other):
|
|
|
3424 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3425 |
|
|
|
3426 |
def __ne__(self, other):
|
|
|
3427 |
return not (self == other)
|
| 8369 |
manish.sha |
3428 |
|
|
|
3429 |
class getFedexReconciliationDataMap_args:
|
|
|
3430 |
"""
|
|
|
3431 |
Attributes:
|
|
|
3432 |
- order_ids
|
|
|
3433 |
- method_key
|
|
|
3434 |
"""
|
|
|
3435 |
|
|
|
3436 |
thrift_spec = None
|
|
|
3437 |
def __init__(self, order_ids=None, method_key=None,):
|
|
|
3438 |
self.order_ids = order_ids
|
|
|
3439 |
self.method_key = method_key
|
|
|
3440 |
|
|
|
3441 |
def read(self, iprot):
|
|
|
3442 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3443 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3444 |
return
|
|
|
3445 |
iprot.readStructBegin()
|
|
|
3446 |
while True:
|
|
|
3447 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3448 |
if ftype == TType.STOP:
|
|
|
3449 |
break
|
|
|
3450 |
if fid == 1:
|
|
|
3451 |
if ftype == TType.LIST:
|
|
|
3452 |
self.order_ids = []
|
| 14882 |
manish.sha |
3453 |
(_etype103, _size100) = iprot.readListBegin()
|
|
|
3454 |
for _i104 in xrange(_size100):
|
|
|
3455 |
_elem105 = iprot.readI64();
|
|
|
3456 |
self.order_ids.append(_elem105)
|
| 8369 |
manish.sha |
3457 |
iprot.readListEnd()
|
|
|
3458 |
else:
|
|
|
3459 |
iprot.skip(ftype)
|
|
|
3460 |
elif fid == -1:
|
|
|
3461 |
if ftype == TType.STRING:
|
|
|
3462 |
self.method_key = iprot.readString();
|
|
|
3463 |
else:
|
|
|
3464 |
iprot.skip(ftype)
|
|
|
3465 |
else:
|
|
|
3466 |
iprot.skip(ftype)
|
|
|
3467 |
iprot.readFieldEnd()
|
|
|
3468 |
iprot.readStructEnd()
|
|
|
3469 |
|
|
|
3470 |
def write(self, oprot):
|
|
|
3471 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3472 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3473 |
return
|
|
|
3474 |
oprot.writeStructBegin('getFedexReconciliationDataMap_args')
|
|
|
3475 |
if self.method_key is not None:
|
|
|
3476 |
oprot.writeFieldBegin('method_key', TType.STRING, -1)
|
|
|
3477 |
oprot.writeString(self.method_key)
|
|
|
3478 |
oprot.writeFieldEnd()
|
|
|
3479 |
if self.order_ids is not None:
|
|
|
3480 |
oprot.writeFieldBegin('order_ids', TType.LIST, 1)
|
|
|
3481 |
oprot.writeListBegin(TType.I64, len(self.order_ids))
|
| 14882 |
manish.sha |
3482 |
for iter106 in self.order_ids:
|
|
|
3483 |
oprot.writeI64(iter106)
|
| 8369 |
manish.sha |
3484 |
oprot.writeListEnd()
|
|
|
3485 |
oprot.writeFieldEnd()
|
|
|
3486 |
oprot.writeFieldStop()
|
|
|
3487 |
oprot.writeStructEnd()
|
|
|
3488 |
|
|
|
3489 |
def validate(self):
|
|
|
3490 |
return
|
|
|
3491 |
|
|
|
3492 |
|
|
|
3493 |
def __repr__(self):
|
|
|
3494 |
L = ['%s=%r' % (key, value)
|
|
|
3495 |
for key, value in self.__dict__.iteritems()]
|
|
|
3496 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3497 |
|
|
|
3498 |
def __eq__(self, other):
|
|
|
3499 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3500 |
|
|
|
3501 |
def __ne__(self, other):
|
|
|
3502 |
return not (self == other)
|
|
|
3503 |
|
|
|
3504 |
class getFedexReconciliationDataMap_result:
|
|
|
3505 |
"""
|
|
|
3506 |
Attributes:
|
|
|
3507 |
- success
|
|
|
3508 |
"""
|
|
|
3509 |
|
|
|
3510 |
thrift_spec = (
|
|
|
3511 |
(0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
|
|
|
3512 |
)
|
|
|
3513 |
|
|
|
3514 |
def __init__(self, success=None,):
|
|
|
3515 |
self.success = success
|
|
|
3516 |
|
|
|
3517 |
def read(self, iprot):
|
|
|
3518 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3519 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3520 |
return
|
|
|
3521 |
iprot.readStructBegin()
|
|
|
3522 |
while True:
|
|
|
3523 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3524 |
if ftype == TType.STOP:
|
|
|
3525 |
break
|
|
|
3526 |
if fid == 0:
|
|
|
3527 |
if ftype == TType.MAP:
|
|
|
3528 |
self.success = {}
|
| 14882 |
manish.sha |
3529 |
(_ktype108, _vtype109, _size107 ) = iprot.readMapBegin()
|
|
|
3530 |
for _i111 in xrange(_size107):
|
|
|
3531 |
_key112 = iprot.readString();
|
|
|
3532 |
_val113 = iprot.readString();
|
|
|
3533 |
self.success[_key112] = _val113
|
| 8369 |
manish.sha |
3534 |
iprot.readMapEnd()
|
|
|
3535 |
else:
|
|
|
3536 |
iprot.skip(ftype)
|
|
|
3537 |
else:
|
|
|
3538 |
iprot.skip(ftype)
|
|
|
3539 |
iprot.readFieldEnd()
|
|
|
3540 |
iprot.readStructEnd()
|
|
|
3541 |
|
|
|
3542 |
def write(self, oprot):
|
|
|
3543 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3544 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3545 |
return
|
|
|
3546 |
oprot.writeStructBegin('getFedexReconciliationDataMap_result')
|
|
|
3547 |
if self.success is not None:
|
|
|
3548 |
oprot.writeFieldBegin('success', TType.MAP, 0)
|
|
|
3549 |
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
|
| 14882 |
manish.sha |
3550 |
for kiter114,viter115 in self.success.items():
|
|
|
3551 |
oprot.writeString(kiter114)
|
|
|
3552 |
oprot.writeString(viter115)
|
| 8369 |
manish.sha |
3553 |
oprot.writeMapEnd()
|
|
|
3554 |
oprot.writeFieldEnd()
|
|
|
3555 |
oprot.writeFieldStop()
|
|
|
3556 |
oprot.writeStructEnd()
|
|
|
3557 |
|
|
|
3558 |
def validate(self):
|
|
|
3559 |
return
|
|
|
3560 |
|
|
|
3561 |
|
|
|
3562 |
def __repr__(self):
|
|
|
3563 |
L = ['%s=%r' % (key, value)
|
|
|
3564 |
for key, value in self.__dict__.iteritems()]
|
|
|
3565 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3566 |
|
|
|
3567 |
def __eq__(self, other):
|
|
|
3568 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3569 |
|
|
|
3570 |
def __ne__(self, other):
|
|
|
3571 |
return not (self == other)
|