| 412 |
ashish |
1 |
#
|
|
|
2 |
# Autogenerated by Thrift
|
|
|
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
|
|
11 |
from thrift.protocol import TBinaryProtocol
|
|
|
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
| 765 |
rajveer |
19 |
def closeSession(self, ):
|
|
|
20 |
"""
|
|
|
21 |
For closing the open session in sqlalchemy
|
|
|
22 |
"""
|
|
|
23 |
pass
|
|
|
24 |
|
| 669 |
chandransh |
25 |
def getProvider(self, providerId):
|
|
|
26 |
"""
|
|
|
27 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
|
|
28 |
|
|
|
29 |
Parameters:
|
|
|
30 |
- providerId
|
|
|
31 |
"""
|
|
|
32 |
pass
|
|
|
33 |
|
| 675 |
chandransh |
34 |
def getAllProviders(self, ):
|
|
|
35 |
"""
|
|
|
36 |
Returns a list containing all the providers.
|
|
|
37 |
"""
|
|
|
38 |
pass
|
|
|
39 |
|
| 647 |
chandransh |
40 |
def getLogisticsEstimation(self, itemId, destination_pin):
|
| 483 |
rajveer |
41 |
"""
|
| 647 |
chandransh |
42 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
43 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
44 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
45 |
|
| 483 |
rajveer |
46 |
Parameters:
|
| 647 |
chandransh |
47 |
- itemId
|
|
|
48 |
- destination_pin
|
| 483 |
rajveer |
49 |
"""
|
|
|
50 |
pass
|
|
|
51 |
|
| 647 |
chandransh |
52 |
def getLogisticsInfo(self, destination_pincode, item_id):
|
| 472 |
rajveer |
53 |
"""
|
| 647 |
chandransh |
54 |
Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
55 |
|
| 472 |
rajveer |
56 |
Parameters:
|
| 647 |
chandransh |
57 |
- destination_pincode
|
|
|
58 |
- item_id
|
| 472 |
rajveer |
59 |
"""
|
|
|
60 |
pass
|
|
|
61 |
|
| 647 |
chandransh |
62 |
def getEmptyAWB(self, providerId):
|
| 412 |
ashish |
63 |
"""
|
| 647 |
chandransh |
64 |
Returns an unused AWB number for the given provider.
|
|
|
65 |
|
| 412 |
ashish |
66 |
Parameters:
|
| 647 |
chandransh |
67 |
- providerId
|
| 412 |
ashish |
68 |
"""
|
|
|
69 |
pass
|
|
|
70 |
|
| 647 |
chandransh |
71 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
72 |
"""
|
| 647 |
chandransh |
73 |
Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
74 |
|
| 412 |
ashish |
75 |
Parameters:
|
|
|
76 |
- awb
|
| 647 |
chandransh |
77 |
- providerId
|
| 412 |
ashish |
78 |
"""
|
|
|
79 |
pass
|
|
|
80 |
|
| 732 |
chandransh |
81 |
def getDestinationCode(self, providerId, pinCode):
|
|
|
82 |
"""
|
|
|
83 |
Returns the short three letter code of a pincode for the given provider.
|
|
|
84 |
Raises an exception if the pin code is not serviced by the given provider.
|
|
|
85 |
|
|
|
86 |
Parameters:
|
|
|
87 |
- providerId
|
|
|
88 |
- pinCode
|
|
|
89 |
"""
|
|
|
90 |
pass
|
| 412 |
ashish |
91 |
|
| 1137 |
chandransh |
92 |
def getFreeAwbCount(self, providerId):
|
|
|
93 |
"""
|
|
|
94 |
Returns the number of unused AWB numbers for the given provider
|
|
|
95 |
|
|
|
96 |
Parameters:
|
|
|
97 |
- providerId
|
|
|
98 |
"""
|
|
|
99 |
pass
|
| 732 |
chandransh |
100 |
|
| 1137 |
chandransh |
101 |
|
| 412 |
ashish |
102 |
class Client(Iface):
|
|
|
103 |
def __init__(self, iprot, oprot=None):
|
|
|
104 |
self._iprot = self._oprot = iprot
|
|
|
105 |
if oprot != None:
|
|
|
106 |
self._oprot = oprot
|
|
|
107 |
self._seqid = 0
|
|
|
108 |
|
| 765 |
rajveer |
109 |
def closeSession(self, ):
|
|
|
110 |
"""
|
|
|
111 |
For closing the open session in sqlalchemy
|
|
|
112 |
"""
|
|
|
113 |
self.send_closeSession()
|
|
|
114 |
self.recv_closeSession()
|
|
|
115 |
|
|
|
116 |
def send_closeSession(self, ):
|
|
|
117 |
self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
|
|
|
118 |
args = closeSession_args()
|
|
|
119 |
args.write(self._oprot)
|
|
|
120 |
self._oprot.writeMessageEnd()
|
|
|
121 |
self._oprot.trans.flush()
|
|
|
122 |
|
|
|
123 |
def recv_closeSession(self, ):
|
|
|
124 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
125 |
if mtype == TMessageType.EXCEPTION:
|
|
|
126 |
x = TApplicationException()
|
|
|
127 |
x.read(self._iprot)
|
|
|
128 |
self._iprot.readMessageEnd()
|
|
|
129 |
raise x
|
|
|
130 |
result = closeSession_result()
|
|
|
131 |
result.read(self._iprot)
|
|
|
132 |
self._iprot.readMessageEnd()
|
|
|
133 |
return
|
|
|
134 |
|
| 669 |
chandransh |
135 |
def getProvider(self, providerId):
|
|
|
136 |
"""
|
|
|
137 |
Returns a provider for a given provider ID. Throws an exception if none found.
|
|
|
138 |
|
|
|
139 |
Parameters:
|
|
|
140 |
- providerId
|
|
|
141 |
"""
|
|
|
142 |
self.send_getProvider(providerId)
|
|
|
143 |
return self.recv_getProvider()
|
|
|
144 |
|
|
|
145 |
def send_getProvider(self, providerId):
|
|
|
146 |
self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
|
|
|
147 |
args = getProvider_args()
|
|
|
148 |
args.providerId = providerId
|
|
|
149 |
args.write(self._oprot)
|
|
|
150 |
self._oprot.writeMessageEnd()
|
|
|
151 |
self._oprot.trans.flush()
|
|
|
152 |
|
|
|
153 |
def recv_getProvider(self, ):
|
|
|
154 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
155 |
if mtype == TMessageType.EXCEPTION:
|
|
|
156 |
x = TApplicationException()
|
|
|
157 |
x.read(self._iprot)
|
|
|
158 |
self._iprot.readMessageEnd()
|
|
|
159 |
raise x
|
|
|
160 |
result = getProvider_result()
|
|
|
161 |
result.read(self._iprot)
|
|
|
162 |
self._iprot.readMessageEnd()
|
|
|
163 |
if result.success != None:
|
|
|
164 |
return result.success
|
|
|
165 |
if result.lse != None:
|
|
|
166 |
raise result.lse
|
|
|
167 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
|
|
168 |
|
| 675 |
chandransh |
169 |
def getAllProviders(self, ):
|
|
|
170 |
"""
|
|
|
171 |
Returns a list containing all the providers.
|
|
|
172 |
"""
|
|
|
173 |
self.send_getAllProviders()
|
|
|
174 |
return self.recv_getAllProviders()
|
|
|
175 |
|
|
|
176 |
def send_getAllProviders(self, ):
|
|
|
177 |
self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
|
|
|
178 |
args = getAllProviders_args()
|
|
|
179 |
args.write(self._oprot)
|
|
|
180 |
self._oprot.writeMessageEnd()
|
|
|
181 |
self._oprot.trans.flush()
|
|
|
182 |
|
|
|
183 |
def recv_getAllProviders(self, ):
|
|
|
184 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
185 |
if mtype == TMessageType.EXCEPTION:
|
|
|
186 |
x = TApplicationException()
|
|
|
187 |
x.read(self._iprot)
|
|
|
188 |
self._iprot.readMessageEnd()
|
|
|
189 |
raise x
|
|
|
190 |
result = getAllProviders_result()
|
|
|
191 |
result.read(self._iprot)
|
|
|
192 |
self._iprot.readMessageEnd()
|
|
|
193 |
if result.success != None:
|
|
|
194 |
return result.success
|
|
|
195 |
if result.lse != None:
|
|
|
196 |
raise result.lse
|
|
|
197 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
|
|
198 |
|
| 647 |
chandransh |
199 |
def getLogisticsEstimation(self, itemId, destination_pin):
|
| 483 |
rajveer |
200 |
"""
|
| 647 |
chandransh |
201 |
Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
202 |
Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
203 |
is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
204 |
|
| 483 |
rajveer |
205 |
Parameters:
|
| 647 |
chandransh |
206 |
- itemId
|
|
|
207 |
- destination_pin
|
| 483 |
rajveer |
208 |
"""
|
| 647 |
chandransh |
209 |
self.send_getLogisticsEstimation(itemId, destination_pin)
|
|
|
210 |
return self.recv_getLogisticsEstimation()
|
| 483 |
rajveer |
211 |
|
| 647 |
chandransh |
212 |
def send_getLogisticsEstimation(self, itemId, destination_pin):
|
|
|
213 |
self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
|
|
|
214 |
args = getLogisticsEstimation_args()
|
|
|
215 |
args.itemId = itemId
|
|
|
216 |
args.destination_pin = destination_pin
|
| 483 |
rajveer |
217 |
args.write(self._oprot)
|
|
|
218 |
self._oprot.writeMessageEnd()
|
|
|
219 |
self._oprot.trans.flush()
|
|
|
220 |
|
| 647 |
chandransh |
221 |
def recv_getLogisticsEstimation(self, ):
|
| 483 |
rajveer |
222 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
223 |
if mtype == TMessageType.EXCEPTION:
|
|
|
224 |
x = TApplicationException()
|
|
|
225 |
x.read(self._iprot)
|
|
|
226 |
self._iprot.readMessageEnd()
|
|
|
227 |
raise x
|
| 647 |
chandransh |
228 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
229 |
result.read(self._iprot)
|
|
|
230 |
self._iprot.readMessageEnd()
|
|
|
231 |
if result.success != None:
|
|
|
232 |
return result.success
|
|
|
233 |
if result.se != None:
|
|
|
234 |
raise result.se
|
| 647 |
chandransh |
235 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 483 |
rajveer |
236 |
|
| 647 |
chandransh |
237 |
def getLogisticsInfo(self, destination_pincode, item_id):
|
| 472 |
rajveer |
238 |
"""
|
| 647 |
chandransh |
239 |
Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
240 |
|
| 472 |
rajveer |
241 |
Parameters:
|
| 647 |
chandransh |
242 |
- destination_pincode
|
|
|
243 |
- item_id
|
| 472 |
rajveer |
244 |
"""
|
| 647 |
chandransh |
245 |
self.send_getLogisticsInfo(destination_pincode, item_id)
|
|
|
246 |
return self.recv_getLogisticsInfo()
|
| 472 |
rajveer |
247 |
|
| 647 |
chandransh |
248 |
def send_getLogisticsInfo(self, destination_pincode, item_id):
|
|
|
249 |
self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
|
|
|
250 |
args = getLogisticsInfo_args()
|
|
|
251 |
args.destination_pincode = destination_pincode
|
|
|
252 |
args.item_id = item_id
|
| 472 |
rajveer |
253 |
args.write(self._oprot)
|
|
|
254 |
self._oprot.writeMessageEnd()
|
|
|
255 |
self._oprot.trans.flush()
|
|
|
256 |
|
| 647 |
chandransh |
257 |
def recv_getLogisticsInfo(self, ):
|
| 472 |
rajveer |
258 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
259 |
if mtype == TMessageType.EXCEPTION:
|
|
|
260 |
x = TApplicationException()
|
|
|
261 |
x.read(self._iprot)
|
|
|
262 |
self._iprot.readMessageEnd()
|
|
|
263 |
raise x
|
| 647 |
chandransh |
264 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
265 |
result.read(self._iprot)
|
|
|
266 |
self._iprot.readMessageEnd()
|
|
|
267 |
if result.success != None:
|
|
|
268 |
return result.success
|
|
|
269 |
if result.se != None:
|
|
|
270 |
raise result.se
|
| 647 |
chandransh |
271 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 472 |
rajveer |
272 |
|
| 647 |
chandransh |
273 |
def getEmptyAWB(self, providerId):
|
| 412 |
ashish |
274 |
"""
|
| 647 |
chandransh |
275 |
Returns an unused AWB number for the given provider.
|
|
|
276 |
|
| 412 |
ashish |
277 |
Parameters:
|
| 647 |
chandransh |
278 |
- providerId
|
| 412 |
ashish |
279 |
"""
|
| 647 |
chandransh |
280 |
self.send_getEmptyAWB(providerId)
|
| 412 |
ashish |
281 |
return self.recv_getEmptyAWB()
|
|
|
282 |
|
| 647 |
chandransh |
283 |
def send_getEmptyAWB(self, providerId):
|
| 412 |
ashish |
284 |
self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
|
|
|
285 |
args = getEmptyAWB_args()
|
| 647 |
chandransh |
286 |
args.providerId = providerId
|
| 412 |
ashish |
287 |
args.write(self._oprot)
|
|
|
288 |
self._oprot.writeMessageEnd()
|
|
|
289 |
self._oprot.trans.flush()
|
|
|
290 |
|
|
|
291 |
def recv_getEmptyAWB(self, ):
|
|
|
292 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
293 |
if mtype == TMessageType.EXCEPTION:
|
|
|
294 |
x = TApplicationException()
|
|
|
295 |
x.read(self._iprot)
|
|
|
296 |
self._iprot.readMessageEnd()
|
|
|
297 |
raise x
|
|
|
298 |
result = getEmptyAWB_result()
|
|
|
299 |
result.read(self._iprot)
|
|
|
300 |
self._iprot.readMessageEnd()
|
|
|
301 |
if result.success != None:
|
|
|
302 |
return result.success
|
| 647 |
chandransh |
303 |
if result.se != None:
|
|
|
304 |
raise result.se
|
| 412 |
ashish |
305 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
|
|
306 |
|
| 647 |
chandransh |
307 |
def getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
308 |
"""
|
| 647 |
chandransh |
309 |
Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
310 |
|
| 412 |
ashish |
311 |
Parameters:
|
|
|
312 |
- awb
|
| 647 |
chandransh |
313 |
- providerId
|
| 412 |
ashish |
314 |
"""
|
| 647 |
chandransh |
315 |
self.send_getShipmentInfo(awb, providerId)
|
| 412 |
ashish |
316 |
return self.recv_getShipmentInfo()
|
|
|
317 |
|
| 647 |
chandransh |
318 |
def send_getShipmentInfo(self, awb, providerId):
|
| 412 |
ashish |
319 |
self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
|
|
|
320 |
args = getShipmentInfo_args()
|
|
|
321 |
args.awb = awb
|
| 647 |
chandransh |
322 |
args.providerId = providerId
|
| 412 |
ashish |
323 |
args.write(self._oprot)
|
|
|
324 |
self._oprot.writeMessageEnd()
|
|
|
325 |
self._oprot.trans.flush()
|
|
|
326 |
|
|
|
327 |
def recv_getShipmentInfo(self, ):
|
|
|
328 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
329 |
if mtype == TMessageType.EXCEPTION:
|
|
|
330 |
x = TApplicationException()
|
|
|
331 |
x.read(self._iprot)
|
|
|
332 |
self._iprot.readMessageEnd()
|
|
|
333 |
raise x
|
|
|
334 |
result = getShipmentInfo_result()
|
|
|
335 |
result.read(self._iprot)
|
|
|
336 |
self._iprot.readMessageEnd()
|
|
|
337 |
if result.success != None:
|
|
|
338 |
return result.success
|
| 647 |
chandransh |
339 |
if result.se != None:
|
|
|
340 |
raise result.se
|
| 412 |
ashish |
341 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
|
|
342 |
|
| 732 |
chandransh |
343 |
def getDestinationCode(self, providerId, pinCode):
|
|
|
344 |
"""
|
|
|
345 |
Returns the short three letter code of a pincode for the given provider.
|
|
|
346 |
Raises an exception if the pin code is not serviced by the given provider.
|
|
|
347 |
|
|
|
348 |
Parameters:
|
|
|
349 |
- providerId
|
|
|
350 |
- pinCode
|
|
|
351 |
"""
|
|
|
352 |
self.send_getDestinationCode(providerId, pinCode)
|
|
|
353 |
return self.recv_getDestinationCode()
|
| 412 |
ashish |
354 |
|
| 732 |
chandransh |
355 |
def send_getDestinationCode(self, providerId, pinCode):
|
|
|
356 |
self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
|
|
|
357 |
args = getDestinationCode_args()
|
|
|
358 |
args.providerId = providerId
|
|
|
359 |
args.pinCode = pinCode
|
|
|
360 |
args.write(self._oprot)
|
|
|
361 |
self._oprot.writeMessageEnd()
|
|
|
362 |
self._oprot.trans.flush()
|
|
|
363 |
|
|
|
364 |
def recv_getDestinationCode(self, ):
|
|
|
365 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
366 |
if mtype == TMessageType.EXCEPTION:
|
|
|
367 |
x = TApplicationException()
|
|
|
368 |
x.read(self._iprot)
|
|
|
369 |
self._iprot.readMessageEnd()
|
|
|
370 |
raise x
|
|
|
371 |
result = getDestinationCode_result()
|
|
|
372 |
result.read(self._iprot)
|
|
|
373 |
self._iprot.readMessageEnd()
|
|
|
374 |
if result.success != None:
|
|
|
375 |
return result.success
|
|
|
376 |
if result.se != None:
|
|
|
377 |
raise result.se
|
|
|
378 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
|
|
379 |
|
| 1137 |
chandransh |
380 |
def getFreeAwbCount(self, providerId):
|
|
|
381 |
"""
|
|
|
382 |
Returns the number of unused AWB numbers for the given provider
|
|
|
383 |
|
|
|
384 |
Parameters:
|
|
|
385 |
- providerId
|
|
|
386 |
"""
|
|
|
387 |
self.send_getFreeAwbCount(providerId)
|
|
|
388 |
return self.recv_getFreeAwbCount()
|
| 732 |
chandransh |
389 |
|
| 1137 |
chandransh |
390 |
def send_getFreeAwbCount(self, providerId):
|
|
|
391 |
self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
|
|
|
392 |
args = getFreeAwbCount_args()
|
|
|
393 |
args.providerId = providerId
|
|
|
394 |
args.write(self._oprot)
|
|
|
395 |
self._oprot.writeMessageEnd()
|
|
|
396 |
self._oprot.trans.flush()
|
|
|
397 |
|
|
|
398 |
def recv_getFreeAwbCount(self, ):
|
|
|
399 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
400 |
if mtype == TMessageType.EXCEPTION:
|
|
|
401 |
x = TApplicationException()
|
|
|
402 |
x.read(self._iprot)
|
|
|
403 |
self._iprot.readMessageEnd()
|
|
|
404 |
raise x
|
|
|
405 |
result = getFreeAwbCount_result()
|
|
|
406 |
result.read(self._iprot)
|
|
|
407 |
self._iprot.readMessageEnd()
|
|
|
408 |
if result.success != None:
|
|
|
409 |
return result.success
|
|
|
410 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
|
|
411 |
|
|
|
412 |
|
| 412 |
ashish |
413 |
class Processor(Iface, TProcessor):
|
|
|
414 |
def __init__(self, handler):
|
|
|
415 |
self._handler = handler
|
|
|
416 |
self._processMap = {}
|
| 765 |
rajveer |
417 |
self._processMap["closeSession"] = Processor.process_closeSession
|
| 669 |
chandransh |
418 |
self._processMap["getProvider"] = Processor.process_getProvider
|
| 675 |
chandransh |
419 |
self._processMap["getAllProviders"] = Processor.process_getAllProviders
|
| 647 |
chandransh |
420 |
self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
|
| 483 |
rajveer |
421 |
self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
|
| 412 |
ashish |
422 |
self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
|
|
|
423 |
self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
|
| 732 |
chandransh |
424 |
self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
|
| 1137 |
chandransh |
425 |
self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
|
| 412 |
ashish |
426 |
|
|
|
427 |
def process(self, iprot, oprot):
|
|
|
428 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
429 |
if name not in self._processMap:
|
|
|
430 |
iprot.skip(TType.STRUCT)
|
|
|
431 |
iprot.readMessageEnd()
|
|
|
432 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
433 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
434 |
x.write(oprot)
|
|
|
435 |
oprot.writeMessageEnd()
|
|
|
436 |
oprot.trans.flush()
|
|
|
437 |
return
|
|
|
438 |
else:
|
|
|
439 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
440 |
return True
|
|
|
441 |
|
| 765 |
rajveer |
442 |
def process_closeSession(self, seqid, iprot, oprot):
|
|
|
443 |
args = closeSession_args()
|
|
|
444 |
args.read(iprot)
|
|
|
445 |
iprot.readMessageEnd()
|
|
|
446 |
result = closeSession_result()
|
|
|
447 |
self._handler.closeSession()
|
|
|
448 |
oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
|
|
|
449 |
result.write(oprot)
|
|
|
450 |
oprot.writeMessageEnd()
|
|
|
451 |
oprot.trans.flush()
|
|
|
452 |
|
| 669 |
chandransh |
453 |
def process_getProvider(self, seqid, iprot, oprot):
|
|
|
454 |
args = getProvider_args()
|
|
|
455 |
args.read(iprot)
|
|
|
456 |
iprot.readMessageEnd()
|
|
|
457 |
result = getProvider_result()
|
|
|
458 |
try:
|
|
|
459 |
result.success = self._handler.getProvider(args.providerId)
|
|
|
460 |
except LogisticsServiceException, lse:
|
|
|
461 |
result.lse = lse
|
|
|
462 |
oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
|
|
|
463 |
result.write(oprot)
|
|
|
464 |
oprot.writeMessageEnd()
|
|
|
465 |
oprot.trans.flush()
|
|
|
466 |
|
| 675 |
chandransh |
467 |
def process_getAllProviders(self, seqid, iprot, oprot):
|
|
|
468 |
args = getAllProviders_args()
|
|
|
469 |
args.read(iprot)
|
|
|
470 |
iprot.readMessageEnd()
|
|
|
471 |
result = getAllProviders_result()
|
|
|
472 |
try:
|
|
|
473 |
result.success = self._handler.getAllProviders()
|
|
|
474 |
except LogisticsServiceException, lse:
|
|
|
475 |
result.lse = lse
|
|
|
476 |
oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
|
|
|
477 |
result.write(oprot)
|
|
|
478 |
oprot.writeMessageEnd()
|
|
|
479 |
oprot.trans.flush()
|
|
|
480 |
|
| 647 |
chandransh |
481 |
def process_getLogisticsEstimation(self, seqid, iprot, oprot):
|
|
|
482 |
args = getLogisticsEstimation_args()
|
| 483 |
rajveer |
483 |
args.read(iprot)
|
|
|
484 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
485 |
result = getLogisticsEstimation_result()
|
| 483 |
rajveer |
486 |
try:
|
| 647 |
chandransh |
487 |
result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin)
|
| 483 |
rajveer |
488 |
except LogisticsServiceException, se:
|
|
|
489 |
result.se = se
|
| 647 |
chandransh |
490 |
oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
|
| 483 |
rajveer |
491 |
result.write(oprot)
|
|
|
492 |
oprot.writeMessageEnd()
|
|
|
493 |
oprot.trans.flush()
|
|
|
494 |
|
| 647 |
chandransh |
495 |
def process_getLogisticsInfo(self, seqid, iprot, oprot):
|
|
|
496 |
args = getLogisticsInfo_args()
|
| 472 |
rajveer |
497 |
args.read(iprot)
|
|
|
498 |
iprot.readMessageEnd()
|
| 647 |
chandransh |
499 |
result = getLogisticsInfo_result()
|
| 472 |
rajveer |
500 |
try:
|
| 647 |
chandransh |
501 |
result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id)
|
| 472 |
rajveer |
502 |
except LogisticsServiceException, se:
|
|
|
503 |
result.se = se
|
| 647 |
chandransh |
504 |
oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
|
| 472 |
rajveer |
505 |
result.write(oprot)
|
|
|
506 |
oprot.writeMessageEnd()
|
|
|
507 |
oprot.trans.flush()
|
|
|
508 |
|
| 412 |
ashish |
509 |
def process_getEmptyAWB(self, seqid, iprot, oprot):
|
|
|
510 |
args = getEmptyAWB_args()
|
|
|
511 |
args.read(iprot)
|
|
|
512 |
iprot.readMessageEnd()
|
|
|
513 |
result = getEmptyAWB_result()
|
| 647 |
chandransh |
514 |
try:
|
|
|
515 |
result.success = self._handler.getEmptyAWB(args.providerId)
|
|
|
516 |
except LogisticsServiceException, se:
|
|
|
517 |
result.se = se
|
| 412 |
ashish |
518 |
oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
|
|
|
519 |
result.write(oprot)
|
|
|
520 |
oprot.writeMessageEnd()
|
|
|
521 |
oprot.trans.flush()
|
|
|
522 |
|
|
|
523 |
def process_getShipmentInfo(self, seqid, iprot, oprot):
|
|
|
524 |
args = getShipmentInfo_args()
|
|
|
525 |
args.read(iprot)
|
|
|
526 |
iprot.readMessageEnd()
|
|
|
527 |
result = getShipmentInfo_result()
|
| 647 |
chandransh |
528 |
try:
|
|
|
529 |
result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
|
|
|
530 |
except LogisticsServiceException, se:
|
|
|
531 |
result.se = se
|
| 412 |
ashish |
532 |
oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
|
|
|
533 |
result.write(oprot)
|
|
|
534 |
oprot.writeMessageEnd()
|
|
|
535 |
oprot.trans.flush()
|
|
|
536 |
|
| 732 |
chandransh |
537 |
def process_getDestinationCode(self, seqid, iprot, oprot):
|
|
|
538 |
args = getDestinationCode_args()
|
|
|
539 |
args.read(iprot)
|
|
|
540 |
iprot.readMessageEnd()
|
|
|
541 |
result = getDestinationCode_result()
|
|
|
542 |
try:
|
|
|
543 |
result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
|
|
|
544 |
except LogisticsServiceException, se:
|
|
|
545 |
result.se = se
|
|
|
546 |
oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
|
|
|
547 |
result.write(oprot)
|
|
|
548 |
oprot.writeMessageEnd()
|
|
|
549 |
oprot.trans.flush()
|
| 412 |
ashish |
550 |
|
| 1137 |
chandransh |
551 |
def process_getFreeAwbCount(self, seqid, iprot, oprot):
|
|
|
552 |
args = getFreeAwbCount_args()
|
|
|
553 |
args.read(iprot)
|
|
|
554 |
iprot.readMessageEnd()
|
|
|
555 |
result = getFreeAwbCount_result()
|
|
|
556 |
result.success = self._handler.getFreeAwbCount(args.providerId)
|
|
|
557 |
oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
|
|
|
558 |
result.write(oprot)
|
|
|
559 |
oprot.writeMessageEnd()
|
|
|
560 |
oprot.trans.flush()
|
| 732 |
chandransh |
561 |
|
| 1137 |
chandransh |
562 |
|
| 412 |
ashish |
563 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
564 |
|
| 765 |
rajveer |
565 |
class closeSession_args:
|
|
|
566 |
|
|
|
567 |
thrift_spec = (
|
|
|
568 |
)
|
|
|
569 |
|
|
|
570 |
def read(self, iprot):
|
|
|
571 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
572 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
573 |
return
|
|
|
574 |
iprot.readStructBegin()
|
|
|
575 |
while True:
|
|
|
576 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
577 |
if ftype == TType.STOP:
|
|
|
578 |
break
|
|
|
579 |
else:
|
|
|
580 |
iprot.skip(ftype)
|
|
|
581 |
iprot.readFieldEnd()
|
|
|
582 |
iprot.readStructEnd()
|
|
|
583 |
|
|
|
584 |
def write(self, oprot):
|
|
|
585 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
586 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
587 |
return
|
|
|
588 |
oprot.writeStructBegin('closeSession_args')
|
|
|
589 |
oprot.writeFieldStop()
|
|
|
590 |
oprot.writeStructEnd()
|
|
|
591 |
|
|
|
592 |
def __repr__(self):
|
|
|
593 |
L = ['%s=%r' % (key, value)
|
|
|
594 |
for key, value in self.__dict__.iteritems()]
|
|
|
595 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
596 |
|
|
|
597 |
def __eq__(self, other):
|
|
|
598 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
599 |
|
|
|
600 |
def __ne__(self, other):
|
|
|
601 |
return not (self == other)
|
|
|
602 |
|
|
|
603 |
class closeSession_result:
|
|
|
604 |
|
|
|
605 |
thrift_spec = (
|
|
|
606 |
)
|
|
|
607 |
|
|
|
608 |
def read(self, iprot):
|
|
|
609 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
610 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
611 |
return
|
|
|
612 |
iprot.readStructBegin()
|
|
|
613 |
while True:
|
|
|
614 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
615 |
if ftype == TType.STOP:
|
|
|
616 |
break
|
|
|
617 |
else:
|
|
|
618 |
iprot.skip(ftype)
|
|
|
619 |
iprot.readFieldEnd()
|
|
|
620 |
iprot.readStructEnd()
|
|
|
621 |
|
|
|
622 |
def write(self, oprot):
|
|
|
623 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
624 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
625 |
return
|
|
|
626 |
oprot.writeStructBegin('closeSession_result')
|
|
|
627 |
oprot.writeFieldStop()
|
|
|
628 |
oprot.writeStructEnd()
|
|
|
629 |
|
|
|
630 |
def __repr__(self):
|
|
|
631 |
L = ['%s=%r' % (key, value)
|
|
|
632 |
for key, value in self.__dict__.iteritems()]
|
|
|
633 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
634 |
|
|
|
635 |
def __eq__(self, other):
|
|
|
636 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
637 |
|
|
|
638 |
def __ne__(self, other):
|
|
|
639 |
return not (self == other)
|
|
|
640 |
|
| 669 |
chandransh |
641 |
class getProvider_args:
|
|
|
642 |
"""
|
|
|
643 |
Attributes:
|
|
|
644 |
- providerId
|
|
|
645 |
"""
|
|
|
646 |
|
|
|
647 |
thrift_spec = (
|
|
|
648 |
None, # 0
|
|
|
649 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
650 |
)
|
|
|
651 |
|
|
|
652 |
def __init__(self, providerId=None,):
|
|
|
653 |
self.providerId = providerId
|
|
|
654 |
|
|
|
655 |
def read(self, iprot):
|
|
|
656 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
657 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
658 |
return
|
|
|
659 |
iprot.readStructBegin()
|
|
|
660 |
while True:
|
|
|
661 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
662 |
if ftype == TType.STOP:
|
|
|
663 |
break
|
|
|
664 |
if fid == 1:
|
|
|
665 |
if ftype == TType.I64:
|
|
|
666 |
self.providerId = iprot.readI64();
|
|
|
667 |
else:
|
|
|
668 |
iprot.skip(ftype)
|
|
|
669 |
else:
|
|
|
670 |
iprot.skip(ftype)
|
|
|
671 |
iprot.readFieldEnd()
|
|
|
672 |
iprot.readStructEnd()
|
|
|
673 |
|
|
|
674 |
def write(self, oprot):
|
|
|
675 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
676 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
677 |
return
|
|
|
678 |
oprot.writeStructBegin('getProvider_args')
|
|
|
679 |
if self.providerId != None:
|
|
|
680 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
681 |
oprot.writeI64(self.providerId)
|
|
|
682 |
oprot.writeFieldEnd()
|
|
|
683 |
oprot.writeFieldStop()
|
|
|
684 |
oprot.writeStructEnd()
|
|
|
685 |
|
|
|
686 |
def __repr__(self):
|
|
|
687 |
L = ['%s=%r' % (key, value)
|
|
|
688 |
for key, value in self.__dict__.iteritems()]
|
|
|
689 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
690 |
|
|
|
691 |
def __eq__(self, other):
|
|
|
692 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
693 |
|
|
|
694 |
def __ne__(self, other):
|
|
|
695 |
return not (self == other)
|
|
|
696 |
|
|
|
697 |
class getProvider_result:
|
|
|
698 |
"""
|
|
|
699 |
Attributes:
|
|
|
700 |
- success
|
|
|
701 |
- lse
|
|
|
702 |
"""
|
|
|
703 |
|
|
|
704 |
thrift_spec = (
|
|
|
705 |
(0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
|
|
|
706 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
707 |
)
|
|
|
708 |
|
|
|
709 |
def __init__(self, success=None, lse=None,):
|
|
|
710 |
self.success = success
|
|
|
711 |
self.lse = lse
|
|
|
712 |
|
|
|
713 |
def read(self, iprot):
|
|
|
714 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
715 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
716 |
return
|
|
|
717 |
iprot.readStructBegin()
|
|
|
718 |
while True:
|
|
|
719 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
720 |
if ftype == TType.STOP:
|
|
|
721 |
break
|
|
|
722 |
if fid == 0:
|
|
|
723 |
if ftype == TType.STRUCT:
|
|
|
724 |
self.success = Provider()
|
|
|
725 |
self.success.read(iprot)
|
|
|
726 |
else:
|
|
|
727 |
iprot.skip(ftype)
|
|
|
728 |
elif fid == 1:
|
|
|
729 |
if ftype == TType.STRUCT:
|
|
|
730 |
self.lse = LogisticsServiceException()
|
|
|
731 |
self.lse.read(iprot)
|
|
|
732 |
else:
|
|
|
733 |
iprot.skip(ftype)
|
|
|
734 |
else:
|
|
|
735 |
iprot.skip(ftype)
|
|
|
736 |
iprot.readFieldEnd()
|
|
|
737 |
iprot.readStructEnd()
|
|
|
738 |
|
|
|
739 |
def write(self, oprot):
|
|
|
740 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
741 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
742 |
return
|
|
|
743 |
oprot.writeStructBegin('getProvider_result')
|
|
|
744 |
if self.success != None:
|
|
|
745 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
746 |
self.success.write(oprot)
|
|
|
747 |
oprot.writeFieldEnd()
|
|
|
748 |
if self.lse != None:
|
|
|
749 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
750 |
self.lse.write(oprot)
|
|
|
751 |
oprot.writeFieldEnd()
|
|
|
752 |
oprot.writeFieldStop()
|
|
|
753 |
oprot.writeStructEnd()
|
|
|
754 |
|
|
|
755 |
def __repr__(self):
|
|
|
756 |
L = ['%s=%r' % (key, value)
|
|
|
757 |
for key, value in self.__dict__.iteritems()]
|
|
|
758 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
759 |
|
|
|
760 |
def __eq__(self, other):
|
|
|
761 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
762 |
|
|
|
763 |
def __ne__(self, other):
|
|
|
764 |
return not (self == other)
|
|
|
765 |
|
| 675 |
chandransh |
766 |
class getAllProviders_args:
|
|
|
767 |
|
|
|
768 |
thrift_spec = (
|
|
|
769 |
)
|
|
|
770 |
|
|
|
771 |
def read(self, iprot):
|
|
|
772 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
773 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
774 |
return
|
|
|
775 |
iprot.readStructBegin()
|
|
|
776 |
while True:
|
|
|
777 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
778 |
if ftype == TType.STOP:
|
|
|
779 |
break
|
|
|
780 |
else:
|
|
|
781 |
iprot.skip(ftype)
|
|
|
782 |
iprot.readFieldEnd()
|
|
|
783 |
iprot.readStructEnd()
|
|
|
784 |
|
|
|
785 |
def write(self, oprot):
|
|
|
786 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
787 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
788 |
return
|
|
|
789 |
oprot.writeStructBegin('getAllProviders_args')
|
|
|
790 |
oprot.writeFieldStop()
|
|
|
791 |
oprot.writeStructEnd()
|
|
|
792 |
|
|
|
793 |
def __repr__(self):
|
|
|
794 |
L = ['%s=%r' % (key, value)
|
|
|
795 |
for key, value in self.__dict__.iteritems()]
|
|
|
796 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
797 |
|
|
|
798 |
def __eq__(self, other):
|
|
|
799 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
800 |
|
|
|
801 |
def __ne__(self, other):
|
|
|
802 |
return not (self == other)
|
|
|
803 |
|
|
|
804 |
class getAllProviders_result:
|
|
|
805 |
"""
|
|
|
806 |
Attributes:
|
|
|
807 |
- success
|
|
|
808 |
- lse
|
|
|
809 |
"""
|
|
|
810 |
|
|
|
811 |
thrift_spec = (
|
|
|
812 |
(0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
|
|
|
813 |
(1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
814 |
)
|
|
|
815 |
|
|
|
816 |
def __init__(self, success=None, lse=None,):
|
|
|
817 |
self.success = success
|
|
|
818 |
self.lse = lse
|
|
|
819 |
|
|
|
820 |
def read(self, iprot):
|
|
|
821 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
822 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
823 |
return
|
|
|
824 |
iprot.readStructBegin()
|
|
|
825 |
while True:
|
|
|
826 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
827 |
if ftype == TType.STOP:
|
|
|
828 |
break
|
|
|
829 |
if fid == 0:
|
|
|
830 |
if ftype == TType.LIST:
|
|
|
831 |
self.success = []
|
|
|
832 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
833 |
for _i4 in xrange(_size0):
|
|
|
834 |
_elem5 = Provider()
|
|
|
835 |
_elem5.read(iprot)
|
|
|
836 |
self.success.append(_elem5)
|
|
|
837 |
iprot.readListEnd()
|
|
|
838 |
else:
|
|
|
839 |
iprot.skip(ftype)
|
|
|
840 |
elif fid == 1:
|
|
|
841 |
if ftype == TType.STRUCT:
|
|
|
842 |
self.lse = LogisticsServiceException()
|
|
|
843 |
self.lse.read(iprot)
|
|
|
844 |
else:
|
|
|
845 |
iprot.skip(ftype)
|
|
|
846 |
else:
|
|
|
847 |
iprot.skip(ftype)
|
|
|
848 |
iprot.readFieldEnd()
|
|
|
849 |
iprot.readStructEnd()
|
|
|
850 |
|
|
|
851 |
def write(self, oprot):
|
|
|
852 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
853 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
854 |
return
|
|
|
855 |
oprot.writeStructBegin('getAllProviders_result')
|
|
|
856 |
if self.success != None:
|
|
|
857 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
858 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
859 |
for iter6 in self.success:
|
|
|
860 |
iter6.write(oprot)
|
|
|
861 |
oprot.writeListEnd()
|
|
|
862 |
oprot.writeFieldEnd()
|
|
|
863 |
if self.lse != None:
|
|
|
864 |
oprot.writeFieldBegin('lse', TType.STRUCT, 1)
|
|
|
865 |
self.lse.write(oprot)
|
|
|
866 |
oprot.writeFieldEnd()
|
|
|
867 |
oprot.writeFieldStop()
|
|
|
868 |
oprot.writeStructEnd()
|
|
|
869 |
|
|
|
870 |
def __repr__(self):
|
|
|
871 |
L = ['%s=%r' % (key, value)
|
|
|
872 |
for key, value in self.__dict__.iteritems()]
|
|
|
873 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
874 |
|
|
|
875 |
def __eq__(self, other):
|
|
|
876 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
877 |
|
|
|
878 |
def __ne__(self, other):
|
|
|
879 |
return not (self == other)
|
|
|
880 |
|
| 647 |
chandransh |
881 |
class getLogisticsEstimation_args:
|
| 483 |
rajveer |
882 |
"""
|
|
|
883 |
Attributes:
|
| 647 |
chandransh |
884 |
- itemId
|
|
|
885 |
- destination_pin
|
| 483 |
rajveer |
886 |
"""
|
|
|
887 |
|
|
|
888 |
thrift_spec = (
|
|
|
889 |
None, # 0
|
| 647 |
chandransh |
890 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
891 |
(2, TType.STRING, 'destination_pin', None, None, ), # 2
|
| 483 |
rajveer |
892 |
)
|
|
|
893 |
|
| 647 |
chandransh |
894 |
def __init__(self, itemId=None, destination_pin=None,):
|
|
|
895 |
self.itemId = itemId
|
|
|
896 |
self.destination_pin = destination_pin
|
| 483 |
rajveer |
897 |
|
|
|
898 |
def read(self, iprot):
|
|
|
899 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
900 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
901 |
return
|
|
|
902 |
iprot.readStructBegin()
|
|
|
903 |
while True:
|
|
|
904 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
905 |
if ftype == TType.STOP:
|
|
|
906 |
break
|
|
|
907 |
if fid == 1:
|
| 647 |
chandransh |
908 |
if ftype == TType.I64:
|
|
|
909 |
self.itemId = iprot.readI64();
|
| 483 |
rajveer |
910 |
else:
|
|
|
911 |
iprot.skip(ftype)
|
|
|
912 |
elif fid == 2:
|
|
|
913 |
if ftype == TType.STRING:
|
| 647 |
chandransh |
914 |
self.destination_pin = iprot.readString();
|
| 483 |
rajveer |
915 |
else:
|
|
|
916 |
iprot.skip(ftype)
|
|
|
917 |
else:
|
|
|
918 |
iprot.skip(ftype)
|
|
|
919 |
iprot.readFieldEnd()
|
|
|
920 |
iprot.readStructEnd()
|
|
|
921 |
|
|
|
922 |
def write(self, oprot):
|
|
|
923 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
924 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
925 |
return
|
| 647 |
chandransh |
926 |
oprot.writeStructBegin('getLogisticsEstimation_args')
|
|
|
927 |
if self.itemId != None:
|
|
|
928 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
929 |
oprot.writeI64(self.itemId)
|
| 483 |
rajveer |
930 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
931 |
if self.destination_pin != None:
|
|
|
932 |
oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
|
|
|
933 |
oprot.writeString(self.destination_pin)
|
| 483 |
rajveer |
934 |
oprot.writeFieldEnd()
|
|
|
935 |
oprot.writeFieldStop()
|
|
|
936 |
oprot.writeStructEnd()
|
|
|
937 |
|
|
|
938 |
def __repr__(self):
|
|
|
939 |
L = ['%s=%r' % (key, value)
|
|
|
940 |
for key, value in self.__dict__.iteritems()]
|
|
|
941 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
942 |
|
|
|
943 |
def __eq__(self, other):
|
|
|
944 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
945 |
|
|
|
946 |
def __ne__(self, other):
|
|
|
947 |
return not (self == other)
|
|
|
948 |
|
| 647 |
chandransh |
949 |
class getLogisticsEstimation_result:
|
| 483 |
rajveer |
950 |
"""
|
|
|
951 |
Attributes:
|
|
|
952 |
- success
|
|
|
953 |
- se
|
|
|
954 |
"""
|
|
|
955 |
|
|
|
956 |
thrift_spec = (
|
|
|
957 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
|
|
958 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
959 |
)
|
|
|
960 |
|
|
|
961 |
def __init__(self, success=None, se=None,):
|
|
|
962 |
self.success = success
|
|
|
963 |
self.se = se
|
|
|
964 |
|
|
|
965 |
def read(self, iprot):
|
|
|
966 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
967 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
968 |
return
|
|
|
969 |
iprot.readStructBegin()
|
|
|
970 |
while True:
|
|
|
971 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
972 |
if ftype == TType.STOP:
|
|
|
973 |
break
|
|
|
974 |
if fid == 0:
|
|
|
975 |
if ftype == TType.STRUCT:
|
|
|
976 |
self.success = LogisticsInfo()
|
|
|
977 |
self.success.read(iprot)
|
|
|
978 |
else:
|
|
|
979 |
iprot.skip(ftype)
|
|
|
980 |
elif fid == 1:
|
|
|
981 |
if ftype == TType.STRUCT:
|
|
|
982 |
self.se = LogisticsServiceException()
|
|
|
983 |
self.se.read(iprot)
|
|
|
984 |
else:
|
|
|
985 |
iprot.skip(ftype)
|
|
|
986 |
else:
|
|
|
987 |
iprot.skip(ftype)
|
|
|
988 |
iprot.readFieldEnd()
|
|
|
989 |
iprot.readStructEnd()
|
|
|
990 |
|
|
|
991 |
def write(self, oprot):
|
|
|
992 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
993 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
994 |
return
|
| 647 |
chandransh |
995 |
oprot.writeStructBegin('getLogisticsEstimation_result')
|
| 483 |
rajveer |
996 |
if self.success != None:
|
|
|
997 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
998 |
self.success.write(oprot)
|
|
|
999 |
oprot.writeFieldEnd()
|
|
|
1000 |
if self.se != None:
|
|
|
1001 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1002 |
self.se.write(oprot)
|
|
|
1003 |
oprot.writeFieldEnd()
|
|
|
1004 |
oprot.writeFieldStop()
|
|
|
1005 |
oprot.writeStructEnd()
|
|
|
1006 |
|
|
|
1007 |
def __repr__(self):
|
|
|
1008 |
L = ['%s=%r' % (key, value)
|
|
|
1009 |
for key, value in self.__dict__.iteritems()]
|
|
|
1010 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1011 |
|
|
|
1012 |
def __eq__(self, other):
|
|
|
1013 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1014 |
|
|
|
1015 |
def __ne__(self, other):
|
|
|
1016 |
return not (self == other)
|
|
|
1017 |
|
| 647 |
chandransh |
1018 |
class getLogisticsInfo_args:
|
| 472 |
rajveer |
1019 |
"""
|
|
|
1020 |
Attributes:
|
| 647 |
chandransh |
1021 |
- destination_pincode
|
|
|
1022 |
- item_id
|
| 472 |
rajveer |
1023 |
"""
|
|
|
1024 |
|
|
|
1025 |
thrift_spec = (
|
|
|
1026 |
None, # 0
|
| 647 |
chandransh |
1027 |
(1, TType.STRING, 'destination_pincode', None, None, ), # 1
|
| 716 |
rajveer |
1028 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
| 472 |
rajveer |
1029 |
)
|
|
|
1030 |
|
| 647 |
chandransh |
1031 |
def __init__(self, destination_pincode=None, item_id=None,):
|
|
|
1032 |
self.destination_pincode = destination_pincode
|
|
|
1033 |
self.item_id = item_id
|
| 472 |
rajveer |
1034 |
|
|
|
1035 |
def read(self, iprot):
|
|
|
1036 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1037 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1038 |
return
|
|
|
1039 |
iprot.readStructBegin()
|
|
|
1040 |
while True:
|
|
|
1041 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1042 |
if ftype == TType.STOP:
|
|
|
1043 |
break
|
|
|
1044 |
if fid == 1:
|
| 647 |
chandransh |
1045 |
if ftype == TType.STRING:
|
|
|
1046 |
self.destination_pincode = iprot.readString();
|
| 472 |
rajveer |
1047 |
else:
|
|
|
1048 |
iprot.skip(ftype)
|
|
|
1049 |
elif fid == 2:
|
| 716 |
rajveer |
1050 |
if ftype == TType.I64:
|
|
|
1051 |
self.item_id = iprot.readI64();
|
| 472 |
rajveer |
1052 |
else:
|
|
|
1053 |
iprot.skip(ftype)
|
|
|
1054 |
else:
|
|
|
1055 |
iprot.skip(ftype)
|
|
|
1056 |
iprot.readFieldEnd()
|
|
|
1057 |
iprot.readStructEnd()
|
|
|
1058 |
|
|
|
1059 |
def write(self, oprot):
|
|
|
1060 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1061 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1062 |
return
|
| 647 |
chandransh |
1063 |
oprot.writeStructBegin('getLogisticsInfo_args')
|
|
|
1064 |
if self.destination_pincode != None:
|
|
|
1065 |
oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
|
|
|
1066 |
oprot.writeString(self.destination_pincode)
|
| 472 |
rajveer |
1067 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1068 |
if self.item_id != None:
|
| 716 |
rajveer |
1069 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
1070 |
oprot.writeI64(self.item_id)
|
| 472 |
rajveer |
1071 |
oprot.writeFieldEnd()
|
|
|
1072 |
oprot.writeFieldStop()
|
|
|
1073 |
oprot.writeStructEnd()
|
|
|
1074 |
|
|
|
1075 |
def __repr__(self):
|
|
|
1076 |
L = ['%s=%r' % (key, value)
|
|
|
1077 |
for key, value in self.__dict__.iteritems()]
|
|
|
1078 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1079 |
|
|
|
1080 |
def __eq__(self, other):
|
|
|
1081 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1082 |
|
|
|
1083 |
def __ne__(self, other):
|
|
|
1084 |
return not (self == other)
|
|
|
1085 |
|
| 647 |
chandransh |
1086 |
class getLogisticsInfo_result:
|
| 472 |
rajveer |
1087 |
"""
|
|
|
1088 |
Attributes:
|
|
|
1089 |
- success
|
|
|
1090 |
- se
|
|
|
1091 |
"""
|
|
|
1092 |
|
|
|
1093 |
thrift_spec = (
|
| 644 |
chandransh |
1094 |
(0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
|
| 472 |
rajveer |
1095 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1096 |
)
|
|
|
1097 |
|
|
|
1098 |
def __init__(self, success=None, se=None,):
|
|
|
1099 |
self.success = success
|
|
|
1100 |
self.se = se
|
|
|
1101 |
|
|
|
1102 |
def read(self, iprot):
|
|
|
1103 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1104 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1105 |
return
|
|
|
1106 |
iprot.readStructBegin()
|
|
|
1107 |
while True:
|
|
|
1108 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1109 |
if ftype == TType.STOP:
|
|
|
1110 |
break
|
|
|
1111 |
if fid == 0:
|
|
|
1112 |
if ftype == TType.STRUCT:
|
| 644 |
chandransh |
1113 |
self.success = LogisticsInfo()
|
| 472 |
rajveer |
1114 |
self.success.read(iprot)
|
|
|
1115 |
else:
|
|
|
1116 |
iprot.skip(ftype)
|
|
|
1117 |
elif fid == 1:
|
|
|
1118 |
if ftype == TType.STRUCT:
|
|
|
1119 |
self.se = LogisticsServiceException()
|
|
|
1120 |
self.se.read(iprot)
|
|
|
1121 |
else:
|
|
|
1122 |
iprot.skip(ftype)
|
|
|
1123 |
else:
|
|
|
1124 |
iprot.skip(ftype)
|
|
|
1125 |
iprot.readFieldEnd()
|
|
|
1126 |
iprot.readStructEnd()
|
|
|
1127 |
|
|
|
1128 |
def write(self, oprot):
|
|
|
1129 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1130 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1131 |
return
|
| 647 |
chandransh |
1132 |
oprot.writeStructBegin('getLogisticsInfo_result')
|
| 472 |
rajveer |
1133 |
if self.success != None:
|
|
|
1134 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1135 |
self.success.write(oprot)
|
|
|
1136 |
oprot.writeFieldEnd()
|
|
|
1137 |
if self.se != None:
|
|
|
1138 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1139 |
self.se.write(oprot)
|
|
|
1140 |
oprot.writeFieldEnd()
|
|
|
1141 |
oprot.writeFieldStop()
|
|
|
1142 |
oprot.writeStructEnd()
|
|
|
1143 |
|
|
|
1144 |
def __repr__(self):
|
|
|
1145 |
L = ['%s=%r' % (key, value)
|
|
|
1146 |
for key, value in self.__dict__.iteritems()]
|
|
|
1147 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1148 |
|
|
|
1149 |
def __eq__(self, other):
|
|
|
1150 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1151 |
|
|
|
1152 |
def __ne__(self, other):
|
|
|
1153 |
return not (self == other)
|
|
|
1154 |
|
| 412 |
ashish |
1155 |
class getEmptyAWB_args:
|
|
|
1156 |
"""
|
|
|
1157 |
Attributes:
|
| 647 |
chandransh |
1158 |
- providerId
|
| 412 |
ashish |
1159 |
"""
|
|
|
1160 |
|
|
|
1161 |
thrift_spec = (
|
|
|
1162 |
None, # 0
|
| 647 |
chandransh |
1163 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
| 412 |
ashish |
1164 |
)
|
|
|
1165 |
|
| 647 |
chandransh |
1166 |
def __init__(self, providerId=None,):
|
|
|
1167 |
self.providerId = providerId
|
| 412 |
ashish |
1168 |
|
|
|
1169 |
def read(self, iprot):
|
|
|
1170 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1171 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1172 |
return
|
|
|
1173 |
iprot.readStructBegin()
|
|
|
1174 |
while True:
|
|
|
1175 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1176 |
if ftype == TType.STOP:
|
|
|
1177 |
break
|
|
|
1178 |
if fid == 1:
|
|
|
1179 |
if ftype == TType.I64:
|
| 647 |
chandransh |
1180 |
self.providerId = iprot.readI64();
|
| 412 |
ashish |
1181 |
else:
|
|
|
1182 |
iprot.skip(ftype)
|
|
|
1183 |
else:
|
|
|
1184 |
iprot.skip(ftype)
|
|
|
1185 |
iprot.readFieldEnd()
|
|
|
1186 |
iprot.readStructEnd()
|
|
|
1187 |
|
|
|
1188 |
def write(self, oprot):
|
|
|
1189 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1190 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1191 |
return
|
|
|
1192 |
oprot.writeStructBegin('getEmptyAWB_args')
|
| 647 |
chandransh |
1193 |
if self.providerId != None:
|
|
|
1194 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1195 |
oprot.writeI64(self.providerId)
|
| 412 |
ashish |
1196 |
oprot.writeFieldEnd()
|
|
|
1197 |
oprot.writeFieldStop()
|
|
|
1198 |
oprot.writeStructEnd()
|
|
|
1199 |
|
|
|
1200 |
def __repr__(self):
|
|
|
1201 |
L = ['%s=%r' % (key, value)
|
|
|
1202 |
for key, value in self.__dict__.iteritems()]
|
|
|
1203 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1204 |
|
|
|
1205 |
def __eq__(self, other):
|
|
|
1206 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1207 |
|
|
|
1208 |
def __ne__(self, other):
|
|
|
1209 |
return not (self == other)
|
|
|
1210 |
|
|
|
1211 |
class getEmptyAWB_result:
|
|
|
1212 |
"""
|
|
|
1213 |
Attributes:
|
|
|
1214 |
- success
|
| 647 |
chandransh |
1215 |
- se
|
| 412 |
ashish |
1216 |
"""
|
|
|
1217 |
|
|
|
1218 |
thrift_spec = (
|
|
|
1219 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 647 |
chandransh |
1220 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1221 |
)
|
|
|
1222 |
|
| 647 |
chandransh |
1223 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1224 |
self.success = success
|
| 647 |
chandransh |
1225 |
self.se = se
|
| 412 |
ashish |
1226 |
|
|
|
1227 |
def read(self, iprot):
|
|
|
1228 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1229 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1230 |
return
|
|
|
1231 |
iprot.readStructBegin()
|
|
|
1232 |
while True:
|
|
|
1233 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1234 |
if ftype == TType.STOP:
|
|
|
1235 |
break
|
|
|
1236 |
if fid == 0:
|
|
|
1237 |
if ftype == TType.STRING:
|
|
|
1238 |
self.success = iprot.readString();
|
|
|
1239 |
else:
|
|
|
1240 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1241 |
elif fid == 1:
|
|
|
1242 |
if ftype == TType.STRUCT:
|
|
|
1243 |
self.se = LogisticsServiceException()
|
|
|
1244 |
self.se.read(iprot)
|
|
|
1245 |
else:
|
|
|
1246 |
iprot.skip(ftype)
|
| 412 |
ashish |
1247 |
else:
|
|
|
1248 |
iprot.skip(ftype)
|
|
|
1249 |
iprot.readFieldEnd()
|
|
|
1250 |
iprot.readStructEnd()
|
|
|
1251 |
|
|
|
1252 |
def write(self, oprot):
|
|
|
1253 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1254 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1255 |
return
|
|
|
1256 |
oprot.writeStructBegin('getEmptyAWB_result')
|
|
|
1257 |
if self.success != None:
|
|
|
1258 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1259 |
oprot.writeString(self.success)
|
|
|
1260 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1261 |
if self.se != None:
|
|
|
1262 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1263 |
self.se.write(oprot)
|
|
|
1264 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1265 |
oprot.writeFieldStop()
|
|
|
1266 |
oprot.writeStructEnd()
|
|
|
1267 |
|
|
|
1268 |
def __repr__(self):
|
|
|
1269 |
L = ['%s=%r' % (key, value)
|
|
|
1270 |
for key, value in self.__dict__.iteritems()]
|
|
|
1271 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1272 |
|
|
|
1273 |
def __eq__(self, other):
|
|
|
1274 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1275 |
|
|
|
1276 |
def __ne__(self, other):
|
|
|
1277 |
return not (self == other)
|
|
|
1278 |
|
|
|
1279 |
class getShipmentInfo_args:
|
|
|
1280 |
"""
|
|
|
1281 |
Attributes:
|
|
|
1282 |
- awb
|
| 647 |
chandransh |
1283 |
- providerId
|
| 412 |
ashish |
1284 |
"""
|
|
|
1285 |
|
|
|
1286 |
thrift_spec = (
|
|
|
1287 |
None, # 0
|
|
|
1288 |
(1, TType.STRING, 'awb', None, None, ), # 1
|
| 647 |
chandransh |
1289 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
| 412 |
ashish |
1290 |
)
|
|
|
1291 |
|
| 647 |
chandransh |
1292 |
def __init__(self, awb=None, providerId=None,):
|
| 412 |
ashish |
1293 |
self.awb = awb
|
| 647 |
chandransh |
1294 |
self.providerId = providerId
|
| 412 |
ashish |
1295 |
|
|
|
1296 |
def read(self, iprot):
|
|
|
1297 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1298 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1299 |
return
|
|
|
1300 |
iprot.readStructBegin()
|
|
|
1301 |
while True:
|
|
|
1302 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1303 |
if ftype == TType.STOP:
|
|
|
1304 |
break
|
|
|
1305 |
if fid == 1:
|
|
|
1306 |
if ftype == TType.STRING:
|
|
|
1307 |
self.awb = iprot.readString();
|
|
|
1308 |
else:
|
|
|
1309 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1310 |
elif fid == 2:
|
|
|
1311 |
if ftype == TType.I64:
|
|
|
1312 |
self.providerId = iprot.readI64();
|
|
|
1313 |
else:
|
|
|
1314 |
iprot.skip(ftype)
|
| 412 |
ashish |
1315 |
else:
|
|
|
1316 |
iprot.skip(ftype)
|
|
|
1317 |
iprot.readFieldEnd()
|
|
|
1318 |
iprot.readStructEnd()
|
|
|
1319 |
|
|
|
1320 |
def write(self, oprot):
|
|
|
1321 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1322 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1323 |
return
|
|
|
1324 |
oprot.writeStructBegin('getShipmentInfo_args')
|
|
|
1325 |
if self.awb != None:
|
|
|
1326 |
oprot.writeFieldBegin('awb', TType.STRING, 1)
|
|
|
1327 |
oprot.writeString(self.awb)
|
|
|
1328 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1329 |
if self.providerId != None:
|
|
|
1330 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
1331 |
oprot.writeI64(self.providerId)
|
|
|
1332 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1333 |
oprot.writeFieldStop()
|
|
|
1334 |
oprot.writeStructEnd()
|
|
|
1335 |
|
|
|
1336 |
def __repr__(self):
|
|
|
1337 |
L = ['%s=%r' % (key, value)
|
|
|
1338 |
for key, value in self.__dict__.iteritems()]
|
|
|
1339 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1340 |
|
|
|
1341 |
def __eq__(self, other):
|
|
|
1342 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1343 |
|
|
|
1344 |
def __ne__(self, other):
|
|
|
1345 |
return not (self == other)
|
|
|
1346 |
|
|
|
1347 |
class getShipmentInfo_result:
|
|
|
1348 |
"""
|
|
|
1349 |
Attributes:
|
|
|
1350 |
- success
|
| 647 |
chandransh |
1351 |
- se
|
| 412 |
ashish |
1352 |
"""
|
|
|
1353 |
|
|
|
1354 |
thrift_spec = (
|
| 644 |
chandransh |
1355 |
(0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
|
| 647 |
chandransh |
1356 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
| 412 |
ashish |
1357 |
)
|
|
|
1358 |
|
| 647 |
chandransh |
1359 |
def __init__(self, success=None, se=None,):
|
| 412 |
ashish |
1360 |
self.success = success
|
| 647 |
chandransh |
1361 |
self.se = se
|
| 412 |
ashish |
1362 |
|
|
|
1363 |
def read(self, iprot):
|
|
|
1364 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1365 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1366 |
return
|
|
|
1367 |
iprot.readStructBegin()
|
|
|
1368 |
while True:
|
|
|
1369 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1370 |
if ftype == TType.STOP:
|
|
|
1371 |
break
|
|
|
1372 |
if fid == 0:
|
|
|
1373 |
if ftype == TType.LIST:
|
|
|
1374 |
self.success = []
|
| 675 |
chandransh |
1375 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
1376 |
for _i11 in xrange(_size7):
|
|
|
1377 |
_elem12 = AwbUpdate()
|
|
|
1378 |
_elem12.read(iprot)
|
|
|
1379 |
self.success.append(_elem12)
|
| 412 |
ashish |
1380 |
iprot.readListEnd()
|
|
|
1381 |
else:
|
|
|
1382 |
iprot.skip(ftype)
|
| 647 |
chandransh |
1383 |
elif fid == 1:
|
|
|
1384 |
if ftype == TType.STRUCT:
|
|
|
1385 |
self.se = LogisticsServiceException()
|
|
|
1386 |
self.se.read(iprot)
|
|
|
1387 |
else:
|
|
|
1388 |
iprot.skip(ftype)
|
| 412 |
ashish |
1389 |
else:
|
|
|
1390 |
iprot.skip(ftype)
|
|
|
1391 |
iprot.readFieldEnd()
|
|
|
1392 |
iprot.readStructEnd()
|
|
|
1393 |
|
|
|
1394 |
def write(self, oprot):
|
|
|
1395 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1396 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1397 |
return
|
| 644 |
chandransh |
1398 |
oprot.writeStructBegin('getShipmentInfo_result')
|
| 412 |
ashish |
1399 |
if self.success != None:
|
|
|
1400 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1401 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 675 |
chandransh |
1402 |
for iter13 in self.success:
|
|
|
1403 |
iter13.write(oprot)
|
| 412 |
ashish |
1404 |
oprot.writeListEnd()
|
|
|
1405 |
oprot.writeFieldEnd()
|
| 647 |
chandransh |
1406 |
if self.se != None:
|
|
|
1407 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1408 |
self.se.write(oprot)
|
|
|
1409 |
oprot.writeFieldEnd()
|
| 412 |
ashish |
1410 |
oprot.writeFieldStop()
|
|
|
1411 |
oprot.writeStructEnd()
|
|
|
1412 |
|
|
|
1413 |
def __repr__(self):
|
|
|
1414 |
L = ['%s=%r' % (key, value)
|
|
|
1415 |
for key, value in self.__dict__.iteritems()]
|
|
|
1416 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1417 |
|
|
|
1418 |
def __eq__(self, other):
|
|
|
1419 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1420 |
|
|
|
1421 |
def __ne__(self, other):
|
|
|
1422 |
return not (self == other)
|
|
|
1423 |
|
| 732 |
chandransh |
1424 |
class getDestinationCode_args:
|
|
|
1425 |
"""
|
|
|
1426 |
Attributes:
|
|
|
1427 |
- providerId
|
|
|
1428 |
- pinCode
|
|
|
1429 |
"""
|
| 412 |
ashish |
1430 |
|
| 732 |
chandransh |
1431 |
thrift_spec = (
|
|
|
1432 |
None, # 0
|
|
|
1433 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
1434 |
(2, TType.STRING, 'pinCode', None, None, ), # 2
|
|
|
1435 |
)
|
|
|
1436 |
|
|
|
1437 |
def __init__(self, providerId=None, pinCode=None,):
|
|
|
1438 |
self.providerId = providerId
|
|
|
1439 |
self.pinCode = pinCode
|
|
|
1440 |
|
|
|
1441 |
def read(self, iprot):
|
|
|
1442 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1443 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1444 |
return
|
|
|
1445 |
iprot.readStructBegin()
|
|
|
1446 |
while True:
|
|
|
1447 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1448 |
if ftype == TType.STOP:
|
|
|
1449 |
break
|
|
|
1450 |
if fid == 1:
|
|
|
1451 |
if ftype == TType.I64:
|
|
|
1452 |
self.providerId = iprot.readI64();
|
|
|
1453 |
else:
|
|
|
1454 |
iprot.skip(ftype)
|
|
|
1455 |
elif fid == 2:
|
|
|
1456 |
if ftype == TType.STRING:
|
|
|
1457 |
self.pinCode = iprot.readString();
|
|
|
1458 |
else:
|
|
|
1459 |
iprot.skip(ftype)
|
|
|
1460 |
else:
|
|
|
1461 |
iprot.skip(ftype)
|
|
|
1462 |
iprot.readFieldEnd()
|
|
|
1463 |
iprot.readStructEnd()
|
|
|
1464 |
|
|
|
1465 |
def write(self, oprot):
|
|
|
1466 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1467 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1468 |
return
|
|
|
1469 |
oprot.writeStructBegin('getDestinationCode_args')
|
|
|
1470 |
if self.providerId != None:
|
|
|
1471 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1472 |
oprot.writeI64(self.providerId)
|
|
|
1473 |
oprot.writeFieldEnd()
|
|
|
1474 |
if self.pinCode != None:
|
|
|
1475 |
oprot.writeFieldBegin('pinCode', TType.STRING, 2)
|
|
|
1476 |
oprot.writeString(self.pinCode)
|
|
|
1477 |
oprot.writeFieldEnd()
|
|
|
1478 |
oprot.writeFieldStop()
|
|
|
1479 |
oprot.writeStructEnd()
|
|
|
1480 |
|
|
|
1481 |
def __repr__(self):
|
|
|
1482 |
L = ['%s=%r' % (key, value)
|
|
|
1483 |
for key, value in self.__dict__.iteritems()]
|
|
|
1484 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1485 |
|
|
|
1486 |
def __eq__(self, other):
|
|
|
1487 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1488 |
|
|
|
1489 |
def __ne__(self, other):
|
|
|
1490 |
return not (self == other)
|
|
|
1491 |
|
|
|
1492 |
class getDestinationCode_result:
|
|
|
1493 |
"""
|
|
|
1494 |
Attributes:
|
|
|
1495 |
- success
|
|
|
1496 |
- se
|
|
|
1497 |
"""
|
|
|
1498 |
|
|
|
1499 |
thrift_spec = (
|
|
|
1500 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
1501 |
(1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
|
|
|
1502 |
)
|
|
|
1503 |
|
|
|
1504 |
def __init__(self, success=None, se=None,):
|
|
|
1505 |
self.success = success
|
|
|
1506 |
self.se = se
|
|
|
1507 |
|
|
|
1508 |
def read(self, iprot):
|
|
|
1509 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1510 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1511 |
return
|
|
|
1512 |
iprot.readStructBegin()
|
|
|
1513 |
while True:
|
|
|
1514 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1515 |
if ftype == TType.STOP:
|
|
|
1516 |
break
|
|
|
1517 |
if fid == 0:
|
|
|
1518 |
if ftype == TType.STRING:
|
|
|
1519 |
self.success = iprot.readString();
|
|
|
1520 |
else:
|
|
|
1521 |
iprot.skip(ftype)
|
|
|
1522 |
elif fid == 1:
|
|
|
1523 |
if ftype == TType.STRUCT:
|
|
|
1524 |
self.se = LogisticsServiceException()
|
|
|
1525 |
self.se.read(iprot)
|
|
|
1526 |
else:
|
|
|
1527 |
iprot.skip(ftype)
|
|
|
1528 |
else:
|
|
|
1529 |
iprot.skip(ftype)
|
|
|
1530 |
iprot.readFieldEnd()
|
|
|
1531 |
iprot.readStructEnd()
|
|
|
1532 |
|
|
|
1533 |
def write(self, oprot):
|
|
|
1534 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1535 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1536 |
return
|
|
|
1537 |
oprot.writeStructBegin('getDestinationCode_result')
|
|
|
1538 |
if self.success != None:
|
|
|
1539 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
1540 |
oprot.writeString(self.success)
|
|
|
1541 |
oprot.writeFieldEnd()
|
|
|
1542 |
if self.se != None:
|
|
|
1543 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1544 |
self.se.write(oprot)
|
|
|
1545 |
oprot.writeFieldEnd()
|
|
|
1546 |
oprot.writeFieldStop()
|
|
|
1547 |
oprot.writeStructEnd()
|
|
|
1548 |
|
|
|
1549 |
def __repr__(self):
|
|
|
1550 |
L = ['%s=%r' % (key, value)
|
|
|
1551 |
for key, value in self.__dict__.iteritems()]
|
|
|
1552 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1553 |
|
|
|
1554 |
def __eq__(self, other):
|
|
|
1555 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1556 |
|
|
|
1557 |
def __ne__(self, other):
|
|
|
1558 |
return not (self == other)
|
|
|
1559 |
|
| 1137 |
chandransh |
1560 |
class getFreeAwbCount_args:
|
|
|
1561 |
"""
|
|
|
1562 |
Attributes:
|
|
|
1563 |
- providerId
|
|
|
1564 |
"""
|
| 732 |
chandransh |
1565 |
|
| 1137 |
chandransh |
1566 |
thrift_spec = (
|
|
|
1567 |
None, # 0
|
|
|
1568 |
(1, TType.I64, 'providerId', None, None, ), # 1
|
|
|
1569 |
)
|
|
|
1570 |
|
|
|
1571 |
def __init__(self, providerId=None,):
|
|
|
1572 |
self.providerId = providerId
|
|
|
1573 |
|
|
|
1574 |
def read(self, iprot):
|
|
|
1575 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1576 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1577 |
return
|
|
|
1578 |
iprot.readStructBegin()
|
|
|
1579 |
while True:
|
|
|
1580 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1581 |
if ftype == TType.STOP:
|
|
|
1582 |
break
|
|
|
1583 |
if fid == 1:
|
|
|
1584 |
if ftype == TType.I64:
|
|
|
1585 |
self.providerId = iprot.readI64();
|
|
|
1586 |
else:
|
|
|
1587 |
iprot.skip(ftype)
|
|
|
1588 |
else:
|
|
|
1589 |
iprot.skip(ftype)
|
|
|
1590 |
iprot.readFieldEnd()
|
|
|
1591 |
iprot.readStructEnd()
|
|
|
1592 |
|
|
|
1593 |
def write(self, oprot):
|
|
|
1594 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1595 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1596 |
return
|
|
|
1597 |
oprot.writeStructBegin('getFreeAwbCount_args')
|
|
|
1598 |
if self.providerId != None:
|
|
|
1599 |
oprot.writeFieldBegin('providerId', TType.I64, 1)
|
|
|
1600 |
oprot.writeI64(self.providerId)
|
|
|
1601 |
oprot.writeFieldEnd()
|
|
|
1602 |
oprot.writeFieldStop()
|
|
|
1603 |
oprot.writeStructEnd()
|
|
|
1604 |
|
|
|
1605 |
def __repr__(self):
|
|
|
1606 |
L = ['%s=%r' % (key, value)
|
|
|
1607 |
for key, value in self.__dict__.iteritems()]
|
|
|
1608 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1609 |
|
|
|
1610 |
def __eq__(self, other):
|
|
|
1611 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1612 |
|
|
|
1613 |
def __ne__(self, other):
|
|
|
1614 |
return not (self == other)
|
|
|
1615 |
|
|
|
1616 |
class getFreeAwbCount_result:
|
|
|
1617 |
"""
|
|
|
1618 |
Attributes:
|
|
|
1619 |
- success
|
|
|
1620 |
"""
|
|
|
1621 |
|
|
|
1622 |
thrift_spec = (
|
|
|
1623 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1624 |
)
|
|
|
1625 |
|
|
|
1626 |
def __init__(self, success=None,):
|
|
|
1627 |
self.success = success
|
|
|
1628 |
|
|
|
1629 |
def read(self, iprot):
|
|
|
1630 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1631 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1632 |
return
|
|
|
1633 |
iprot.readStructBegin()
|
|
|
1634 |
while True:
|
|
|
1635 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1636 |
if ftype == TType.STOP:
|
|
|
1637 |
break
|
|
|
1638 |
if fid == 0:
|
|
|
1639 |
if ftype == TType.I64:
|
|
|
1640 |
self.success = iprot.readI64();
|
|
|
1641 |
else:
|
|
|
1642 |
iprot.skip(ftype)
|
|
|
1643 |
else:
|
|
|
1644 |
iprot.skip(ftype)
|
|
|
1645 |
iprot.readFieldEnd()
|
|
|
1646 |
iprot.readStructEnd()
|
|
|
1647 |
|
|
|
1648 |
def write(self, oprot):
|
|
|
1649 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1650 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1651 |
return
|
|
|
1652 |
oprot.writeStructBegin('getFreeAwbCount_result')
|
|
|
1653 |
if self.success != None:
|
|
|
1654 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1655 |
oprot.writeI64(self.success)
|
|
|
1656 |
oprot.writeFieldEnd()
|
|
|
1657 |
oprot.writeFieldStop()
|
|
|
1658 |
oprot.writeStructEnd()
|
|
|
1659 |
|
|
|
1660 |
def __repr__(self):
|
|
|
1661 |
L = ['%s=%r' % (key, value)
|
|
|
1662 |
for key, value in self.__dict__.iteritems()]
|
|
|
1663 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1664 |
|
|
|
1665 |
def __eq__(self, other):
|
|
|
1666 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1667 |
|
|
|
1668 |
def __ne__(self, other):
|
|
|
1669 |
return not (self == other)
|
|
|
1670 |
|
|
|
1671 |
|