| 94 |
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:
|
|
|
19 |
"""
|
|
|
20 |
service
|
|
|
21 |
"""
|
| 765 |
rajveer |
22 |
def closeSession(self, ):
|
|
|
23 |
"""
|
|
|
24 |
For closing the open session in sqlalchemy
|
|
|
25 |
"""
|
|
|
26 |
pass
|
|
|
27 |
|
| 559 |
chandransh |
28 |
def createAnonymousUser(self, jsessionId):
|
| 94 |
ashish |
29 |
"""
|
|
|
30 |
Parameters:
|
| 559 |
chandransh |
31 |
- jsessionId
|
| 94 |
ashish |
32 |
"""
|
|
|
33 |
pass
|
|
|
34 |
|
| 559 |
chandransh |
35 |
def getUserById(self, userId):
|
| 94 |
ashish |
36 |
"""
|
|
|
37 |
Parameters:
|
|
|
38 |
- userId
|
|
|
39 |
"""
|
|
|
40 |
pass
|
|
|
41 |
|
| 559 |
chandransh |
42 |
def createUser(self, user):
|
| 94 |
ashish |
43 |
"""
|
|
|
44 |
Parameters:
|
| 559 |
chandransh |
45 |
- user
|
| 94 |
ashish |
46 |
"""
|
|
|
47 |
pass
|
|
|
48 |
|
| 559 |
chandransh |
49 |
def updateUser(self, user):
|
| 94 |
ashish |
50 |
"""
|
|
|
51 |
Parameters:
|
| 559 |
chandransh |
52 |
- user
|
| 94 |
ashish |
53 |
"""
|
|
|
54 |
pass
|
|
|
55 |
|
| 559 |
chandransh |
56 |
def deleteUser(self, userId):
|
| 94 |
ashish |
57 |
"""
|
|
|
58 |
Parameters:
|
|
|
59 |
- userId
|
|
|
60 |
"""
|
|
|
61 |
pass
|
|
|
62 |
|
| 559 |
chandransh |
63 |
def getUserState(self, userId):
|
| 94 |
ashish |
64 |
"""
|
|
|
65 |
Parameters:
|
|
|
66 |
- userId
|
|
|
67 |
"""
|
|
|
68 |
pass
|
|
|
69 |
|
| 559 |
chandransh |
70 |
def authenticateUser(self, email, password):
|
| 94 |
ashish |
71 |
"""
|
|
|
72 |
Parameters:
|
|
|
73 |
- email
|
|
|
74 |
- password
|
|
|
75 |
"""
|
|
|
76 |
pass
|
|
|
77 |
|
|
|
78 |
def userExists(self, email):
|
|
|
79 |
"""
|
|
|
80 |
Parameters:
|
|
|
81 |
- email
|
|
|
82 |
"""
|
|
|
83 |
pass
|
|
|
84 |
|
| 567 |
rajveer |
85 |
def addAddressForUser(self, userId, address, setDefault):
|
| 94 |
ashish |
86 |
"""
|
|
|
87 |
Parameters:
|
|
|
88 |
- userId
|
|
|
89 |
- address
|
| 513 |
rajveer |
90 |
- setDefault
|
| 94 |
ashish |
91 |
"""
|
|
|
92 |
pass
|
|
|
93 |
|
|
|
94 |
def removeAddressForUser(self, userid, addressId):
|
|
|
95 |
"""
|
|
|
96 |
Parameters:
|
|
|
97 |
- userid
|
|
|
98 |
- addressId
|
|
|
99 |
"""
|
|
|
100 |
pass
|
|
|
101 |
|
|
|
102 |
def setUserAsLoggedIn(self, userId, timestamp):
|
|
|
103 |
"""
|
|
|
104 |
Parameters:
|
|
|
105 |
- userId
|
|
|
106 |
- timestamp
|
|
|
107 |
"""
|
|
|
108 |
pass
|
|
|
109 |
|
|
|
110 |
def setUserAsLoggedOut(self, userid, timestamp):
|
|
|
111 |
"""
|
|
|
112 |
Parameters:
|
|
|
113 |
- userid
|
|
|
114 |
- timestamp
|
|
|
115 |
"""
|
|
|
116 |
pass
|
|
|
117 |
|
| 504 |
rajveer |
118 |
def setDefaultAddress(self, userid, addressId):
|
|
|
119 |
"""
|
|
|
120 |
Parameters:
|
|
|
121 |
- userid
|
|
|
122 |
- addressId
|
|
|
123 |
"""
|
|
|
124 |
pass
|
|
|
125 |
|
| 594 |
rajveer |
126 |
def updatePassword(self, userid, oldPassword, newPassword):
|
| 94 |
ashish |
127 |
"""
|
|
|
128 |
Parameters:
|
|
|
129 |
- userid
|
| 594 |
rajveer |
130 |
- oldPassword
|
|
|
131 |
- newPassword
|
| 94 |
ashish |
132 |
"""
|
|
|
133 |
pass
|
|
|
134 |
|
| 884 |
rajveer |
135 |
def forgotPassword(self, email, newPassword):
|
| 581 |
rajveer |
136 |
"""
|
|
|
137 |
Parameters:
|
|
|
138 |
- email
|
| 884 |
rajveer |
139 |
- newPassword
|
| 581 |
rajveer |
140 |
"""
|
|
|
141 |
pass
|
|
|
142 |
|
| 594 |
rajveer |
143 |
def getAllAddressesForUser(self, userId):
|
|
|
144 |
"""
|
|
|
145 |
Parameters:
|
|
|
146 |
- userId
|
|
|
147 |
"""
|
|
|
148 |
pass
|
|
|
149 |
|
|
|
150 |
def getDefaultAddressId(self, userId):
|
|
|
151 |
"""
|
|
|
152 |
Parameters:
|
|
|
153 |
- userId
|
|
|
154 |
"""
|
|
|
155 |
pass
|
|
|
156 |
|
| 785 |
rajveer |
157 |
def getDefaultPincode(self, userId):
|
|
|
158 |
"""
|
|
|
159 |
Parameters:
|
|
|
160 |
- userId
|
|
|
161 |
"""
|
|
|
162 |
pass
|
|
|
163 |
|
| 559 |
chandransh |
164 |
def createCart(self, userId):
|
| 94 |
ashish |
165 |
"""
|
|
|
166 |
Parameters:
|
| 559 |
chandransh |
167 |
- userId
|
| 94 |
ashish |
168 |
"""
|
|
|
169 |
pass
|
|
|
170 |
|
| 559 |
chandransh |
171 |
def getCurrentCart(self, userId):
|
| 94 |
ashish |
172 |
"""
|
|
|
173 |
Parameters:
|
| 559 |
chandransh |
174 |
- userId
|
| 94 |
ashish |
175 |
"""
|
|
|
176 |
pass
|
|
|
177 |
|
| 559 |
chandransh |
178 |
def getCart(self, cartId):
|
| 94 |
ashish |
179 |
"""
|
|
|
180 |
Parameters:
|
| 559 |
chandransh |
181 |
- cartId
|
| 94 |
ashish |
182 |
"""
|
|
|
183 |
pass
|
|
|
184 |
|
| 559 |
chandransh |
185 |
def getCartsForUser(self, userId, status):
|
| 94 |
ashish |
186 |
"""
|
|
|
187 |
Parameters:
|
| 559 |
chandransh |
188 |
- userId
|
|
|
189 |
- status
|
| 94 |
ashish |
190 |
"""
|
|
|
191 |
pass
|
|
|
192 |
|
| 559 |
chandransh |
193 |
def getCartsByStatus(self, status):
|
| 94 |
ashish |
194 |
"""
|
|
|
195 |
Parameters:
|
| 559 |
chandransh |
196 |
- status
|
| 94 |
ashish |
197 |
"""
|
|
|
198 |
pass
|
|
|
199 |
|
| 559 |
chandransh |
200 |
def getCartsByTime(self, from_time, to_time, status):
|
| 94 |
ashish |
201 |
"""
|
|
|
202 |
Parameters:
|
| 559 |
chandransh |
203 |
- from_time
|
|
|
204 |
- to_time
|
|
|
205 |
- status
|
| 94 |
ashish |
206 |
"""
|
|
|
207 |
pass
|
|
|
208 |
|
| 559 |
chandransh |
209 |
def changeCartStatus(self, cartId, status):
|
| 130 |
ashish |
210 |
"""
|
|
|
211 |
Parameters:
|
| 559 |
chandransh |
212 |
- cartId
|
|
|
213 |
- status
|
| 130 |
ashish |
214 |
"""
|
|
|
215 |
pass
|
| 94 |
ashish |
216 |
|
| 559 |
chandransh |
217 |
def addItemToCart(self, cartId, itemId, quantity):
|
| 130 |
ashish |
218 |
"""
|
|
|
219 |
Parameters:
|
| 559 |
chandransh |
220 |
- cartId
|
|
|
221 |
- itemId
|
|
|
222 |
- quantity
|
| 130 |
ashish |
223 |
"""
|
|
|
224 |
pass
|
|
|
225 |
|
| 559 |
chandransh |
226 |
def deleteItemFromCart(self, cartId, itemId):
|
|
|
227 |
"""
|
|
|
228 |
Parameters:
|
|
|
229 |
- cartId
|
|
|
230 |
- itemId
|
|
|
231 |
"""
|
|
|
232 |
pass
|
| 130 |
ashish |
233 |
|
| 559 |
chandransh |
234 |
def changeQuantity(self, cartId, itemId, quantity):
|
|
|
235 |
"""
|
|
|
236 |
Parameters:
|
|
|
237 |
- cartId
|
|
|
238 |
- itemId
|
|
|
239 |
- quantity
|
|
|
240 |
"""
|
|
|
241 |
pass
|
|
|
242 |
|
|
|
243 |
def changeItemStatus(self, cartId, itemId, status):
|
|
|
244 |
"""
|
|
|
245 |
Parameters:
|
|
|
246 |
- cartId
|
|
|
247 |
- itemId
|
|
|
248 |
- status
|
|
|
249 |
"""
|
|
|
250 |
pass
|
|
|
251 |
|
|
|
252 |
def addAddressToCart(self, cartId, addressId):
|
|
|
253 |
"""
|
|
|
254 |
Parameters:
|
|
|
255 |
- cartId
|
|
|
256 |
- addressId
|
|
|
257 |
"""
|
|
|
258 |
pass
|
|
|
259 |
|
| 690 |
chandransh |
260 |
def createOrders(self, cartId):
|
| 559 |
chandransh |
261 |
"""
|
| 690 |
chandransh |
262 |
Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
|
|
|
263 |
|
| 559 |
chandransh |
264 |
Parameters:
|
|
|
265 |
- cartId
|
|
|
266 |
"""
|
|
|
267 |
pass
|
|
|
268 |
|
|
|
269 |
def validateCart(self, cartId):
|
|
|
270 |
"""
|
| 690 |
chandransh |
271 |
Validates that:
|
|
|
272 |
1. The checkout timestamp is greater than the updatedOn timestamp.
|
|
|
273 |
2. None of the lines in the cart for an inactive item.
|
|
|
274 |
3. The estimate for any of the lines in cart doesn't change.
|
|
|
275 |
Returns true only if all three hold.
|
|
|
276 |
|
| 559 |
chandransh |
277 |
Parameters:
|
|
|
278 |
- cartId
|
|
|
279 |
"""
|
|
|
280 |
pass
|
|
|
281 |
|
| 690 |
chandransh |
282 |
def mergeCart(self, fromCartId, toCartId):
|
| 575 |
chandransh |
283 |
"""
|
| 690 |
chandransh |
284 |
Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
|
|
|
285 |
|
| 575 |
chandransh |
286 |
Parameters:
|
| 690 |
chandransh |
287 |
- fromCartId
|
|
|
288 |
- toCartId
|
|
|
289 |
"""
|
|
|
290 |
pass
|
|
|
291 |
|
|
|
292 |
def checkOut(self, cartId):
|
|
|
293 |
"""
|
|
|
294 |
Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
|
|
|
295 |
|
|
|
296 |
Parameters:
|
| 575 |
chandransh |
297 |
- cartId
|
|
|
298 |
"""
|
|
|
299 |
pass
|
|
|
300 |
|
| 690 |
chandransh |
301 |
def resetCart(self, cartId, items):
|
| 559 |
chandransh |
302 |
"""
|
| 690 |
chandransh |
303 |
The second parameter is a map of item ids and their quantities which have been successfully processed.
|
|
|
304 |
This methods removes the specified quantiry of the specified item from the cart.
|
|
|
305 |
|
| 559 |
chandransh |
306 |
Parameters:
|
| 690 |
chandransh |
307 |
- cartId
|
|
|
308 |
- items
|
| 559 |
chandransh |
309 |
"""
|
|
|
310 |
pass
|
|
|
311 |
|
| 772 |
rajveer |
312 |
def getMyResearch(self, userId):
|
| 559 |
chandransh |
313 |
"""
|
| 772 |
rajveer |
314 |
Widgets
|
|
|
315 |
|
| 559 |
chandransh |
316 |
Parameters:
|
| 772 |
rajveer |
317 |
- userId
|
| 559 |
chandransh |
318 |
"""
|
|
|
319 |
pass
|
|
|
320 |
|
| 772 |
rajveer |
321 |
def updateMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
322 |
"""
|
|
|
323 |
Parameters:
|
| 772 |
rajveer |
324 |
- userId
|
|
|
325 |
- itemId
|
| 559 |
chandransh |
326 |
"""
|
|
|
327 |
pass
|
|
|
328 |
|
| 772 |
rajveer |
329 |
def deleteItemFromMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
330 |
"""
|
|
|
331 |
Parameters:
|
| 772 |
rajveer |
332 |
- userId
|
|
|
333 |
- itemId
|
| 559 |
chandransh |
334 |
"""
|
|
|
335 |
pass
|
|
|
336 |
|
| 772 |
rajveer |
337 |
def updateBrowseHistory(self, userId, itemId):
|
| 559 |
chandransh |
338 |
"""
|
|
|
339 |
Parameters:
|
| 772 |
rajveer |
340 |
- userId
|
|
|
341 |
- itemId
|
| 559 |
chandransh |
342 |
"""
|
|
|
343 |
pass
|
|
|
344 |
|
| 772 |
rajveer |
345 |
def getBrowseHistory(self, userId):
|
| 559 |
chandransh |
346 |
"""
|
|
|
347 |
Parameters:
|
|
|
348 |
- userId
|
|
|
349 |
"""
|
|
|
350 |
pass
|
|
|
351 |
|
| 772 |
rajveer |
352 |
def mergeBrowseHistory(self, fromUserId, toUserId):
|
| 559 |
chandransh |
353 |
"""
|
|
|
354 |
Parameters:
|
| 772 |
rajveer |
355 |
- fromUserId
|
|
|
356 |
- toUserId
|
| 559 |
chandransh |
357 |
"""
|
|
|
358 |
pass
|
|
|
359 |
|
|
|
360 |
|
| 94 |
ashish |
361 |
class Client(Iface):
|
|
|
362 |
"""
|
|
|
363 |
service
|
|
|
364 |
"""
|
|
|
365 |
def __init__(self, iprot, oprot=None):
|
|
|
366 |
self._iprot = self._oprot = iprot
|
|
|
367 |
if oprot != None:
|
|
|
368 |
self._oprot = oprot
|
|
|
369 |
self._seqid = 0
|
|
|
370 |
|
| 765 |
rajveer |
371 |
def closeSession(self, ):
|
|
|
372 |
"""
|
|
|
373 |
For closing the open session in sqlalchemy
|
|
|
374 |
"""
|
|
|
375 |
self.send_closeSession()
|
|
|
376 |
self.recv_closeSession()
|
|
|
377 |
|
|
|
378 |
def send_closeSession(self, ):
|
|
|
379 |
self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
|
|
|
380 |
args = closeSession_args()
|
|
|
381 |
args.write(self._oprot)
|
|
|
382 |
self._oprot.writeMessageEnd()
|
|
|
383 |
self._oprot.trans.flush()
|
|
|
384 |
|
|
|
385 |
def recv_closeSession(self, ):
|
|
|
386 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
387 |
if mtype == TMessageType.EXCEPTION:
|
|
|
388 |
x = TApplicationException()
|
|
|
389 |
x.read(self._iprot)
|
|
|
390 |
self._iprot.readMessageEnd()
|
|
|
391 |
raise x
|
|
|
392 |
result = closeSession_result()
|
|
|
393 |
result.read(self._iprot)
|
|
|
394 |
self._iprot.readMessageEnd()
|
|
|
395 |
return
|
|
|
396 |
|
| 559 |
chandransh |
397 |
def createAnonymousUser(self, jsessionId):
|
| 94 |
ashish |
398 |
"""
|
|
|
399 |
Parameters:
|
| 559 |
chandransh |
400 |
- jsessionId
|
| 94 |
ashish |
401 |
"""
|
| 559 |
chandransh |
402 |
self.send_createAnonymousUser(jsessionId)
|
|
|
403 |
return self.recv_createAnonymousUser()
|
| 94 |
ashish |
404 |
|
| 559 |
chandransh |
405 |
def send_createAnonymousUser(self, jsessionId):
|
|
|
406 |
self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
|
|
|
407 |
args = createAnonymousUser_args()
|
|
|
408 |
args.jsessionId = jsessionId
|
| 94 |
ashish |
409 |
args.write(self._oprot)
|
|
|
410 |
self._oprot.writeMessageEnd()
|
|
|
411 |
self._oprot.trans.flush()
|
|
|
412 |
|
| 559 |
chandransh |
413 |
def recv_createAnonymousUser(self, ):
|
| 94 |
ashish |
414 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
415 |
if mtype == TMessageType.EXCEPTION:
|
|
|
416 |
x = TApplicationException()
|
|
|
417 |
x.read(self._iprot)
|
|
|
418 |
self._iprot.readMessageEnd()
|
|
|
419 |
raise x
|
| 559 |
chandransh |
420 |
result = createAnonymousUser_result()
|
| 94 |
ashish |
421 |
result.read(self._iprot)
|
|
|
422 |
self._iprot.readMessageEnd()
|
|
|
423 |
if result.success != None:
|
|
|
424 |
return result.success
|
| 559 |
chandransh |
425 |
if result.ucex != None:
|
|
|
426 |
raise result.ucex
|
|
|
427 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
|
| 94 |
ashish |
428 |
|
| 559 |
chandransh |
429 |
def getUserById(self, userId):
|
| 94 |
ashish |
430 |
"""
|
|
|
431 |
Parameters:
|
|
|
432 |
- userId
|
|
|
433 |
"""
|
| 559 |
chandransh |
434 |
self.send_getUserById(userId)
|
|
|
435 |
return self.recv_getUserById()
|
| 94 |
ashish |
436 |
|
| 559 |
chandransh |
437 |
def send_getUserById(self, userId):
|
|
|
438 |
self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
|
|
|
439 |
args = getUserById_args()
|
| 94 |
ashish |
440 |
args.userId = userId
|
|
|
441 |
args.write(self._oprot)
|
|
|
442 |
self._oprot.writeMessageEnd()
|
|
|
443 |
self._oprot.trans.flush()
|
|
|
444 |
|
| 559 |
chandransh |
445 |
def recv_getUserById(self, ):
|
| 94 |
ashish |
446 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
447 |
if mtype == TMessageType.EXCEPTION:
|
|
|
448 |
x = TApplicationException()
|
|
|
449 |
x.read(self._iprot)
|
|
|
450 |
self._iprot.readMessageEnd()
|
|
|
451 |
raise x
|
| 559 |
chandransh |
452 |
result = getUserById_result()
|
| 94 |
ashish |
453 |
result.read(self._iprot)
|
|
|
454 |
self._iprot.readMessageEnd()
|
|
|
455 |
if result.success != None:
|
|
|
456 |
return result.success
|
| 559 |
chandransh |
457 |
if result.ucex != None:
|
|
|
458 |
raise result.ucex
|
|
|
459 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
|
| 94 |
ashish |
460 |
|
| 559 |
chandransh |
461 |
def createUser(self, user):
|
| 94 |
ashish |
462 |
"""
|
|
|
463 |
Parameters:
|
| 559 |
chandransh |
464 |
- user
|
| 94 |
ashish |
465 |
"""
|
| 559 |
chandransh |
466 |
self.send_createUser(user)
|
|
|
467 |
return self.recv_createUser()
|
| 94 |
ashish |
468 |
|
| 559 |
chandransh |
469 |
def send_createUser(self, user):
|
|
|
470 |
self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
|
|
|
471 |
args = createUser_args()
|
|
|
472 |
args.user = user
|
| 94 |
ashish |
473 |
args.write(self._oprot)
|
|
|
474 |
self._oprot.writeMessageEnd()
|
|
|
475 |
self._oprot.trans.flush()
|
|
|
476 |
|
| 559 |
chandransh |
477 |
def recv_createUser(self, ):
|
| 94 |
ashish |
478 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
479 |
if mtype == TMessageType.EXCEPTION:
|
|
|
480 |
x = TApplicationException()
|
|
|
481 |
x.read(self._iprot)
|
|
|
482 |
self._iprot.readMessageEnd()
|
|
|
483 |
raise x
|
| 559 |
chandransh |
484 |
result = createUser_result()
|
| 94 |
ashish |
485 |
result.read(self._iprot)
|
|
|
486 |
self._iprot.readMessageEnd()
|
|
|
487 |
if result.success != None:
|
|
|
488 |
return result.success
|
| 559 |
chandransh |
489 |
if result.ucex != None:
|
|
|
490 |
raise result.ucex
|
|
|
491 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
|
| 94 |
ashish |
492 |
|
| 559 |
chandransh |
493 |
def updateUser(self, user):
|
| 94 |
ashish |
494 |
"""
|
|
|
495 |
Parameters:
|
| 559 |
chandransh |
496 |
- user
|
| 94 |
ashish |
497 |
"""
|
| 559 |
chandransh |
498 |
self.send_updateUser(user)
|
|
|
499 |
return self.recv_updateUser()
|
| 94 |
ashish |
500 |
|
| 559 |
chandransh |
501 |
def send_updateUser(self, user):
|
|
|
502 |
self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
|
|
|
503 |
args = updateUser_args()
|
|
|
504 |
args.user = user
|
| 94 |
ashish |
505 |
args.write(self._oprot)
|
|
|
506 |
self._oprot.writeMessageEnd()
|
|
|
507 |
self._oprot.trans.flush()
|
|
|
508 |
|
| 559 |
chandransh |
509 |
def recv_updateUser(self, ):
|
| 94 |
ashish |
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
|
| 559 |
chandransh |
516 |
result = updateUser_result()
|
| 94 |
ashish |
517 |
result.read(self._iprot)
|
|
|
518 |
self._iprot.readMessageEnd()
|
|
|
519 |
if result.success != None:
|
|
|
520 |
return result.success
|
| 559 |
chandransh |
521 |
if result.ucex != None:
|
|
|
522 |
raise result.ucex
|
|
|
523 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
|
| 94 |
ashish |
524 |
|
| 559 |
chandransh |
525 |
def deleteUser(self, userId):
|
| 94 |
ashish |
526 |
"""
|
|
|
527 |
Parameters:
|
|
|
528 |
- userId
|
|
|
529 |
"""
|
| 559 |
chandransh |
530 |
self.send_deleteUser(userId)
|
|
|
531 |
return self.recv_deleteUser()
|
| 94 |
ashish |
532 |
|
| 559 |
chandransh |
533 |
def send_deleteUser(self, userId):
|
|
|
534 |
self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
|
|
|
535 |
args = deleteUser_args()
|
| 94 |
ashish |
536 |
args.userId = userId
|
|
|
537 |
args.write(self._oprot)
|
|
|
538 |
self._oprot.writeMessageEnd()
|
|
|
539 |
self._oprot.trans.flush()
|
|
|
540 |
|
| 559 |
chandransh |
541 |
def recv_deleteUser(self, ):
|
| 94 |
ashish |
542 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
543 |
if mtype == TMessageType.EXCEPTION:
|
|
|
544 |
x = TApplicationException()
|
|
|
545 |
x.read(self._iprot)
|
|
|
546 |
self._iprot.readMessageEnd()
|
|
|
547 |
raise x
|
| 559 |
chandransh |
548 |
result = deleteUser_result()
|
| 94 |
ashish |
549 |
result.read(self._iprot)
|
|
|
550 |
self._iprot.readMessageEnd()
|
|
|
551 |
if result.success != None:
|
|
|
552 |
return result.success
|
| 559 |
chandransh |
553 |
if result.ucex != None:
|
|
|
554 |
raise result.ucex
|
|
|
555 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
|
| 94 |
ashish |
556 |
|
| 559 |
chandransh |
557 |
def getUserState(self, userId):
|
| 94 |
ashish |
558 |
"""
|
|
|
559 |
Parameters:
|
|
|
560 |
- userId
|
|
|
561 |
"""
|
| 559 |
chandransh |
562 |
self.send_getUserState(userId)
|
|
|
563 |
return self.recv_getUserState()
|
| 94 |
ashish |
564 |
|
| 559 |
chandransh |
565 |
def send_getUserState(self, userId):
|
|
|
566 |
self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
|
|
|
567 |
args = getUserState_args()
|
| 94 |
ashish |
568 |
args.userId = userId
|
|
|
569 |
args.write(self._oprot)
|
|
|
570 |
self._oprot.writeMessageEnd()
|
|
|
571 |
self._oprot.trans.flush()
|
|
|
572 |
|
| 559 |
chandransh |
573 |
def recv_getUserState(self, ):
|
| 94 |
ashish |
574 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
575 |
if mtype == TMessageType.EXCEPTION:
|
|
|
576 |
x = TApplicationException()
|
|
|
577 |
x.read(self._iprot)
|
|
|
578 |
self._iprot.readMessageEnd()
|
|
|
579 |
raise x
|
| 559 |
chandransh |
580 |
result = getUserState_result()
|
| 94 |
ashish |
581 |
result.read(self._iprot)
|
|
|
582 |
self._iprot.readMessageEnd()
|
|
|
583 |
if result.success != None:
|
|
|
584 |
return result.success
|
| 559 |
chandransh |
585 |
if result.ucex != None:
|
|
|
586 |
raise result.ucex
|
|
|
587 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
|
| 94 |
ashish |
588 |
|
| 559 |
chandransh |
589 |
def authenticateUser(self, email, password):
|
| 94 |
ashish |
590 |
"""
|
|
|
591 |
Parameters:
|
|
|
592 |
- email
|
|
|
593 |
- password
|
|
|
594 |
"""
|
| 559 |
chandransh |
595 |
self.send_authenticateUser(email, password)
|
| 122 |
ashish |
596 |
return self.recv_authenticateUser()
|
|
|
597 |
|
| 559 |
chandransh |
598 |
def send_authenticateUser(self, email, password):
|
| 122 |
ashish |
599 |
self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
|
|
|
600 |
args = authenticateUser_args()
|
| 559 |
chandransh |
601 |
args.email = email
|
| 122 |
ashish |
602 |
args.password = password
|
|
|
603 |
args.write(self._oprot)
|
|
|
604 |
self._oprot.writeMessageEnd()
|
|
|
605 |
self._oprot.trans.flush()
|
|
|
606 |
|
|
|
607 |
def recv_authenticateUser(self, ):
|
|
|
608 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
609 |
if mtype == TMessageType.EXCEPTION:
|
|
|
610 |
x = TApplicationException()
|
|
|
611 |
x.read(self._iprot)
|
|
|
612 |
self._iprot.readMessageEnd()
|
|
|
613 |
raise x
|
|
|
614 |
result = authenticateUser_result()
|
|
|
615 |
result.read(self._iprot)
|
|
|
616 |
self._iprot.readMessageEnd()
|
|
|
617 |
if result.success != None:
|
|
|
618 |
return result.success
|
| 559 |
chandransh |
619 |
if result.auex != None:
|
|
|
620 |
raise result.auex
|
| 122 |
ashish |
621 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
|
|
|
622 |
|
| 94 |
ashish |
623 |
def userExists(self, email):
|
|
|
624 |
"""
|
|
|
625 |
Parameters:
|
|
|
626 |
- email
|
|
|
627 |
"""
|
|
|
628 |
self.send_userExists(email)
|
|
|
629 |
return self.recv_userExists()
|
|
|
630 |
|
|
|
631 |
def send_userExists(self, email):
|
|
|
632 |
self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
|
|
|
633 |
args = userExists_args()
|
|
|
634 |
args.email = email
|
|
|
635 |
args.write(self._oprot)
|
|
|
636 |
self._oprot.writeMessageEnd()
|
|
|
637 |
self._oprot.trans.flush()
|
|
|
638 |
|
|
|
639 |
def recv_userExists(self, ):
|
|
|
640 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
641 |
if mtype == TMessageType.EXCEPTION:
|
|
|
642 |
x = TApplicationException()
|
|
|
643 |
x.read(self._iprot)
|
|
|
644 |
self._iprot.readMessageEnd()
|
|
|
645 |
raise x
|
|
|
646 |
result = userExists_result()
|
|
|
647 |
result.read(self._iprot)
|
|
|
648 |
self._iprot.readMessageEnd()
|
|
|
649 |
if result.success != None:
|
|
|
650 |
return result.success
|
|
|
651 |
if result.ucx != None:
|
|
|
652 |
raise result.ucx
|
|
|
653 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
|
|
|
654 |
|
| 567 |
rajveer |
655 |
def addAddressForUser(self, userId, address, setDefault):
|
| 94 |
ashish |
656 |
"""
|
|
|
657 |
Parameters:
|
|
|
658 |
- userId
|
|
|
659 |
- address
|
| 513 |
rajveer |
660 |
- setDefault
|
| 94 |
ashish |
661 |
"""
|
| 567 |
rajveer |
662 |
self.send_addAddressForUser(userId, address, setDefault)
|
| 94 |
ashish |
663 |
return self.recv_addAddressForUser()
|
|
|
664 |
|
| 567 |
rajveer |
665 |
def send_addAddressForUser(self, userId, address, setDefault):
|
| 94 |
ashish |
666 |
self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
|
|
|
667 |
args = addAddressForUser_args()
|
| 559 |
chandransh |
668 |
args.userId = userId
|
| 94 |
ashish |
669 |
args.address = address
|
| 513 |
rajveer |
670 |
args.setDefault = setDefault
|
| 94 |
ashish |
671 |
args.write(self._oprot)
|
|
|
672 |
self._oprot.writeMessageEnd()
|
|
|
673 |
self._oprot.trans.flush()
|
|
|
674 |
|
|
|
675 |
def recv_addAddressForUser(self, ):
|
|
|
676 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
677 |
if mtype == TMessageType.EXCEPTION:
|
|
|
678 |
x = TApplicationException()
|
|
|
679 |
x.read(self._iprot)
|
|
|
680 |
self._iprot.readMessageEnd()
|
|
|
681 |
raise x
|
|
|
682 |
result = addAddressForUser_result()
|
|
|
683 |
result.read(self._iprot)
|
|
|
684 |
self._iprot.readMessageEnd()
|
|
|
685 |
if result.success != None:
|
|
|
686 |
return result.success
|
|
|
687 |
if result.ucx != None:
|
|
|
688 |
raise result.ucx
|
|
|
689 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
|
|
|
690 |
|
|
|
691 |
def removeAddressForUser(self, userid, addressId):
|
|
|
692 |
"""
|
|
|
693 |
Parameters:
|
|
|
694 |
- userid
|
|
|
695 |
- addressId
|
|
|
696 |
"""
|
|
|
697 |
self.send_removeAddressForUser(userid, addressId)
|
|
|
698 |
return self.recv_removeAddressForUser()
|
|
|
699 |
|
|
|
700 |
def send_removeAddressForUser(self, userid, addressId):
|
|
|
701 |
self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
|
|
|
702 |
args = removeAddressForUser_args()
|
|
|
703 |
args.userid = userid
|
|
|
704 |
args.addressId = addressId
|
|
|
705 |
args.write(self._oprot)
|
|
|
706 |
self._oprot.writeMessageEnd()
|
|
|
707 |
self._oprot.trans.flush()
|
|
|
708 |
|
|
|
709 |
def recv_removeAddressForUser(self, ):
|
|
|
710 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
711 |
if mtype == TMessageType.EXCEPTION:
|
|
|
712 |
x = TApplicationException()
|
|
|
713 |
x.read(self._iprot)
|
|
|
714 |
self._iprot.readMessageEnd()
|
|
|
715 |
raise x
|
|
|
716 |
result = removeAddressForUser_result()
|
|
|
717 |
result.read(self._iprot)
|
|
|
718 |
self._iprot.readMessageEnd()
|
|
|
719 |
if result.success != None:
|
|
|
720 |
return result.success
|
|
|
721 |
if result.ucx != None:
|
|
|
722 |
raise result.ucx
|
|
|
723 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
|
|
|
724 |
|
|
|
725 |
def setUserAsLoggedIn(self, userId, timestamp):
|
|
|
726 |
"""
|
|
|
727 |
Parameters:
|
|
|
728 |
- userId
|
|
|
729 |
- timestamp
|
|
|
730 |
"""
|
|
|
731 |
self.send_setUserAsLoggedIn(userId, timestamp)
|
|
|
732 |
return self.recv_setUserAsLoggedIn()
|
|
|
733 |
|
|
|
734 |
def send_setUserAsLoggedIn(self, userId, timestamp):
|
|
|
735 |
self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
|
|
|
736 |
args = setUserAsLoggedIn_args()
|
|
|
737 |
args.userId = userId
|
|
|
738 |
args.timestamp = timestamp
|
|
|
739 |
args.write(self._oprot)
|
|
|
740 |
self._oprot.writeMessageEnd()
|
|
|
741 |
self._oprot.trans.flush()
|
|
|
742 |
|
|
|
743 |
def recv_setUserAsLoggedIn(self, ):
|
|
|
744 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
745 |
if mtype == TMessageType.EXCEPTION:
|
|
|
746 |
x = TApplicationException()
|
|
|
747 |
x.read(self._iprot)
|
|
|
748 |
self._iprot.readMessageEnd()
|
|
|
749 |
raise x
|
|
|
750 |
result = setUserAsLoggedIn_result()
|
|
|
751 |
result.read(self._iprot)
|
|
|
752 |
self._iprot.readMessageEnd()
|
|
|
753 |
if result.success != None:
|
|
|
754 |
return result.success
|
|
|
755 |
if result.ucx != None:
|
|
|
756 |
raise result.ucx
|
|
|
757 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
|
|
|
758 |
|
|
|
759 |
def setUserAsLoggedOut(self, userid, timestamp):
|
|
|
760 |
"""
|
|
|
761 |
Parameters:
|
|
|
762 |
- userid
|
|
|
763 |
- timestamp
|
|
|
764 |
"""
|
|
|
765 |
self.send_setUserAsLoggedOut(userid, timestamp)
|
|
|
766 |
return self.recv_setUserAsLoggedOut()
|
|
|
767 |
|
|
|
768 |
def send_setUserAsLoggedOut(self, userid, timestamp):
|
|
|
769 |
self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
|
|
|
770 |
args = setUserAsLoggedOut_args()
|
|
|
771 |
args.userid = userid
|
|
|
772 |
args.timestamp = timestamp
|
|
|
773 |
args.write(self._oprot)
|
|
|
774 |
self._oprot.writeMessageEnd()
|
|
|
775 |
self._oprot.trans.flush()
|
|
|
776 |
|
|
|
777 |
def recv_setUserAsLoggedOut(self, ):
|
|
|
778 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
779 |
if mtype == TMessageType.EXCEPTION:
|
|
|
780 |
x = TApplicationException()
|
|
|
781 |
x.read(self._iprot)
|
|
|
782 |
self._iprot.readMessageEnd()
|
|
|
783 |
raise x
|
|
|
784 |
result = setUserAsLoggedOut_result()
|
|
|
785 |
result.read(self._iprot)
|
|
|
786 |
self._iprot.readMessageEnd()
|
|
|
787 |
if result.success != None:
|
|
|
788 |
return result.success
|
|
|
789 |
if result.ucx != None:
|
|
|
790 |
raise result.ucx
|
|
|
791 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
|
|
|
792 |
|
| 504 |
rajveer |
793 |
def setDefaultAddress(self, userid, addressId):
|
|
|
794 |
"""
|
|
|
795 |
Parameters:
|
|
|
796 |
- userid
|
|
|
797 |
- addressId
|
|
|
798 |
"""
|
|
|
799 |
self.send_setDefaultAddress(userid, addressId)
|
|
|
800 |
return self.recv_setDefaultAddress()
|
|
|
801 |
|
|
|
802 |
def send_setDefaultAddress(self, userid, addressId):
|
|
|
803 |
self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
|
|
|
804 |
args = setDefaultAddress_args()
|
|
|
805 |
args.userid = userid
|
|
|
806 |
args.addressId = addressId
|
|
|
807 |
args.write(self._oprot)
|
|
|
808 |
self._oprot.writeMessageEnd()
|
|
|
809 |
self._oprot.trans.flush()
|
|
|
810 |
|
|
|
811 |
def recv_setDefaultAddress(self, ):
|
|
|
812 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
813 |
if mtype == TMessageType.EXCEPTION:
|
|
|
814 |
x = TApplicationException()
|
|
|
815 |
x.read(self._iprot)
|
|
|
816 |
self._iprot.readMessageEnd()
|
|
|
817 |
raise x
|
|
|
818 |
result = setDefaultAddress_result()
|
|
|
819 |
result.read(self._iprot)
|
|
|
820 |
self._iprot.readMessageEnd()
|
|
|
821 |
if result.success != None:
|
|
|
822 |
return result.success
|
|
|
823 |
if result.ucx != None:
|
|
|
824 |
raise result.ucx
|
|
|
825 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
|
|
|
826 |
|
| 594 |
rajveer |
827 |
def updatePassword(self, userid, oldPassword, newPassword):
|
| 94 |
ashish |
828 |
"""
|
|
|
829 |
Parameters:
|
|
|
830 |
- userid
|
| 594 |
rajveer |
831 |
- oldPassword
|
|
|
832 |
- newPassword
|
| 94 |
ashish |
833 |
"""
|
| 594 |
rajveer |
834 |
self.send_updatePassword(userid, oldPassword, newPassword)
|
| 94 |
ashish |
835 |
return self.recv_updatePassword()
|
|
|
836 |
|
| 594 |
rajveer |
837 |
def send_updatePassword(self, userid, oldPassword, newPassword):
|
| 94 |
ashish |
838 |
self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
|
|
|
839 |
args = updatePassword_args()
|
|
|
840 |
args.userid = userid
|
| 594 |
rajveer |
841 |
args.oldPassword = oldPassword
|
|
|
842 |
args.newPassword = newPassword
|
| 94 |
ashish |
843 |
args.write(self._oprot)
|
|
|
844 |
self._oprot.writeMessageEnd()
|
|
|
845 |
self._oprot.trans.flush()
|
|
|
846 |
|
|
|
847 |
def recv_updatePassword(self, ):
|
|
|
848 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
849 |
if mtype == TMessageType.EXCEPTION:
|
|
|
850 |
x = TApplicationException()
|
|
|
851 |
x.read(self._iprot)
|
|
|
852 |
self._iprot.readMessageEnd()
|
|
|
853 |
raise x
|
|
|
854 |
result = updatePassword_result()
|
|
|
855 |
result.read(self._iprot)
|
|
|
856 |
self._iprot.readMessageEnd()
|
|
|
857 |
if result.success != None:
|
|
|
858 |
return result.success
|
|
|
859 |
if result.ucx != None:
|
|
|
860 |
raise result.ucx
|
|
|
861 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
|
|
|
862 |
|
| 884 |
rajveer |
863 |
def forgotPassword(self, email, newPassword):
|
| 581 |
rajveer |
864 |
"""
|
|
|
865 |
Parameters:
|
|
|
866 |
- email
|
| 884 |
rajveer |
867 |
- newPassword
|
| 581 |
rajveer |
868 |
"""
|
| 884 |
rajveer |
869 |
self.send_forgotPassword(email, newPassword)
|
| 581 |
rajveer |
870 |
return self.recv_forgotPassword()
|
|
|
871 |
|
| 884 |
rajveer |
872 |
def send_forgotPassword(self, email, newPassword):
|
| 581 |
rajveer |
873 |
self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
|
|
|
874 |
args = forgotPassword_args()
|
|
|
875 |
args.email = email
|
| 884 |
rajveer |
876 |
args.newPassword = newPassword
|
| 581 |
rajveer |
877 |
args.write(self._oprot)
|
|
|
878 |
self._oprot.writeMessageEnd()
|
|
|
879 |
self._oprot.trans.flush()
|
|
|
880 |
|
|
|
881 |
def recv_forgotPassword(self, ):
|
|
|
882 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
883 |
if mtype == TMessageType.EXCEPTION:
|
|
|
884 |
x = TApplicationException()
|
|
|
885 |
x.read(self._iprot)
|
|
|
886 |
self._iprot.readMessageEnd()
|
|
|
887 |
raise x
|
|
|
888 |
result = forgotPassword_result()
|
|
|
889 |
result.read(self._iprot)
|
|
|
890 |
self._iprot.readMessageEnd()
|
|
|
891 |
if result.success != None:
|
|
|
892 |
return result.success
|
|
|
893 |
if result.ucx != None:
|
|
|
894 |
raise result.ucx
|
|
|
895 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
|
|
|
896 |
|
| 594 |
rajveer |
897 |
def getAllAddressesForUser(self, userId):
|
|
|
898 |
"""
|
|
|
899 |
Parameters:
|
|
|
900 |
- userId
|
|
|
901 |
"""
|
|
|
902 |
self.send_getAllAddressesForUser(userId)
|
|
|
903 |
return self.recv_getAllAddressesForUser()
|
|
|
904 |
|
|
|
905 |
def send_getAllAddressesForUser(self, userId):
|
|
|
906 |
self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
|
|
|
907 |
args = getAllAddressesForUser_args()
|
|
|
908 |
args.userId = userId
|
|
|
909 |
args.write(self._oprot)
|
|
|
910 |
self._oprot.writeMessageEnd()
|
|
|
911 |
self._oprot.trans.flush()
|
|
|
912 |
|
|
|
913 |
def recv_getAllAddressesForUser(self, ):
|
|
|
914 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
915 |
if mtype == TMessageType.EXCEPTION:
|
|
|
916 |
x = TApplicationException()
|
|
|
917 |
x.read(self._iprot)
|
|
|
918 |
self._iprot.readMessageEnd()
|
|
|
919 |
raise x
|
|
|
920 |
result = getAllAddressesForUser_result()
|
|
|
921 |
result.read(self._iprot)
|
|
|
922 |
self._iprot.readMessageEnd()
|
|
|
923 |
if result.success != None:
|
|
|
924 |
return result.success
|
|
|
925 |
if result.ucx != None:
|
|
|
926 |
raise result.ucx
|
|
|
927 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
|
|
|
928 |
|
|
|
929 |
def getDefaultAddressId(self, userId):
|
|
|
930 |
"""
|
|
|
931 |
Parameters:
|
|
|
932 |
- userId
|
|
|
933 |
"""
|
|
|
934 |
self.send_getDefaultAddressId(userId)
|
|
|
935 |
return self.recv_getDefaultAddressId()
|
|
|
936 |
|
|
|
937 |
def send_getDefaultAddressId(self, userId):
|
|
|
938 |
self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
|
|
|
939 |
args = getDefaultAddressId_args()
|
|
|
940 |
args.userId = userId
|
|
|
941 |
args.write(self._oprot)
|
|
|
942 |
self._oprot.writeMessageEnd()
|
|
|
943 |
self._oprot.trans.flush()
|
|
|
944 |
|
|
|
945 |
def recv_getDefaultAddressId(self, ):
|
|
|
946 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
947 |
if mtype == TMessageType.EXCEPTION:
|
|
|
948 |
x = TApplicationException()
|
|
|
949 |
x.read(self._iprot)
|
|
|
950 |
self._iprot.readMessageEnd()
|
|
|
951 |
raise x
|
|
|
952 |
result = getDefaultAddressId_result()
|
|
|
953 |
result.read(self._iprot)
|
|
|
954 |
self._iprot.readMessageEnd()
|
|
|
955 |
if result.success != None:
|
|
|
956 |
return result.success
|
|
|
957 |
if result.ucx != None:
|
|
|
958 |
raise result.ucx
|
|
|
959 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
|
|
|
960 |
|
| 785 |
rajveer |
961 |
def getDefaultPincode(self, userId):
|
|
|
962 |
"""
|
|
|
963 |
Parameters:
|
|
|
964 |
- userId
|
|
|
965 |
"""
|
|
|
966 |
self.send_getDefaultPincode(userId)
|
|
|
967 |
return self.recv_getDefaultPincode()
|
|
|
968 |
|
|
|
969 |
def send_getDefaultPincode(self, userId):
|
|
|
970 |
self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
|
|
|
971 |
args = getDefaultPincode_args()
|
|
|
972 |
args.userId = userId
|
|
|
973 |
args.write(self._oprot)
|
|
|
974 |
self._oprot.writeMessageEnd()
|
|
|
975 |
self._oprot.trans.flush()
|
|
|
976 |
|
|
|
977 |
def recv_getDefaultPincode(self, ):
|
|
|
978 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
979 |
if mtype == TMessageType.EXCEPTION:
|
|
|
980 |
x = TApplicationException()
|
|
|
981 |
x.read(self._iprot)
|
|
|
982 |
self._iprot.readMessageEnd()
|
|
|
983 |
raise x
|
|
|
984 |
result = getDefaultPincode_result()
|
|
|
985 |
result.read(self._iprot)
|
|
|
986 |
self._iprot.readMessageEnd()
|
|
|
987 |
if result.success != None:
|
|
|
988 |
return result.success
|
|
|
989 |
if result.ucx != None:
|
|
|
990 |
raise result.ucx
|
|
|
991 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
|
|
|
992 |
|
| 559 |
chandransh |
993 |
def createCart(self, userId):
|
| 94 |
ashish |
994 |
"""
|
|
|
995 |
Parameters:
|
| 559 |
chandransh |
996 |
- userId
|
| 94 |
ashish |
997 |
"""
|
| 559 |
chandransh |
998 |
self.send_createCart(userId)
|
|
|
999 |
return self.recv_createCart()
|
| 94 |
ashish |
1000 |
|
| 559 |
chandransh |
1001 |
def send_createCart(self, userId):
|
|
|
1002 |
self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
|
|
|
1003 |
args = createCart_args()
|
|
|
1004 |
args.userId = userId
|
| 94 |
ashish |
1005 |
args.write(self._oprot)
|
|
|
1006 |
self._oprot.writeMessageEnd()
|
|
|
1007 |
self._oprot.trans.flush()
|
|
|
1008 |
|
| 559 |
chandransh |
1009 |
def recv_createCart(self, ):
|
| 94 |
ashish |
1010 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1011 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1012 |
x = TApplicationException()
|
|
|
1013 |
x.read(self._iprot)
|
|
|
1014 |
self._iprot.readMessageEnd()
|
|
|
1015 |
raise x
|
| 559 |
chandransh |
1016 |
result = createCart_result()
|
| 94 |
ashish |
1017 |
result.read(self._iprot)
|
|
|
1018 |
self._iprot.readMessageEnd()
|
|
|
1019 |
if result.success != None:
|
|
|
1020 |
return result.success
|
| 559 |
chandransh |
1021 |
if result.scx != None:
|
|
|
1022 |
raise result.scx
|
|
|
1023 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
|
| 94 |
ashish |
1024 |
|
| 559 |
chandransh |
1025 |
def getCurrentCart(self, userId):
|
| 94 |
ashish |
1026 |
"""
|
|
|
1027 |
Parameters:
|
| 559 |
chandransh |
1028 |
- userId
|
| 94 |
ashish |
1029 |
"""
|
| 559 |
chandransh |
1030 |
self.send_getCurrentCart(userId)
|
|
|
1031 |
return self.recv_getCurrentCart()
|
| 94 |
ashish |
1032 |
|
| 559 |
chandransh |
1033 |
def send_getCurrentCart(self, userId):
|
|
|
1034 |
self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
|
|
|
1035 |
args = getCurrentCart_args()
|
|
|
1036 |
args.userId = userId
|
| 94 |
ashish |
1037 |
args.write(self._oprot)
|
|
|
1038 |
self._oprot.writeMessageEnd()
|
|
|
1039 |
self._oprot.trans.flush()
|
|
|
1040 |
|
| 559 |
chandransh |
1041 |
def recv_getCurrentCart(self, ):
|
| 94 |
ashish |
1042 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1043 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1044 |
x = TApplicationException()
|
|
|
1045 |
x.read(self._iprot)
|
|
|
1046 |
self._iprot.readMessageEnd()
|
|
|
1047 |
raise x
|
| 559 |
chandransh |
1048 |
result = getCurrentCart_result()
|
| 94 |
ashish |
1049 |
result.read(self._iprot)
|
|
|
1050 |
self._iprot.readMessageEnd()
|
|
|
1051 |
if result.success != None:
|
|
|
1052 |
return result.success
|
| 559 |
chandransh |
1053 |
if result.scx != None:
|
|
|
1054 |
raise result.scx
|
|
|
1055 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
|
| 94 |
ashish |
1056 |
|
| 559 |
chandransh |
1057 |
def getCart(self, cartId):
|
| 94 |
ashish |
1058 |
"""
|
|
|
1059 |
Parameters:
|
| 559 |
chandransh |
1060 |
- cartId
|
| 94 |
ashish |
1061 |
"""
|
| 559 |
chandransh |
1062 |
self.send_getCart(cartId)
|
|
|
1063 |
return self.recv_getCart()
|
| 94 |
ashish |
1064 |
|
| 559 |
chandransh |
1065 |
def send_getCart(self, cartId):
|
|
|
1066 |
self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
|
|
|
1067 |
args = getCart_args()
|
|
|
1068 |
args.cartId = cartId
|
| 94 |
ashish |
1069 |
args.write(self._oprot)
|
|
|
1070 |
self._oprot.writeMessageEnd()
|
|
|
1071 |
self._oprot.trans.flush()
|
|
|
1072 |
|
| 559 |
chandransh |
1073 |
def recv_getCart(self, ):
|
| 94 |
ashish |
1074 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1075 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1076 |
x = TApplicationException()
|
|
|
1077 |
x.read(self._iprot)
|
|
|
1078 |
self._iprot.readMessageEnd()
|
|
|
1079 |
raise x
|
| 559 |
chandransh |
1080 |
result = getCart_result()
|
| 94 |
ashish |
1081 |
result.read(self._iprot)
|
|
|
1082 |
self._iprot.readMessageEnd()
|
|
|
1083 |
if result.success != None:
|
|
|
1084 |
return result.success
|
| 559 |
chandransh |
1085 |
if result.scx != None:
|
|
|
1086 |
raise result.scx
|
|
|
1087 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
|
| 94 |
ashish |
1088 |
|
| 559 |
chandransh |
1089 |
def getCartsForUser(self, userId, status):
|
| 94 |
ashish |
1090 |
"""
|
|
|
1091 |
Parameters:
|
| 559 |
chandransh |
1092 |
- userId
|
|
|
1093 |
- status
|
| 94 |
ashish |
1094 |
"""
|
| 559 |
chandransh |
1095 |
self.send_getCartsForUser(userId, status)
|
|
|
1096 |
return self.recv_getCartsForUser()
|
| 94 |
ashish |
1097 |
|
| 559 |
chandransh |
1098 |
def send_getCartsForUser(self, userId, status):
|
|
|
1099 |
self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
|
|
|
1100 |
args = getCartsForUser_args()
|
|
|
1101 |
args.userId = userId
|
|
|
1102 |
args.status = status
|
| 94 |
ashish |
1103 |
args.write(self._oprot)
|
|
|
1104 |
self._oprot.writeMessageEnd()
|
|
|
1105 |
self._oprot.trans.flush()
|
|
|
1106 |
|
| 559 |
chandransh |
1107 |
def recv_getCartsForUser(self, ):
|
| 94 |
ashish |
1108 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1109 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1110 |
x = TApplicationException()
|
|
|
1111 |
x.read(self._iprot)
|
|
|
1112 |
self._iprot.readMessageEnd()
|
|
|
1113 |
raise x
|
| 559 |
chandransh |
1114 |
result = getCartsForUser_result()
|
| 94 |
ashish |
1115 |
result.read(self._iprot)
|
|
|
1116 |
self._iprot.readMessageEnd()
|
|
|
1117 |
if result.success != None:
|
|
|
1118 |
return result.success
|
| 559 |
chandransh |
1119 |
if result.scx != None:
|
|
|
1120 |
raise result.scx
|
|
|
1121 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
|
| 94 |
ashish |
1122 |
|
| 559 |
chandransh |
1123 |
def getCartsByStatus(self, status):
|
| 94 |
ashish |
1124 |
"""
|
|
|
1125 |
Parameters:
|
| 559 |
chandransh |
1126 |
- status
|
| 94 |
ashish |
1127 |
"""
|
| 559 |
chandransh |
1128 |
self.send_getCartsByStatus(status)
|
|
|
1129 |
return self.recv_getCartsByStatus()
|
| 94 |
ashish |
1130 |
|
| 559 |
chandransh |
1131 |
def send_getCartsByStatus(self, status):
|
|
|
1132 |
self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
|
|
|
1133 |
args = getCartsByStatus_args()
|
|
|
1134 |
args.status = status
|
| 94 |
ashish |
1135 |
args.write(self._oprot)
|
|
|
1136 |
self._oprot.writeMessageEnd()
|
|
|
1137 |
self._oprot.trans.flush()
|
|
|
1138 |
|
| 559 |
chandransh |
1139 |
def recv_getCartsByStatus(self, ):
|
| 94 |
ashish |
1140 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1141 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1142 |
x = TApplicationException()
|
|
|
1143 |
x.read(self._iprot)
|
|
|
1144 |
self._iprot.readMessageEnd()
|
|
|
1145 |
raise x
|
| 559 |
chandransh |
1146 |
result = getCartsByStatus_result()
|
| 94 |
ashish |
1147 |
result.read(self._iprot)
|
|
|
1148 |
self._iprot.readMessageEnd()
|
|
|
1149 |
if result.success != None:
|
|
|
1150 |
return result.success
|
| 559 |
chandransh |
1151 |
if result.scx != None:
|
|
|
1152 |
raise result.scx
|
|
|
1153 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
|
| 94 |
ashish |
1154 |
|
| 559 |
chandransh |
1155 |
def getCartsByTime(self, from_time, to_time, status):
|
| 94 |
ashish |
1156 |
"""
|
|
|
1157 |
Parameters:
|
| 559 |
chandransh |
1158 |
- from_time
|
|
|
1159 |
- to_time
|
|
|
1160 |
- status
|
| 94 |
ashish |
1161 |
"""
|
| 559 |
chandransh |
1162 |
self.send_getCartsByTime(from_time, to_time, status)
|
|
|
1163 |
return self.recv_getCartsByTime()
|
| 94 |
ashish |
1164 |
|
| 559 |
chandransh |
1165 |
def send_getCartsByTime(self, from_time, to_time, status):
|
|
|
1166 |
self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
|
|
|
1167 |
args = getCartsByTime_args()
|
|
|
1168 |
args.from_time = from_time
|
|
|
1169 |
args.to_time = to_time
|
|
|
1170 |
args.status = status
|
| 94 |
ashish |
1171 |
args.write(self._oprot)
|
|
|
1172 |
self._oprot.writeMessageEnd()
|
|
|
1173 |
self._oprot.trans.flush()
|
|
|
1174 |
|
| 559 |
chandransh |
1175 |
def recv_getCartsByTime(self, ):
|
| 94 |
ashish |
1176 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1177 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1178 |
x = TApplicationException()
|
|
|
1179 |
x.read(self._iprot)
|
|
|
1180 |
self._iprot.readMessageEnd()
|
|
|
1181 |
raise x
|
| 559 |
chandransh |
1182 |
result = getCartsByTime_result()
|
| 94 |
ashish |
1183 |
result.read(self._iprot)
|
|
|
1184 |
self._iprot.readMessageEnd()
|
|
|
1185 |
if result.success != None:
|
|
|
1186 |
return result.success
|
| 559 |
chandransh |
1187 |
if result.scx != None:
|
|
|
1188 |
raise result.scx
|
|
|
1189 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
|
| 94 |
ashish |
1190 |
|
| 559 |
chandransh |
1191 |
def changeCartStatus(self, cartId, status):
|
| 130 |
ashish |
1192 |
"""
|
|
|
1193 |
Parameters:
|
| 559 |
chandransh |
1194 |
- cartId
|
|
|
1195 |
- status
|
| 130 |
ashish |
1196 |
"""
|
| 559 |
chandransh |
1197 |
self.send_changeCartStatus(cartId, status)
|
|
|
1198 |
self.recv_changeCartStatus()
|
| 94 |
ashish |
1199 |
|
| 559 |
chandransh |
1200 |
def send_changeCartStatus(self, cartId, status):
|
|
|
1201 |
self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
|
|
|
1202 |
args = changeCartStatus_args()
|
|
|
1203 |
args.cartId = cartId
|
|
|
1204 |
args.status = status
|
| 130 |
ashish |
1205 |
args.write(self._oprot)
|
|
|
1206 |
self._oprot.writeMessageEnd()
|
|
|
1207 |
self._oprot.trans.flush()
|
|
|
1208 |
|
| 559 |
chandransh |
1209 |
def recv_changeCartStatus(self, ):
|
| 130 |
ashish |
1210 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1211 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1212 |
x = TApplicationException()
|
|
|
1213 |
x.read(self._iprot)
|
|
|
1214 |
self._iprot.readMessageEnd()
|
|
|
1215 |
raise x
|
| 559 |
chandransh |
1216 |
result = changeCartStatus_result()
|
| 130 |
ashish |
1217 |
result.read(self._iprot)
|
|
|
1218 |
self._iprot.readMessageEnd()
|
| 559 |
chandransh |
1219 |
if result.scx != None:
|
|
|
1220 |
raise result.scx
|
|
|
1221 |
return
|
|
|
1222 |
|
|
|
1223 |
def addItemToCart(self, cartId, itemId, quantity):
|
|
|
1224 |
"""
|
|
|
1225 |
Parameters:
|
|
|
1226 |
- cartId
|
|
|
1227 |
- itemId
|
|
|
1228 |
- quantity
|
|
|
1229 |
"""
|
|
|
1230 |
self.send_addItemToCart(cartId, itemId, quantity)
|
|
|
1231 |
self.recv_addItemToCart()
|
|
|
1232 |
|
|
|
1233 |
def send_addItemToCart(self, cartId, itemId, quantity):
|
|
|
1234 |
self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
|
|
|
1235 |
args = addItemToCart_args()
|
|
|
1236 |
args.cartId = cartId
|
|
|
1237 |
args.itemId = itemId
|
|
|
1238 |
args.quantity = quantity
|
|
|
1239 |
args.write(self._oprot)
|
|
|
1240 |
self._oprot.writeMessageEnd()
|
|
|
1241 |
self._oprot.trans.flush()
|
|
|
1242 |
|
|
|
1243 |
def recv_addItemToCart(self, ):
|
|
|
1244 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1245 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1246 |
x = TApplicationException()
|
|
|
1247 |
x.read(self._iprot)
|
|
|
1248 |
self._iprot.readMessageEnd()
|
|
|
1249 |
raise x
|
|
|
1250 |
result = addItemToCart_result()
|
|
|
1251 |
result.read(self._iprot)
|
|
|
1252 |
self._iprot.readMessageEnd()
|
|
|
1253 |
if result.scx != None:
|
|
|
1254 |
raise result.scx
|
|
|
1255 |
return
|
|
|
1256 |
|
|
|
1257 |
def deleteItemFromCart(self, cartId, itemId):
|
|
|
1258 |
"""
|
|
|
1259 |
Parameters:
|
|
|
1260 |
- cartId
|
|
|
1261 |
- itemId
|
|
|
1262 |
"""
|
|
|
1263 |
self.send_deleteItemFromCart(cartId, itemId)
|
|
|
1264 |
self.recv_deleteItemFromCart()
|
|
|
1265 |
|
|
|
1266 |
def send_deleteItemFromCart(self, cartId, itemId):
|
|
|
1267 |
self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
|
|
|
1268 |
args = deleteItemFromCart_args()
|
|
|
1269 |
args.cartId = cartId
|
|
|
1270 |
args.itemId = itemId
|
|
|
1271 |
args.write(self._oprot)
|
|
|
1272 |
self._oprot.writeMessageEnd()
|
|
|
1273 |
self._oprot.trans.flush()
|
|
|
1274 |
|
|
|
1275 |
def recv_deleteItemFromCart(self, ):
|
|
|
1276 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1277 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1278 |
x = TApplicationException()
|
|
|
1279 |
x.read(self._iprot)
|
|
|
1280 |
self._iprot.readMessageEnd()
|
|
|
1281 |
raise x
|
|
|
1282 |
result = deleteItemFromCart_result()
|
|
|
1283 |
result.read(self._iprot)
|
|
|
1284 |
self._iprot.readMessageEnd()
|
|
|
1285 |
if result.scx != None:
|
|
|
1286 |
raise result.scx
|
|
|
1287 |
return
|
|
|
1288 |
|
|
|
1289 |
def changeQuantity(self, cartId, itemId, quantity):
|
|
|
1290 |
"""
|
|
|
1291 |
Parameters:
|
|
|
1292 |
- cartId
|
|
|
1293 |
- itemId
|
|
|
1294 |
- quantity
|
|
|
1295 |
"""
|
|
|
1296 |
self.send_changeQuantity(cartId, itemId, quantity)
|
|
|
1297 |
self.recv_changeQuantity()
|
|
|
1298 |
|
|
|
1299 |
def send_changeQuantity(self, cartId, itemId, quantity):
|
|
|
1300 |
self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
|
|
|
1301 |
args = changeQuantity_args()
|
|
|
1302 |
args.cartId = cartId
|
|
|
1303 |
args.itemId = itemId
|
|
|
1304 |
args.quantity = quantity
|
|
|
1305 |
args.write(self._oprot)
|
|
|
1306 |
self._oprot.writeMessageEnd()
|
|
|
1307 |
self._oprot.trans.flush()
|
|
|
1308 |
|
|
|
1309 |
def recv_changeQuantity(self, ):
|
|
|
1310 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1311 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1312 |
x = TApplicationException()
|
|
|
1313 |
x.read(self._iprot)
|
|
|
1314 |
self._iprot.readMessageEnd()
|
|
|
1315 |
raise x
|
|
|
1316 |
result = changeQuantity_result()
|
|
|
1317 |
result.read(self._iprot)
|
|
|
1318 |
self._iprot.readMessageEnd()
|
|
|
1319 |
if result.scx != None:
|
|
|
1320 |
raise result.scx
|
|
|
1321 |
return
|
|
|
1322 |
|
|
|
1323 |
def changeItemStatus(self, cartId, itemId, status):
|
|
|
1324 |
"""
|
|
|
1325 |
Parameters:
|
|
|
1326 |
- cartId
|
|
|
1327 |
- itemId
|
|
|
1328 |
- status
|
|
|
1329 |
"""
|
|
|
1330 |
self.send_changeItemStatus(cartId, itemId, status)
|
|
|
1331 |
self.recv_changeItemStatus()
|
|
|
1332 |
|
|
|
1333 |
def send_changeItemStatus(self, cartId, itemId, status):
|
|
|
1334 |
self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
|
|
|
1335 |
args = changeItemStatus_args()
|
|
|
1336 |
args.cartId = cartId
|
|
|
1337 |
args.itemId = itemId
|
|
|
1338 |
args.status = status
|
|
|
1339 |
args.write(self._oprot)
|
|
|
1340 |
self._oprot.writeMessageEnd()
|
|
|
1341 |
self._oprot.trans.flush()
|
|
|
1342 |
|
|
|
1343 |
def recv_changeItemStatus(self, ):
|
|
|
1344 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1345 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1346 |
x = TApplicationException()
|
|
|
1347 |
x.read(self._iprot)
|
|
|
1348 |
self._iprot.readMessageEnd()
|
|
|
1349 |
raise x
|
|
|
1350 |
result = changeItemStatus_result()
|
|
|
1351 |
result.read(self._iprot)
|
|
|
1352 |
self._iprot.readMessageEnd()
|
|
|
1353 |
if result.scx != None:
|
|
|
1354 |
raise result.scx
|
|
|
1355 |
return
|
|
|
1356 |
|
|
|
1357 |
def addAddressToCart(self, cartId, addressId):
|
|
|
1358 |
"""
|
|
|
1359 |
Parameters:
|
|
|
1360 |
- cartId
|
|
|
1361 |
- addressId
|
|
|
1362 |
"""
|
|
|
1363 |
self.send_addAddressToCart(cartId, addressId)
|
|
|
1364 |
self.recv_addAddressToCart()
|
|
|
1365 |
|
|
|
1366 |
def send_addAddressToCart(self, cartId, addressId):
|
|
|
1367 |
self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
|
|
|
1368 |
args = addAddressToCart_args()
|
|
|
1369 |
args.cartId = cartId
|
|
|
1370 |
args.addressId = addressId
|
|
|
1371 |
args.write(self._oprot)
|
|
|
1372 |
self._oprot.writeMessageEnd()
|
|
|
1373 |
self._oprot.trans.flush()
|
|
|
1374 |
|
|
|
1375 |
def recv_addAddressToCart(self, ):
|
|
|
1376 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1377 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1378 |
x = TApplicationException()
|
|
|
1379 |
x.read(self._iprot)
|
|
|
1380 |
self._iprot.readMessageEnd()
|
|
|
1381 |
raise x
|
|
|
1382 |
result = addAddressToCart_result()
|
|
|
1383 |
result.read(self._iprot)
|
|
|
1384 |
self._iprot.readMessageEnd()
|
| 575 |
chandransh |
1385 |
if result.scx != None:
|
|
|
1386 |
raise result.scx
|
| 559 |
chandransh |
1387 |
return
|
|
|
1388 |
|
| 690 |
chandransh |
1389 |
def createOrders(self, cartId):
|
| 559 |
chandransh |
1390 |
"""
|
| 690 |
chandransh |
1391 |
Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
|
|
|
1392 |
|
| 559 |
chandransh |
1393 |
Parameters:
|
|
|
1394 |
- cartId
|
|
|
1395 |
"""
|
| 690 |
chandransh |
1396 |
self.send_createOrders(cartId)
|
|
|
1397 |
return self.recv_createOrders()
|
| 559 |
chandransh |
1398 |
|
| 690 |
chandransh |
1399 |
def send_createOrders(self, cartId):
|
|
|
1400 |
self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
|
|
|
1401 |
args = createOrders_args()
|
| 559 |
chandransh |
1402 |
args.cartId = cartId
|
|
|
1403 |
args.write(self._oprot)
|
|
|
1404 |
self._oprot.writeMessageEnd()
|
|
|
1405 |
self._oprot.trans.flush()
|
|
|
1406 |
|
| 690 |
chandransh |
1407 |
def recv_createOrders(self, ):
|
| 559 |
chandransh |
1408 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1409 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1410 |
x = TApplicationException()
|
|
|
1411 |
x.read(self._iprot)
|
|
|
1412 |
self._iprot.readMessageEnd()
|
|
|
1413 |
raise x
|
| 690 |
chandransh |
1414 |
result = createOrders_result()
|
| 559 |
chandransh |
1415 |
result.read(self._iprot)
|
|
|
1416 |
self._iprot.readMessageEnd()
|
| 130 |
ashish |
1417 |
if result.success != None:
|
|
|
1418 |
return result.success
|
| 559 |
chandransh |
1419 |
if result.scx != None:
|
|
|
1420 |
raise result.scx
|
| 690 |
chandransh |
1421 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
|
| 130 |
ashish |
1422 |
|
| 559 |
chandransh |
1423 |
def validateCart(self, cartId):
|
| 130 |
ashish |
1424 |
"""
|
| 690 |
chandransh |
1425 |
Validates that:
|
|
|
1426 |
1. The checkout timestamp is greater than the updatedOn timestamp.
|
|
|
1427 |
2. None of the lines in the cart for an inactive item.
|
|
|
1428 |
3. The estimate for any of the lines in cart doesn't change.
|
|
|
1429 |
Returns true only if all three hold.
|
|
|
1430 |
|
| 130 |
ashish |
1431 |
Parameters:
|
| 559 |
chandransh |
1432 |
- cartId
|
| 130 |
ashish |
1433 |
"""
|
| 559 |
chandransh |
1434 |
self.send_validateCart(cartId)
|
|
|
1435 |
return self.recv_validateCart()
|
| 130 |
ashish |
1436 |
|
| 559 |
chandransh |
1437 |
def send_validateCart(self, cartId):
|
|
|
1438 |
self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
|
|
|
1439 |
args = validateCart_args()
|
|
|
1440 |
args.cartId = cartId
|
| 130 |
ashish |
1441 |
args.write(self._oprot)
|
|
|
1442 |
self._oprot.writeMessageEnd()
|
|
|
1443 |
self._oprot.trans.flush()
|
|
|
1444 |
|
| 559 |
chandransh |
1445 |
def recv_validateCart(self, ):
|
| 130 |
ashish |
1446 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1447 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1448 |
x = TApplicationException()
|
|
|
1449 |
x.read(self._iprot)
|
|
|
1450 |
self._iprot.readMessageEnd()
|
|
|
1451 |
raise x
|
| 559 |
chandransh |
1452 |
result = validateCart_result()
|
| 130 |
ashish |
1453 |
result.read(self._iprot)
|
|
|
1454 |
self._iprot.readMessageEnd()
|
|
|
1455 |
if result.success != None:
|
|
|
1456 |
return result.success
|
| 575 |
chandransh |
1457 |
if result.scex != None:
|
|
|
1458 |
raise result.scex
|
| 559 |
chandransh |
1459 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
|
| 130 |
ashish |
1460 |
|
| 690 |
chandransh |
1461 |
def mergeCart(self, fromCartId, toCartId):
|
| 575 |
chandransh |
1462 |
"""
|
| 690 |
chandransh |
1463 |
Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
|
|
|
1464 |
|
| 575 |
chandransh |
1465 |
Parameters:
|
| 690 |
chandransh |
1466 |
- fromCartId
|
|
|
1467 |
- toCartId
|
|
|
1468 |
"""
|
|
|
1469 |
self.send_mergeCart(fromCartId, toCartId)
|
|
|
1470 |
self.recv_mergeCart()
|
|
|
1471 |
|
|
|
1472 |
def send_mergeCart(self, fromCartId, toCartId):
|
|
|
1473 |
self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
|
|
|
1474 |
args = mergeCart_args()
|
|
|
1475 |
args.fromCartId = fromCartId
|
|
|
1476 |
args.toCartId = toCartId
|
|
|
1477 |
args.write(self._oprot)
|
|
|
1478 |
self._oprot.writeMessageEnd()
|
|
|
1479 |
self._oprot.trans.flush()
|
|
|
1480 |
|
|
|
1481 |
def recv_mergeCart(self, ):
|
|
|
1482 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1483 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1484 |
x = TApplicationException()
|
|
|
1485 |
x.read(self._iprot)
|
|
|
1486 |
self._iprot.readMessageEnd()
|
|
|
1487 |
raise x
|
|
|
1488 |
result = mergeCart_result()
|
|
|
1489 |
result.read(self._iprot)
|
|
|
1490 |
self._iprot.readMessageEnd()
|
|
|
1491 |
return
|
|
|
1492 |
|
|
|
1493 |
def checkOut(self, cartId):
|
|
|
1494 |
"""
|
|
|
1495 |
Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
|
|
|
1496 |
|
|
|
1497 |
Parameters:
|
| 575 |
chandransh |
1498 |
- cartId
|
|
|
1499 |
"""
|
| 690 |
chandransh |
1500 |
self.send_checkOut(cartId)
|
|
|
1501 |
return self.recv_checkOut()
|
| 575 |
chandransh |
1502 |
|
| 690 |
chandransh |
1503 |
def send_checkOut(self, cartId):
|
|
|
1504 |
self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
|
|
|
1505 |
args = checkOut_args()
|
| 575 |
chandransh |
1506 |
args.cartId = cartId
|
|
|
1507 |
args.write(self._oprot)
|
|
|
1508 |
self._oprot.writeMessageEnd()
|
|
|
1509 |
self._oprot.trans.flush()
|
|
|
1510 |
|
| 690 |
chandransh |
1511 |
def recv_checkOut(self, ):
|
| 575 |
chandransh |
1512 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1513 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1514 |
x = TApplicationException()
|
|
|
1515 |
x.read(self._iprot)
|
|
|
1516 |
self._iprot.readMessageEnd()
|
|
|
1517 |
raise x
|
| 690 |
chandransh |
1518 |
result = checkOut_result()
|
| 575 |
chandransh |
1519 |
result.read(self._iprot)
|
|
|
1520 |
self._iprot.readMessageEnd()
|
|
|
1521 |
if result.success != None:
|
|
|
1522 |
return result.success
|
|
|
1523 |
if result.scex != None:
|
|
|
1524 |
raise result.scex
|
| 690 |
chandransh |
1525 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
|
| 575 |
chandransh |
1526 |
|
| 690 |
chandransh |
1527 |
def resetCart(self, cartId, items):
|
| 559 |
chandransh |
1528 |
"""
|
| 690 |
chandransh |
1529 |
The second parameter is a map of item ids and their quantities which have been successfully processed.
|
|
|
1530 |
This methods removes the specified quantiry of the specified item from the cart.
|
|
|
1531 |
|
| 559 |
chandransh |
1532 |
Parameters:
|
| 690 |
chandransh |
1533 |
- cartId
|
|
|
1534 |
- items
|
| 559 |
chandransh |
1535 |
"""
|
| 690 |
chandransh |
1536 |
self.send_resetCart(cartId, items)
|
|
|
1537 |
return self.recv_resetCart()
|
| 130 |
ashish |
1538 |
|
| 690 |
chandransh |
1539 |
def send_resetCart(self, cartId, items):
|
|
|
1540 |
self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
|
|
|
1541 |
args = resetCart_args()
|
|
|
1542 |
args.cartId = cartId
|
|
|
1543 |
args.items = items
|
| 559 |
chandransh |
1544 |
args.write(self._oprot)
|
|
|
1545 |
self._oprot.writeMessageEnd()
|
|
|
1546 |
self._oprot.trans.flush()
|
|
|
1547 |
|
| 690 |
chandransh |
1548 |
def recv_resetCart(self, ):
|
| 559 |
chandransh |
1549 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1550 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1551 |
x = TApplicationException()
|
|
|
1552 |
x.read(self._iprot)
|
|
|
1553 |
self._iprot.readMessageEnd()
|
|
|
1554 |
raise x
|
| 690 |
chandransh |
1555 |
result = resetCart_result()
|
| 559 |
chandransh |
1556 |
result.read(self._iprot)
|
|
|
1557 |
self._iprot.readMessageEnd()
|
| 690 |
chandransh |
1558 |
if result.success != None:
|
|
|
1559 |
return result.success
|
|
|
1560 |
if result.scex != None:
|
|
|
1561 |
raise result.scex
|
|
|
1562 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
|
| 559 |
chandransh |
1563 |
|
| 772 |
rajveer |
1564 |
def getMyResearch(self, userId):
|
| 559 |
chandransh |
1565 |
"""
|
| 772 |
rajveer |
1566 |
Widgets
|
|
|
1567 |
|
| 559 |
chandransh |
1568 |
Parameters:
|
|
|
1569 |
- userId
|
|
|
1570 |
"""
|
| 772 |
rajveer |
1571 |
self.send_getMyResearch(userId)
|
| 559 |
chandransh |
1572 |
return self.recv_getMyResearch()
|
|
|
1573 |
|
| 772 |
rajveer |
1574 |
def send_getMyResearch(self, userId):
|
| 559 |
chandransh |
1575 |
self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
|
|
|
1576 |
args = getMyResearch_args()
|
| 772 |
rajveer |
1577 |
args.userId = userId
|
| 559 |
chandransh |
1578 |
args.write(self._oprot)
|
|
|
1579 |
self._oprot.writeMessageEnd()
|
|
|
1580 |
self._oprot.trans.flush()
|
|
|
1581 |
|
|
|
1582 |
def recv_getMyResearch(self, ):
|
|
|
1583 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1584 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1585 |
x = TApplicationException()
|
|
|
1586 |
x.read(self._iprot)
|
|
|
1587 |
self._iprot.readMessageEnd()
|
|
|
1588 |
raise x
|
|
|
1589 |
result = getMyResearch_result()
|
|
|
1590 |
result.read(self._iprot)
|
|
|
1591 |
self._iprot.readMessageEnd()
|
|
|
1592 |
if result.success != None:
|
|
|
1593 |
return result.success
|
|
|
1594 |
if result.scx != None:
|
|
|
1595 |
raise result.scx
|
|
|
1596 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
|
|
|
1597 |
|
| 772 |
rajveer |
1598 |
def updateMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
1599 |
"""
|
|
|
1600 |
Parameters:
|
| 772 |
rajveer |
1601 |
- userId
|
|
|
1602 |
- itemId
|
| 559 |
chandransh |
1603 |
"""
|
| 772 |
rajveer |
1604 |
self.send_updateMyResearch(userId, itemId)
|
| 559 |
chandransh |
1605 |
return self.recv_updateMyResearch()
|
|
|
1606 |
|
| 772 |
rajveer |
1607 |
def send_updateMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
1608 |
self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
|
|
|
1609 |
args = updateMyResearch_args()
|
| 772 |
rajveer |
1610 |
args.userId = userId
|
|
|
1611 |
args.itemId = itemId
|
| 559 |
chandransh |
1612 |
args.write(self._oprot)
|
|
|
1613 |
self._oprot.writeMessageEnd()
|
|
|
1614 |
self._oprot.trans.flush()
|
|
|
1615 |
|
|
|
1616 |
def recv_updateMyResearch(self, ):
|
|
|
1617 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1618 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1619 |
x = TApplicationException()
|
|
|
1620 |
x.read(self._iprot)
|
|
|
1621 |
self._iprot.readMessageEnd()
|
|
|
1622 |
raise x
|
|
|
1623 |
result = updateMyResearch_result()
|
|
|
1624 |
result.read(self._iprot)
|
|
|
1625 |
self._iprot.readMessageEnd()
|
|
|
1626 |
if result.success != None:
|
|
|
1627 |
return result.success
|
|
|
1628 |
if result.scx != None:
|
|
|
1629 |
raise result.scx
|
|
|
1630 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
|
|
|
1631 |
|
| 772 |
rajveer |
1632 |
def deleteItemFromMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
1633 |
"""
|
|
|
1634 |
Parameters:
|
| 772 |
rajveer |
1635 |
- userId
|
|
|
1636 |
- itemId
|
| 559 |
chandransh |
1637 |
"""
|
| 772 |
rajveer |
1638 |
self.send_deleteItemFromMyResearch(userId, itemId)
|
| 559 |
chandransh |
1639 |
self.recv_deleteItemFromMyResearch()
|
|
|
1640 |
|
| 772 |
rajveer |
1641 |
def send_deleteItemFromMyResearch(self, userId, itemId):
|
| 559 |
chandransh |
1642 |
self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
|
|
|
1643 |
args = deleteItemFromMyResearch_args()
|
| 772 |
rajveer |
1644 |
args.userId = userId
|
|
|
1645 |
args.itemId = itemId
|
| 559 |
chandransh |
1646 |
args.write(self._oprot)
|
|
|
1647 |
self._oprot.writeMessageEnd()
|
|
|
1648 |
self._oprot.trans.flush()
|
|
|
1649 |
|
|
|
1650 |
def recv_deleteItemFromMyResearch(self, ):
|
|
|
1651 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1652 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1653 |
x = TApplicationException()
|
|
|
1654 |
x.read(self._iprot)
|
|
|
1655 |
self._iprot.readMessageEnd()
|
|
|
1656 |
raise x
|
|
|
1657 |
result = deleteItemFromMyResearch_result()
|
|
|
1658 |
result.read(self._iprot)
|
|
|
1659 |
self._iprot.readMessageEnd()
|
|
|
1660 |
if result.scx != None:
|
|
|
1661 |
raise result.scx
|
|
|
1662 |
return
|
|
|
1663 |
|
| 772 |
rajveer |
1664 |
def updateBrowseHistory(self, userId, itemId):
|
| 559 |
chandransh |
1665 |
"""
|
|
|
1666 |
Parameters:
|
| 772 |
rajveer |
1667 |
- userId
|
|
|
1668 |
- itemId
|
| 559 |
chandransh |
1669 |
"""
|
| 772 |
rajveer |
1670 |
self.send_updateBrowseHistory(userId, itemId)
|
|
|
1671 |
self.recv_updateBrowseHistory()
|
| 559 |
chandransh |
1672 |
|
| 772 |
rajveer |
1673 |
def send_updateBrowseHistory(self, userId, itemId):
|
|
|
1674 |
self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
|
|
|
1675 |
args = updateBrowseHistory_args()
|
|
|
1676 |
args.userId = userId
|
|
|
1677 |
args.itemId = itemId
|
| 559 |
chandransh |
1678 |
args.write(self._oprot)
|
|
|
1679 |
self._oprot.writeMessageEnd()
|
|
|
1680 |
self._oprot.trans.flush()
|
|
|
1681 |
|
| 772 |
rajveer |
1682 |
def recv_updateBrowseHistory(self, ):
|
| 559 |
chandransh |
1683 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1684 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1685 |
x = TApplicationException()
|
|
|
1686 |
x.read(self._iprot)
|
|
|
1687 |
self._iprot.readMessageEnd()
|
|
|
1688 |
raise x
|
| 772 |
rajveer |
1689 |
result = updateBrowseHistory_result()
|
| 559 |
chandransh |
1690 |
result.read(self._iprot)
|
|
|
1691 |
self._iprot.readMessageEnd()
|
|
|
1692 |
return
|
|
|
1693 |
|
| 772 |
rajveer |
1694 |
def getBrowseHistory(self, userId):
|
| 559 |
chandransh |
1695 |
"""
|
|
|
1696 |
Parameters:
|
| 772 |
rajveer |
1697 |
- userId
|
| 559 |
chandransh |
1698 |
"""
|
| 772 |
rajveer |
1699 |
self.send_getBrowseHistory(userId)
|
|
|
1700 |
return self.recv_getBrowseHistory()
|
| 559 |
chandransh |
1701 |
|
| 772 |
rajveer |
1702 |
def send_getBrowseHistory(self, userId):
|
|
|
1703 |
self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
|
|
|
1704 |
args = getBrowseHistory_args()
|
|
|
1705 |
args.userId = userId
|
| 559 |
chandransh |
1706 |
args.write(self._oprot)
|
|
|
1707 |
self._oprot.writeMessageEnd()
|
|
|
1708 |
self._oprot.trans.flush()
|
|
|
1709 |
|
| 772 |
rajveer |
1710 |
def recv_getBrowseHistory(self, ):
|
| 559 |
chandransh |
1711 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1712 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1713 |
x = TApplicationException()
|
|
|
1714 |
x.read(self._iprot)
|
|
|
1715 |
self._iprot.readMessageEnd()
|
|
|
1716 |
raise x
|
| 772 |
rajveer |
1717 |
result = getBrowseHistory_result()
|
| 559 |
chandransh |
1718 |
result.read(self._iprot)
|
|
|
1719 |
self._iprot.readMessageEnd()
|
|
|
1720 |
if result.success != None:
|
|
|
1721 |
return result.success
|
|
|
1722 |
if result.scx != None:
|
|
|
1723 |
raise result.scx
|
| 772 |
rajveer |
1724 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
|
| 559 |
chandransh |
1725 |
|
| 772 |
rajveer |
1726 |
def mergeBrowseHistory(self, fromUserId, toUserId):
|
| 559 |
chandransh |
1727 |
"""
|
|
|
1728 |
Parameters:
|
| 772 |
rajveer |
1729 |
- fromUserId
|
|
|
1730 |
- toUserId
|
| 559 |
chandransh |
1731 |
"""
|
| 772 |
rajveer |
1732 |
self.send_mergeBrowseHistory(fromUserId, toUserId)
|
|
|
1733 |
self.recv_mergeBrowseHistory()
|
| 559 |
chandransh |
1734 |
|
| 772 |
rajveer |
1735 |
def send_mergeBrowseHistory(self, fromUserId, toUserId):
|
|
|
1736 |
self._oprot.writeMessageBegin('mergeBrowseHistory', TMessageType.CALL, self._seqid)
|
|
|
1737 |
args = mergeBrowseHistory_args()
|
|
|
1738 |
args.fromUserId = fromUserId
|
|
|
1739 |
args.toUserId = toUserId
|
| 559 |
chandransh |
1740 |
args.write(self._oprot)
|
|
|
1741 |
self._oprot.writeMessageEnd()
|
|
|
1742 |
self._oprot.trans.flush()
|
|
|
1743 |
|
| 772 |
rajveer |
1744 |
def recv_mergeBrowseHistory(self, ):
|
| 559 |
chandransh |
1745 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1746 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1747 |
x = TApplicationException()
|
|
|
1748 |
x.read(self._iprot)
|
|
|
1749 |
self._iprot.readMessageEnd()
|
|
|
1750 |
raise x
|
| 772 |
rajveer |
1751 |
result = mergeBrowseHistory_result()
|
| 559 |
chandransh |
1752 |
result.read(self._iprot)
|
|
|
1753 |
self._iprot.readMessageEnd()
|
|
|
1754 |
return
|
|
|
1755 |
|
|
|
1756 |
|
| 94 |
ashish |
1757 |
class Processor(Iface, TProcessor):
|
|
|
1758 |
def __init__(self, handler):
|
|
|
1759 |
self._handler = handler
|
|
|
1760 |
self._processMap = {}
|
| 765 |
rajveer |
1761 |
self._processMap["closeSession"] = Processor.process_closeSession
|
| 559 |
chandransh |
1762 |
self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
|
|
|
1763 |
self._processMap["getUserById"] = Processor.process_getUserById
|
|
|
1764 |
self._processMap["createUser"] = Processor.process_createUser
|
|
|
1765 |
self._processMap["updateUser"] = Processor.process_updateUser
|
|
|
1766 |
self._processMap["deleteUser"] = Processor.process_deleteUser
|
|
|
1767 |
self._processMap["getUserState"] = Processor.process_getUserState
|
| 122 |
ashish |
1768 |
self._processMap["authenticateUser"] = Processor.process_authenticateUser
|
| 94 |
ashish |
1769 |
self._processMap["userExists"] = Processor.process_userExists
|
|
|
1770 |
self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
|
|
|
1771 |
self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
|
|
|
1772 |
self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
|
|
|
1773 |
self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
|
| 504 |
rajveer |
1774 |
self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
|
| 94 |
ashish |
1775 |
self._processMap["updatePassword"] = Processor.process_updatePassword
|
| 581 |
rajveer |
1776 |
self._processMap["forgotPassword"] = Processor.process_forgotPassword
|
| 594 |
rajveer |
1777 |
self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
|
|
|
1778 |
self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
|
| 785 |
rajveer |
1779 |
self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
|
| 559 |
chandransh |
1780 |
self._processMap["createCart"] = Processor.process_createCart
|
|
|
1781 |
self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
|
|
|
1782 |
self._processMap["getCart"] = Processor.process_getCart
|
|
|
1783 |
self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
|
|
|
1784 |
self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
|
|
|
1785 |
self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
|
|
|
1786 |
self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
|
|
|
1787 |
self._processMap["addItemToCart"] = Processor.process_addItemToCart
|
|
|
1788 |
self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
|
|
|
1789 |
self._processMap["changeQuantity"] = Processor.process_changeQuantity
|
|
|
1790 |
self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
|
|
|
1791 |
self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
|
| 690 |
chandransh |
1792 |
self._processMap["createOrders"] = Processor.process_createOrders
|
| 559 |
chandransh |
1793 |
self._processMap["validateCart"] = Processor.process_validateCart
|
|
|
1794 |
self._processMap["mergeCart"] = Processor.process_mergeCart
|
| 690 |
chandransh |
1795 |
self._processMap["checkOut"] = Processor.process_checkOut
|
|
|
1796 |
self._processMap["resetCart"] = Processor.process_resetCart
|
| 559 |
chandransh |
1797 |
self._processMap["getMyResearch"] = Processor.process_getMyResearch
|
|
|
1798 |
self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
|
|
|
1799 |
self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
|
|
|
1800 |
self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
|
|
|
1801 |
self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
|
| 772 |
rajveer |
1802 |
self._processMap["mergeBrowseHistory"] = Processor.process_mergeBrowseHistory
|
| 94 |
ashish |
1803 |
|
|
|
1804 |
def process(self, iprot, oprot):
|
|
|
1805 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
1806 |
if name not in self._processMap:
|
|
|
1807 |
iprot.skip(TType.STRUCT)
|
|
|
1808 |
iprot.readMessageEnd()
|
|
|
1809 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
1810 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
1811 |
x.write(oprot)
|
|
|
1812 |
oprot.writeMessageEnd()
|
|
|
1813 |
oprot.trans.flush()
|
|
|
1814 |
return
|
|
|
1815 |
else:
|
|
|
1816 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
1817 |
return True
|
|
|
1818 |
|
| 765 |
rajveer |
1819 |
def process_closeSession(self, seqid, iprot, oprot):
|
|
|
1820 |
args = closeSession_args()
|
|
|
1821 |
args.read(iprot)
|
|
|
1822 |
iprot.readMessageEnd()
|
|
|
1823 |
result = closeSession_result()
|
|
|
1824 |
self._handler.closeSession()
|
|
|
1825 |
oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
|
|
|
1826 |
result.write(oprot)
|
|
|
1827 |
oprot.writeMessageEnd()
|
|
|
1828 |
oprot.trans.flush()
|
|
|
1829 |
|
| 559 |
chandransh |
1830 |
def process_createAnonymousUser(self, seqid, iprot, oprot):
|
|
|
1831 |
args = createAnonymousUser_args()
|
| 94 |
ashish |
1832 |
args.read(iprot)
|
|
|
1833 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1834 |
result = createAnonymousUser_result()
|
| 94 |
ashish |
1835 |
try:
|
| 559 |
chandransh |
1836 |
result.success = self._handler.createAnonymousUser(args.jsessionId)
|
|
|
1837 |
except UserContextException, ucex:
|
|
|
1838 |
result.ucex = ucex
|
|
|
1839 |
oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1840 |
result.write(oprot)
|
|
|
1841 |
oprot.writeMessageEnd()
|
|
|
1842 |
oprot.trans.flush()
|
|
|
1843 |
|
| 559 |
chandransh |
1844 |
def process_getUserById(self, seqid, iprot, oprot):
|
|
|
1845 |
args = getUserById_args()
|
| 94 |
ashish |
1846 |
args.read(iprot)
|
|
|
1847 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1848 |
result = getUserById_result()
|
| 94 |
ashish |
1849 |
try:
|
| 559 |
chandransh |
1850 |
result.success = self._handler.getUserById(args.userId)
|
|
|
1851 |
except UserContextException, ucex:
|
|
|
1852 |
result.ucex = ucex
|
|
|
1853 |
oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1854 |
result.write(oprot)
|
|
|
1855 |
oprot.writeMessageEnd()
|
|
|
1856 |
oprot.trans.flush()
|
|
|
1857 |
|
| 559 |
chandransh |
1858 |
def process_createUser(self, seqid, iprot, oprot):
|
|
|
1859 |
args = createUser_args()
|
| 94 |
ashish |
1860 |
args.read(iprot)
|
|
|
1861 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1862 |
result = createUser_result()
|
| 94 |
ashish |
1863 |
try:
|
| 559 |
chandransh |
1864 |
result.success = self._handler.createUser(args.user)
|
|
|
1865 |
except UserContextException, ucex:
|
|
|
1866 |
result.ucex = ucex
|
|
|
1867 |
oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1868 |
result.write(oprot)
|
|
|
1869 |
oprot.writeMessageEnd()
|
|
|
1870 |
oprot.trans.flush()
|
|
|
1871 |
|
| 559 |
chandransh |
1872 |
def process_updateUser(self, seqid, iprot, oprot):
|
|
|
1873 |
args = updateUser_args()
|
| 94 |
ashish |
1874 |
args.read(iprot)
|
|
|
1875 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1876 |
result = updateUser_result()
|
| 94 |
ashish |
1877 |
try:
|
| 559 |
chandransh |
1878 |
result.success = self._handler.updateUser(args.user)
|
|
|
1879 |
except UserContextException, ucex:
|
|
|
1880 |
result.ucex = ucex
|
|
|
1881 |
oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1882 |
result.write(oprot)
|
|
|
1883 |
oprot.writeMessageEnd()
|
|
|
1884 |
oprot.trans.flush()
|
|
|
1885 |
|
| 559 |
chandransh |
1886 |
def process_deleteUser(self, seqid, iprot, oprot):
|
|
|
1887 |
args = deleteUser_args()
|
| 94 |
ashish |
1888 |
args.read(iprot)
|
|
|
1889 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1890 |
result = deleteUser_result()
|
| 94 |
ashish |
1891 |
try:
|
| 559 |
chandransh |
1892 |
result.success = self._handler.deleteUser(args.userId)
|
|
|
1893 |
except UserContextException, ucex:
|
|
|
1894 |
result.ucex = ucex
|
|
|
1895 |
oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1896 |
result.write(oprot)
|
|
|
1897 |
oprot.writeMessageEnd()
|
|
|
1898 |
oprot.trans.flush()
|
|
|
1899 |
|
| 559 |
chandransh |
1900 |
def process_getUserState(self, seqid, iprot, oprot):
|
|
|
1901 |
args = getUserState_args()
|
| 94 |
ashish |
1902 |
args.read(iprot)
|
|
|
1903 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
1904 |
result = getUserState_result()
|
| 94 |
ashish |
1905 |
try:
|
| 559 |
chandransh |
1906 |
result.success = self._handler.getUserState(args.userId)
|
|
|
1907 |
except UserContextException, ucex:
|
|
|
1908 |
result.ucex = ucex
|
|
|
1909 |
oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
1910 |
result.write(oprot)
|
|
|
1911 |
oprot.writeMessageEnd()
|
|
|
1912 |
oprot.trans.flush()
|
|
|
1913 |
|
| 122 |
ashish |
1914 |
def process_authenticateUser(self, seqid, iprot, oprot):
|
|
|
1915 |
args = authenticateUser_args()
|
|
|
1916 |
args.read(iprot)
|
|
|
1917 |
iprot.readMessageEnd()
|
|
|
1918 |
result = authenticateUser_result()
|
|
|
1919 |
try:
|
| 559 |
chandransh |
1920 |
result.success = self._handler.authenticateUser(args.email, args.password)
|
|
|
1921 |
except AuthenticationException, auex:
|
|
|
1922 |
result.auex = auex
|
| 122 |
ashish |
1923 |
oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
|
|
|
1924 |
result.write(oprot)
|
|
|
1925 |
oprot.writeMessageEnd()
|
|
|
1926 |
oprot.trans.flush()
|
|
|
1927 |
|
| 94 |
ashish |
1928 |
def process_userExists(self, seqid, iprot, oprot):
|
|
|
1929 |
args = userExists_args()
|
|
|
1930 |
args.read(iprot)
|
|
|
1931 |
iprot.readMessageEnd()
|
|
|
1932 |
result = userExists_result()
|
|
|
1933 |
try:
|
|
|
1934 |
result.success = self._handler.userExists(args.email)
|
|
|
1935 |
except UserContextException, ucx:
|
|
|
1936 |
result.ucx = ucx
|
|
|
1937 |
oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
|
|
|
1938 |
result.write(oprot)
|
|
|
1939 |
oprot.writeMessageEnd()
|
|
|
1940 |
oprot.trans.flush()
|
|
|
1941 |
|
|
|
1942 |
def process_addAddressForUser(self, seqid, iprot, oprot):
|
|
|
1943 |
args = addAddressForUser_args()
|
|
|
1944 |
args.read(iprot)
|
|
|
1945 |
iprot.readMessageEnd()
|
|
|
1946 |
result = addAddressForUser_result()
|
|
|
1947 |
try:
|
| 567 |
rajveer |
1948 |
result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
|
| 94 |
ashish |
1949 |
except UserContextException, ucx:
|
|
|
1950 |
result.ucx = ucx
|
|
|
1951 |
oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
|
|
|
1952 |
result.write(oprot)
|
|
|
1953 |
oprot.writeMessageEnd()
|
|
|
1954 |
oprot.trans.flush()
|
|
|
1955 |
|
|
|
1956 |
def process_removeAddressForUser(self, seqid, iprot, oprot):
|
|
|
1957 |
args = removeAddressForUser_args()
|
|
|
1958 |
args.read(iprot)
|
|
|
1959 |
iprot.readMessageEnd()
|
|
|
1960 |
result = removeAddressForUser_result()
|
|
|
1961 |
try:
|
|
|
1962 |
result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
|
|
|
1963 |
except UserContextException, ucx:
|
|
|
1964 |
result.ucx = ucx
|
|
|
1965 |
oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
|
|
|
1966 |
result.write(oprot)
|
|
|
1967 |
oprot.writeMessageEnd()
|
|
|
1968 |
oprot.trans.flush()
|
|
|
1969 |
|
|
|
1970 |
def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
|
|
|
1971 |
args = setUserAsLoggedIn_args()
|
|
|
1972 |
args.read(iprot)
|
|
|
1973 |
iprot.readMessageEnd()
|
|
|
1974 |
result = setUserAsLoggedIn_result()
|
|
|
1975 |
try:
|
|
|
1976 |
result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
|
|
|
1977 |
except UserContextException, ucx:
|
|
|
1978 |
result.ucx = ucx
|
|
|
1979 |
oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
|
|
|
1980 |
result.write(oprot)
|
|
|
1981 |
oprot.writeMessageEnd()
|
|
|
1982 |
oprot.trans.flush()
|
|
|
1983 |
|
|
|
1984 |
def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
|
|
|
1985 |
args = setUserAsLoggedOut_args()
|
|
|
1986 |
args.read(iprot)
|
|
|
1987 |
iprot.readMessageEnd()
|
|
|
1988 |
result = setUserAsLoggedOut_result()
|
|
|
1989 |
try:
|
|
|
1990 |
result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
|
|
|
1991 |
except UserContextException, ucx:
|
|
|
1992 |
result.ucx = ucx
|
|
|
1993 |
oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
|
|
|
1994 |
result.write(oprot)
|
|
|
1995 |
oprot.writeMessageEnd()
|
|
|
1996 |
oprot.trans.flush()
|
|
|
1997 |
|
| 504 |
rajveer |
1998 |
def process_setDefaultAddress(self, seqid, iprot, oprot):
|
|
|
1999 |
args = setDefaultAddress_args()
|
|
|
2000 |
args.read(iprot)
|
|
|
2001 |
iprot.readMessageEnd()
|
|
|
2002 |
result = setDefaultAddress_result()
|
|
|
2003 |
try:
|
|
|
2004 |
result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
|
|
|
2005 |
except UserContextException, ucx:
|
|
|
2006 |
result.ucx = ucx
|
|
|
2007 |
oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
|
|
|
2008 |
result.write(oprot)
|
|
|
2009 |
oprot.writeMessageEnd()
|
|
|
2010 |
oprot.trans.flush()
|
|
|
2011 |
|
| 94 |
ashish |
2012 |
def process_updatePassword(self, seqid, iprot, oprot):
|
|
|
2013 |
args = updatePassword_args()
|
|
|
2014 |
args.read(iprot)
|
|
|
2015 |
iprot.readMessageEnd()
|
|
|
2016 |
result = updatePassword_result()
|
|
|
2017 |
try:
|
| 594 |
rajveer |
2018 |
result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
|
| 94 |
ashish |
2019 |
except UserContextException, ucx:
|
|
|
2020 |
result.ucx = ucx
|
|
|
2021 |
oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
|
|
|
2022 |
result.write(oprot)
|
|
|
2023 |
oprot.writeMessageEnd()
|
|
|
2024 |
oprot.trans.flush()
|
|
|
2025 |
|
| 581 |
rajveer |
2026 |
def process_forgotPassword(self, seqid, iprot, oprot):
|
|
|
2027 |
args = forgotPassword_args()
|
|
|
2028 |
args.read(iprot)
|
|
|
2029 |
iprot.readMessageEnd()
|
|
|
2030 |
result = forgotPassword_result()
|
|
|
2031 |
try:
|
| 884 |
rajveer |
2032 |
result.success = self._handler.forgotPassword(args.email, args.newPassword)
|
| 581 |
rajveer |
2033 |
except UserContextException, ucx:
|
|
|
2034 |
result.ucx = ucx
|
|
|
2035 |
oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
|
|
|
2036 |
result.write(oprot)
|
|
|
2037 |
oprot.writeMessageEnd()
|
|
|
2038 |
oprot.trans.flush()
|
|
|
2039 |
|
| 594 |
rajveer |
2040 |
def process_getAllAddressesForUser(self, seqid, iprot, oprot):
|
|
|
2041 |
args = getAllAddressesForUser_args()
|
|
|
2042 |
args.read(iprot)
|
|
|
2043 |
iprot.readMessageEnd()
|
|
|
2044 |
result = getAllAddressesForUser_result()
|
|
|
2045 |
try:
|
|
|
2046 |
result.success = self._handler.getAllAddressesForUser(args.userId)
|
|
|
2047 |
except UserContextException, ucx:
|
|
|
2048 |
result.ucx = ucx
|
|
|
2049 |
oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
|
|
|
2050 |
result.write(oprot)
|
|
|
2051 |
oprot.writeMessageEnd()
|
|
|
2052 |
oprot.trans.flush()
|
|
|
2053 |
|
|
|
2054 |
def process_getDefaultAddressId(self, seqid, iprot, oprot):
|
|
|
2055 |
args = getDefaultAddressId_args()
|
|
|
2056 |
args.read(iprot)
|
|
|
2057 |
iprot.readMessageEnd()
|
|
|
2058 |
result = getDefaultAddressId_result()
|
|
|
2059 |
try:
|
|
|
2060 |
result.success = self._handler.getDefaultAddressId(args.userId)
|
|
|
2061 |
except UserContextException, ucx:
|
|
|
2062 |
result.ucx = ucx
|
|
|
2063 |
oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
|
|
|
2064 |
result.write(oprot)
|
|
|
2065 |
oprot.writeMessageEnd()
|
|
|
2066 |
oprot.trans.flush()
|
|
|
2067 |
|
| 785 |
rajveer |
2068 |
def process_getDefaultPincode(self, seqid, iprot, oprot):
|
|
|
2069 |
args = getDefaultPincode_args()
|
|
|
2070 |
args.read(iprot)
|
|
|
2071 |
iprot.readMessageEnd()
|
|
|
2072 |
result = getDefaultPincode_result()
|
|
|
2073 |
try:
|
|
|
2074 |
result.success = self._handler.getDefaultPincode(args.userId)
|
|
|
2075 |
except UserContextException, ucx:
|
|
|
2076 |
result.ucx = ucx
|
|
|
2077 |
oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
|
|
|
2078 |
result.write(oprot)
|
|
|
2079 |
oprot.writeMessageEnd()
|
|
|
2080 |
oprot.trans.flush()
|
|
|
2081 |
|
| 559 |
chandransh |
2082 |
def process_createCart(self, seqid, iprot, oprot):
|
|
|
2083 |
args = createCart_args()
|
| 94 |
ashish |
2084 |
args.read(iprot)
|
|
|
2085 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2086 |
result = createCart_result()
|
| 94 |
ashish |
2087 |
try:
|
| 559 |
chandransh |
2088 |
result.success = self._handler.createCart(args.userId)
|
|
|
2089 |
except ShoppingCartException, scx:
|
|
|
2090 |
result.scx = scx
|
|
|
2091 |
oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2092 |
result.write(oprot)
|
|
|
2093 |
oprot.writeMessageEnd()
|
|
|
2094 |
oprot.trans.flush()
|
|
|
2095 |
|
| 559 |
chandransh |
2096 |
def process_getCurrentCart(self, seqid, iprot, oprot):
|
|
|
2097 |
args = getCurrentCart_args()
|
| 94 |
ashish |
2098 |
args.read(iprot)
|
|
|
2099 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2100 |
result = getCurrentCart_result()
|
| 94 |
ashish |
2101 |
try:
|
| 559 |
chandransh |
2102 |
result.success = self._handler.getCurrentCart(args.userId)
|
|
|
2103 |
except ShoppingCartException, scx:
|
|
|
2104 |
result.scx = scx
|
|
|
2105 |
oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2106 |
result.write(oprot)
|
|
|
2107 |
oprot.writeMessageEnd()
|
|
|
2108 |
oprot.trans.flush()
|
|
|
2109 |
|
| 559 |
chandransh |
2110 |
def process_getCart(self, seqid, iprot, oprot):
|
|
|
2111 |
args = getCart_args()
|
| 94 |
ashish |
2112 |
args.read(iprot)
|
|
|
2113 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2114 |
result = getCart_result()
|
| 94 |
ashish |
2115 |
try:
|
| 559 |
chandransh |
2116 |
result.success = self._handler.getCart(args.cartId)
|
|
|
2117 |
except ShoppingCartException, scx:
|
|
|
2118 |
result.scx = scx
|
|
|
2119 |
oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2120 |
result.write(oprot)
|
|
|
2121 |
oprot.writeMessageEnd()
|
|
|
2122 |
oprot.trans.flush()
|
|
|
2123 |
|
| 559 |
chandransh |
2124 |
def process_getCartsForUser(self, seqid, iprot, oprot):
|
|
|
2125 |
args = getCartsForUser_args()
|
| 94 |
ashish |
2126 |
args.read(iprot)
|
|
|
2127 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2128 |
result = getCartsForUser_result()
|
| 94 |
ashish |
2129 |
try:
|
| 559 |
chandransh |
2130 |
result.success = self._handler.getCartsForUser(args.userId, args.status)
|
|
|
2131 |
except ShoppingCartException, scx:
|
|
|
2132 |
result.scx = scx
|
|
|
2133 |
oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2134 |
result.write(oprot)
|
|
|
2135 |
oprot.writeMessageEnd()
|
|
|
2136 |
oprot.trans.flush()
|
|
|
2137 |
|
| 559 |
chandransh |
2138 |
def process_getCartsByStatus(self, seqid, iprot, oprot):
|
|
|
2139 |
args = getCartsByStatus_args()
|
| 94 |
ashish |
2140 |
args.read(iprot)
|
|
|
2141 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2142 |
result = getCartsByStatus_result()
|
| 94 |
ashish |
2143 |
try:
|
| 559 |
chandransh |
2144 |
result.success = self._handler.getCartsByStatus(args.status)
|
|
|
2145 |
except ShoppingCartException, scx:
|
|
|
2146 |
result.scx = scx
|
|
|
2147 |
oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2148 |
result.write(oprot)
|
|
|
2149 |
oprot.writeMessageEnd()
|
|
|
2150 |
oprot.trans.flush()
|
|
|
2151 |
|
| 559 |
chandransh |
2152 |
def process_getCartsByTime(self, seqid, iprot, oprot):
|
|
|
2153 |
args = getCartsByTime_args()
|
| 94 |
ashish |
2154 |
args.read(iprot)
|
|
|
2155 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2156 |
result = getCartsByTime_result()
|
| 94 |
ashish |
2157 |
try:
|
| 559 |
chandransh |
2158 |
result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
|
|
|
2159 |
except ShoppingCartException, scx:
|
|
|
2160 |
result.scx = scx
|
|
|
2161 |
oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
|
| 94 |
ashish |
2162 |
result.write(oprot)
|
|
|
2163 |
oprot.writeMessageEnd()
|
|
|
2164 |
oprot.trans.flush()
|
|
|
2165 |
|
| 559 |
chandransh |
2166 |
def process_changeCartStatus(self, seqid, iprot, oprot):
|
|
|
2167 |
args = changeCartStatus_args()
|
| 130 |
ashish |
2168 |
args.read(iprot)
|
|
|
2169 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2170 |
result = changeCartStatus_result()
|
| 130 |
ashish |
2171 |
try:
|
| 559 |
chandransh |
2172 |
self._handler.changeCartStatus(args.cartId, args.status)
|
|
|
2173 |
except ShoppingCartException, scx:
|
|
|
2174 |
result.scx = scx
|
|
|
2175 |
oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
|
| 130 |
ashish |
2176 |
result.write(oprot)
|
|
|
2177 |
oprot.writeMessageEnd()
|
|
|
2178 |
oprot.trans.flush()
|
| 94 |
ashish |
2179 |
|
| 559 |
chandransh |
2180 |
def process_addItemToCart(self, seqid, iprot, oprot):
|
|
|
2181 |
args = addItemToCart_args()
|
| 130 |
ashish |
2182 |
args.read(iprot)
|
|
|
2183 |
iprot.readMessageEnd()
|
| 559 |
chandransh |
2184 |
result = addItemToCart_result()
|
| 130 |
ashish |
2185 |
try:
|
| 559 |
chandransh |
2186 |
self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
|
|
|
2187 |
except ShoppingCartException, scx:
|
|
|
2188 |
result.scx = scx
|
|
|
2189 |
oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
|
| 130 |
ashish |
2190 |
result.write(oprot)
|
|
|
2191 |
oprot.writeMessageEnd()
|
|
|
2192 |
oprot.trans.flush()
|
|
|
2193 |
|
| 559 |
chandransh |
2194 |
def process_deleteItemFromCart(self, seqid, iprot, oprot):
|
|
|
2195 |
args = deleteItemFromCart_args()
|
|
|
2196 |
args.read(iprot)
|
|
|
2197 |
iprot.readMessageEnd()
|
|
|
2198 |
result = deleteItemFromCart_result()
|
|
|
2199 |
try:
|
|
|
2200 |
self._handler.deleteItemFromCart(args.cartId, args.itemId)
|
|
|
2201 |
except ShoppingCartException, scx:
|
|
|
2202 |
result.scx = scx
|
|
|
2203 |
oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
|
|
|
2204 |
result.write(oprot)
|
|
|
2205 |
oprot.writeMessageEnd()
|
|
|
2206 |
oprot.trans.flush()
|
| 130 |
ashish |
2207 |
|
| 559 |
chandransh |
2208 |
def process_changeQuantity(self, seqid, iprot, oprot):
|
|
|
2209 |
args = changeQuantity_args()
|
|
|
2210 |
args.read(iprot)
|
|
|
2211 |
iprot.readMessageEnd()
|
|
|
2212 |
result = changeQuantity_result()
|
|
|
2213 |
try:
|
|
|
2214 |
self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
|
|
|
2215 |
except ShoppingCartException, scx:
|
|
|
2216 |
result.scx = scx
|
|
|
2217 |
oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
|
|
|
2218 |
result.write(oprot)
|
|
|
2219 |
oprot.writeMessageEnd()
|
|
|
2220 |
oprot.trans.flush()
|
|
|
2221 |
|
|
|
2222 |
def process_changeItemStatus(self, seqid, iprot, oprot):
|
|
|
2223 |
args = changeItemStatus_args()
|
|
|
2224 |
args.read(iprot)
|
|
|
2225 |
iprot.readMessageEnd()
|
|
|
2226 |
result = changeItemStatus_result()
|
|
|
2227 |
try:
|
|
|
2228 |
self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
|
|
|
2229 |
except ShoppingCartException, scx:
|
|
|
2230 |
result.scx = scx
|
|
|
2231 |
oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
|
|
|
2232 |
result.write(oprot)
|
|
|
2233 |
oprot.writeMessageEnd()
|
|
|
2234 |
oprot.trans.flush()
|
|
|
2235 |
|
|
|
2236 |
def process_addAddressToCart(self, seqid, iprot, oprot):
|
|
|
2237 |
args = addAddressToCart_args()
|
|
|
2238 |
args.read(iprot)
|
|
|
2239 |
iprot.readMessageEnd()
|
|
|
2240 |
result = addAddressToCart_result()
|
| 575 |
chandransh |
2241 |
try:
|
|
|
2242 |
self._handler.addAddressToCart(args.cartId, args.addressId)
|
|
|
2243 |
except ShoppingCartException, scx:
|
|
|
2244 |
result.scx = scx
|
| 559 |
chandransh |
2245 |
oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
|
|
|
2246 |
result.write(oprot)
|
|
|
2247 |
oprot.writeMessageEnd()
|
|
|
2248 |
oprot.trans.flush()
|
|
|
2249 |
|
| 690 |
chandransh |
2250 |
def process_createOrders(self, seqid, iprot, oprot):
|
|
|
2251 |
args = createOrders_args()
|
| 559 |
chandransh |
2252 |
args.read(iprot)
|
|
|
2253 |
iprot.readMessageEnd()
|
| 690 |
chandransh |
2254 |
result = createOrders_result()
|
| 559 |
chandransh |
2255 |
try:
|
| 690 |
chandransh |
2256 |
result.success = self._handler.createOrders(args.cartId)
|
| 559 |
chandransh |
2257 |
except ShoppingCartException, scx:
|
|
|
2258 |
result.scx = scx
|
| 690 |
chandransh |
2259 |
oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
|
| 559 |
chandransh |
2260 |
result.write(oprot)
|
|
|
2261 |
oprot.writeMessageEnd()
|
|
|
2262 |
oprot.trans.flush()
|
|
|
2263 |
|
|
|
2264 |
def process_validateCart(self, seqid, iprot, oprot):
|
|
|
2265 |
args = validateCart_args()
|
|
|
2266 |
args.read(iprot)
|
|
|
2267 |
iprot.readMessageEnd()
|
|
|
2268 |
result = validateCart_result()
|
| 575 |
chandransh |
2269 |
try:
|
|
|
2270 |
result.success = self._handler.validateCart(args.cartId)
|
|
|
2271 |
except ShoppingCartException, scex:
|
|
|
2272 |
result.scex = scex
|
| 559 |
chandransh |
2273 |
oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
|
|
|
2274 |
result.write(oprot)
|
|
|
2275 |
oprot.writeMessageEnd()
|
|
|
2276 |
oprot.trans.flush()
|
|
|
2277 |
|
| 690 |
chandransh |
2278 |
def process_mergeCart(self, seqid, iprot, oprot):
|
|
|
2279 |
args = mergeCart_args()
|
| 575 |
chandransh |
2280 |
args.read(iprot)
|
|
|
2281 |
iprot.readMessageEnd()
|
| 690 |
chandransh |
2282 |
result = mergeCart_result()
|
|
|
2283 |
self._handler.mergeCart(args.fromCartId, args.toCartId)
|
|
|
2284 |
oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
|
|
|
2285 |
result.write(oprot)
|
|
|
2286 |
oprot.writeMessageEnd()
|
|
|
2287 |
oprot.trans.flush()
|
|
|
2288 |
|
|
|
2289 |
def process_checkOut(self, seqid, iprot, oprot):
|
|
|
2290 |
args = checkOut_args()
|
|
|
2291 |
args.read(iprot)
|
|
|
2292 |
iprot.readMessageEnd()
|
|
|
2293 |
result = checkOut_result()
|
| 575 |
chandransh |
2294 |
try:
|
| 690 |
chandransh |
2295 |
result.success = self._handler.checkOut(args.cartId)
|
| 575 |
chandransh |
2296 |
except ShoppingCartException, scex:
|
|
|
2297 |
result.scex = scex
|
| 690 |
chandransh |
2298 |
oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
|
| 575 |
chandransh |
2299 |
result.write(oprot)
|
|
|
2300 |
oprot.writeMessageEnd()
|
|
|
2301 |
oprot.trans.flush()
|
|
|
2302 |
|
| 690 |
chandransh |
2303 |
def process_resetCart(self, seqid, iprot, oprot):
|
|
|
2304 |
args = resetCart_args()
|
| 559 |
chandransh |
2305 |
args.read(iprot)
|
|
|
2306 |
iprot.readMessageEnd()
|
| 690 |
chandransh |
2307 |
result = resetCart_result()
|
|
|
2308 |
try:
|
|
|
2309 |
result.success = self._handler.resetCart(args.cartId, args.items)
|
|
|
2310 |
except ShoppingCartException, scex:
|
|
|
2311 |
result.scex = scex
|
|
|
2312 |
oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
|
| 559 |
chandransh |
2313 |
result.write(oprot)
|
|
|
2314 |
oprot.writeMessageEnd()
|
|
|
2315 |
oprot.trans.flush()
|
|
|
2316 |
|
|
|
2317 |
def process_getMyResearch(self, seqid, iprot, oprot):
|
|
|
2318 |
args = getMyResearch_args()
|
|
|
2319 |
args.read(iprot)
|
|
|
2320 |
iprot.readMessageEnd()
|
|
|
2321 |
result = getMyResearch_result()
|
|
|
2322 |
try:
|
| 772 |
rajveer |
2323 |
result.success = self._handler.getMyResearch(args.userId)
|
| 559 |
chandransh |
2324 |
except WidgetException, scx:
|
|
|
2325 |
result.scx = scx
|
|
|
2326 |
oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
|
|
|
2327 |
result.write(oprot)
|
|
|
2328 |
oprot.writeMessageEnd()
|
|
|
2329 |
oprot.trans.flush()
|
|
|
2330 |
|
|
|
2331 |
def process_updateMyResearch(self, seqid, iprot, oprot):
|
|
|
2332 |
args = updateMyResearch_args()
|
|
|
2333 |
args.read(iprot)
|
|
|
2334 |
iprot.readMessageEnd()
|
|
|
2335 |
result = updateMyResearch_result()
|
|
|
2336 |
try:
|
| 772 |
rajveer |
2337 |
result.success = self._handler.updateMyResearch(args.userId, args.itemId)
|
| 559 |
chandransh |
2338 |
except WidgetException, scx:
|
|
|
2339 |
result.scx = scx
|
|
|
2340 |
oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
|
|
|
2341 |
result.write(oprot)
|
|
|
2342 |
oprot.writeMessageEnd()
|
|
|
2343 |
oprot.trans.flush()
|
|
|
2344 |
|
|
|
2345 |
def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
|
|
|
2346 |
args = deleteItemFromMyResearch_args()
|
|
|
2347 |
args.read(iprot)
|
|
|
2348 |
iprot.readMessageEnd()
|
|
|
2349 |
result = deleteItemFromMyResearch_result()
|
|
|
2350 |
try:
|
| 772 |
rajveer |
2351 |
self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
|
| 559 |
chandransh |
2352 |
except WidgetException, scx:
|
|
|
2353 |
result.scx = scx
|
|
|
2354 |
oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
|
|
|
2355 |
result.write(oprot)
|
|
|
2356 |
oprot.writeMessageEnd()
|
|
|
2357 |
oprot.trans.flush()
|
|
|
2358 |
|
|
|
2359 |
def process_updateBrowseHistory(self, seqid, iprot, oprot):
|
|
|
2360 |
args = updateBrowseHistory_args()
|
|
|
2361 |
args.read(iprot)
|
|
|
2362 |
iprot.readMessageEnd()
|
|
|
2363 |
result = updateBrowseHistory_result()
|
| 772 |
rajveer |
2364 |
self._handler.updateBrowseHistory(args.userId, args.itemId)
|
| 559 |
chandransh |
2365 |
oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
|
|
|
2366 |
result.write(oprot)
|
|
|
2367 |
oprot.writeMessageEnd()
|
|
|
2368 |
oprot.trans.flush()
|
|
|
2369 |
|
|
|
2370 |
def process_getBrowseHistory(self, seqid, iprot, oprot):
|
|
|
2371 |
args = getBrowseHistory_args()
|
|
|
2372 |
args.read(iprot)
|
|
|
2373 |
iprot.readMessageEnd()
|
|
|
2374 |
result = getBrowseHistory_result()
|
|
|
2375 |
try:
|
| 772 |
rajveer |
2376 |
result.success = self._handler.getBrowseHistory(args.userId)
|
| 559 |
chandransh |
2377 |
except WidgetException, scx:
|
|
|
2378 |
result.scx = scx
|
|
|
2379 |
oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
|
|
|
2380 |
result.write(oprot)
|
|
|
2381 |
oprot.writeMessageEnd()
|
|
|
2382 |
oprot.trans.flush()
|
|
|
2383 |
|
| 772 |
rajveer |
2384 |
def process_mergeBrowseHistory(self, seqid, iprot, oprot):
|
|
|
2385 |
args = mergeBrowseHistory_args()
|
|
|
2386 |
args.read(iprot)
|
|
|
2387 |
iprot.readMessageEnd()
|
|
|
2388 |
result = mergeBrowseHistory_result()
|
|
|
2389 |
self._handler.mergeBrowseHistory(args.fromUserId, args.toUserId)
|
|
|
2390 |
oprot.writeMessageBegin("mergeBrowseHistory", TMessageType.REPLY, seqid)
|
|
|
2391 |
result.write(oprot)
|
|
|
2392 |
oprot.writeMessageEnd()
|
|
|
2393 |
oprot.trans.flush()
|
| 559 |
chandransh |
2394 |
|
| 772 |
rajveer |
2395 |
|
| 94 |
ashish |
2396 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
2397 |
|
| 765 |
rajveer |
2398 |
class closeSession_args:
|
|
|
2399 |
|
|
|
2400 |
thrift_spec = (
|
|
|
2401 |
)
|
|
|
2402 |
|
|
|
2403 |
def read(self, iprot):
|
|
|
2404 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2405 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2406 |
return
|
|
|
2407 |
iprot.readStructBegin()
|
|
|
2408 |
while True:
|
|
|
2409 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2410 |
if ftype == TType.STOP:
|
|
|
2411 |
break
|
|
|
2412 |
else:
|
|
|
2413 |
iprot.skip(ftype)
|
|
|
2414 |
iprot.readFieldEnd()
|
|
|
2415 |
iprot.readStructEnd()
|
|
|
2416 |
|
|
|
2417 |
def write(self, oprot):
|
|
|
2418 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2419 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2420 |
return
|
|
|
2421 |
oprot.writeStructBegin('closeSession_args')
|
|
|
2422 |
oprot.writeFieldStop()
|
|
|
2423 |
oprot.writeStructEnd()
|
|
|
2424 |
|
|
|
2425 |
def __repr__(self):
|
|
|
2426 |
L = ['%s=%r' % (key, value)
|
|
|
2427 |
for key, value in self.__dict__.iteritems()]
|
|
|
2428 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2429 |
|
|
|
2430 |
def __eq__(self, other):
|
|
|
2431 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2432 |
|
|
|
2433 |
def __ne__(self, other):
|
|
|
2434 |
return not (self == other)
|
|
|
2435 |
|
|
|
2436 |
class closeSession_result:
|
|
|
2437 |
|
|
|
2438 |
thrift_spec = (
|
|
|
2439 |
)
|
|
|
2440 |
|
|
|
2441 |
def read(self, iprot):
|
|
|
2442 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2443 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2444 |
return
|
|
|
2445 |
iprot.readStructBegin()
|
|
|
2446 |
while True:
|
|
|
2447 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2448 |
if ftype == TType.STOP:
|
|
|
2449 |
break
|
|
|
2450 |
else:
|
|
|
2451 |
iprot.skip(ftype)
|
|
|
2452 |
iprot.readFieldEnd()
|
|
|
2453 |
iprot.readStructEnd()
|
|
|
2454 |
|
|
|
2455 |
def write(self, oprot):
|
|
|
2456 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2457 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2458 |
return
|
|
|
2459 |
oprot.writeStructBegin('closeSession_result')
|
|
|
2460 |
oprot.writeFieldStop()
|
|
|
2461 |
oprot.writeStructEnd()
|
|
|
2462 |
|
|
|
2463 |
def __repr__(self):
|
|
|
2464 |
L = ['%s=%r' % (key, value)
|
|
|
2465 |
for key, value in self.__dict__.iteritems()]
|
|
|
2466 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2467 |
|
|
|
2468 |
def __eq__(self, other):
|
|
|
2469 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2470 |
|
|
|
2471 |
def __ne__(self, other):
|
|
|
2472 |
return not (self == other)
|
|
|
2473 |
|
| 559 |
chandransh |
2474 |
class createAnonymousUser_args:
|
| 94 |
ashish |
2475 |
"""
|
|
|
2476 |
Attributes:
|
| 559 |
chandransh |
2477 |
- jsessionId
|
| 94 |
ashish |
2478 |
"""
|
|
|
2479 |
|
|
|
2480 |
thrift_spec = (
|
|
|
2481 |
None, # 0
|
| 559 |
chandransh |
2482 |
(1, TType.STRING, 'jsessionId', None, None, ), # 1
|
| 94 |
ashish |
2483 |
)
|
|
|
2484 |
|
| 559 |
chandransh |
2485 |
def __init__(self, jsessionId=None,):
|
|
|
2486 |
self.jsessionId = jsessionId
|
| 94 |
ashish |
2487 |
|
|
|
2488 |
def read(self, iprot):
|
|
|
2489 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2490 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2491 |
return
|
|
|
2492 |
iprot.readStructBegin()
|
|
|
2493 |
while True:
|
|
|
2494 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2495 |
if ftype == TType.STOP:
|
|
|
2496 |
break
|
|
|
2497 |
if fid == 1:
|
| 559 |
chandransh |
2498 |
if ftype == TType.STRING:
|
|
|
2499 |
self.jsessionId = iprot.readString();
|
| 94 |
ashish |
2500 |
else:
|
|
|
2501 |
iprot.skip(ftype)
|
|
|
2502 |
else:
|
|
|
2503 |
iprot.skip(ftype)
|
|
|
2504 |
iprot.readFieldEnd()
|
|
|
2505 |
iprot.readStructEnd()
|
|
|
2506 |
|
|
|
2507 |
def write(self, oprot):
|
|
|
2508 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2509 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2510 |
return
|
| 559 |
chandransh |
2511 |
oprot.writeStructBegin('createAnonymousUser_args')
|
|
|
2512 |
if self.jsessionId != None:
|
|
|
2513 |
oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
|
|
|
2514 |
oprot.writeString(self.jsessionId)
|
| 94 |
ashish |
2515 |
oprot.writeFieldEnd()
|
|
|
2516 |
oprot.writeFieldStop()
|
|
|
2517 |
oprot.writeStructEnd()
|
|
|
2518 |
|
|
|
2519 |
def __repr__(self):
|
|
|
2520 |
L = ['%s=%r' % (key, value)
|
|
|
2521 |
for key, value in self.__dict__.iteritems()]
|
|
|
2522 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2523 |
|
|
|
2524 |
def __eq__(self, other):
|
|
|
2525 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2526 |
|
|
|
2527 |
def __ne__(self, other):
|
|
|
2528 |
return not (self == other)
|
|
|
2529 |
|
| 559 |
chandransh |
2530 |
class createAnonymousUser_result:
|
| 94 |
ashish |
2531 |
"""
|
|
|
2532 |
Attributes:
|
|
|
2533 |
- success
|
| 559 |
chandransh |
2534 |
- ucex
|
| 94 |
ashish |
2535 |
"""
|
|
|
2536 |
|
|
|
2537 |
thrift_spec = (
|
| 559 |
chandransh |
2538 |
(0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
|
|
|
2539 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2540 |
)
|
|
|
2541 |
|
| 559 |
chandransh |
2542 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
2543 |
self.success = success
|
| 559 |
chandransh |
2544 |
self.ucex = ucex
|
| 94 |
ashish |
2545 |
|
|
|
2546 |
def read(self, iprot):
|
|
|
2547 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2548 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2549 |
return
|
|
|
2550 |
iprot.readStructBegin()
|
|
|
2551 |
while True:
|
|
|
2552 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2553 |
if ftype == TType.STOP:
|
|
|
2554 |
break
|
|
|
2555 |
if fid == 0:
|
|
|
2556 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2557 |
self.success = User()
|
| 94 |
ashish |
2558 |
self.success.read(iprot)
|
|
|
2559 |
else:
|
|
|
2560 |
iprot.skip(ftype)
|
|
|
2561 |
elif fid == 1:
|
|
|
2562 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2563 |
self.ucex = UserContextException()
|
|
|
2564 |
self.ucex.read(iprot)
|
| 94 |
ashish |
2565 |
else:
|
|
|
2566 |
iprot.skip(ftype)
|
|
|
2567 |
else:
|
|
|
2568 |
iprot.skip(ftype)
|
|
|
2569 |
iprot.readFieldEnd()
|
|
|
2570 |
iprot.readStructEnd()
|
|
|
2571 |
|
|
|
2572 |
def write(self, oprot):
|
|
|
2573 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2574 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2575 |
return
|
| 559 |
chandransh |
2576 |
oprot.writeStructBegin('createAnonymousUser_result')
|
| 94 |
ashish |
2577 |
if self.success != None:
|
|
|
2578 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2579 |
self.success.write(oprot)
|
|
|
2580 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2581 |
if self.ucex != None:
|
|
|
2582 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
2583 |
self.ucex.write(oprot)
|
| 94 |
ashish |
2584 |
oprot.writeFieldEnd()
|
|
|
2585 |
oprot.writeFieldStop()
|
|
|
2586 |
oprot.writeStructEnd()
|
|
|
2587 |
|
|
|
2588 |
def __repr__(self):
|
|
|
2589 |
L = ['%s=%r' % (key, value)
|
|
|
2590 |
for key, value in self.__dict__.iteritems()]
|
|
|
2591 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2592 |
|
|
|
2593 |
def __eq__(self, other):
|
|
|
2594 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2595 |
|
|
|
2596 |
def __ne__(self, other):
|
|
|
2597 |
return not (self == other)
|
|
|
2598 |
|
| 559 |
chandransh |
2599 |
class getUserById_args:
|
| 94 |
ashish |
2600 |
"""
|
|
|
2601 |
Attributes:
|
|
|
2602 |
- userId
|
|
|
2603 |
"""
|
|
|
2604 |
|
|
|
2605 |
thrift_spec = (
|
|
|
2606 |
None, # 0
|
|
|
2607 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
2608 |
)
|
|
|
2609 |
|
| 559 |
chandransh |
2610 |
def __init__(self, userId=None,):
|
| 94 |
ashish |
2611 |
self.userId = userId
|
|
|
2612 |
|
|
|
2613 |
def read(self, iprot):
|
|
|
2614 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2615 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2616 |
return
|
|
|
2617 |
iprot.readStructBegin()
|
|
|
2618 |
while True:
|
|
|
2619 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2620 |
if ftype == TType.STOP:
|
|
|
2621 |
break
|
|
|
2622 |
if fid == 1:
|
|
|
2623 |
if ftype == TType.I64:
|
|
|
2624 |
self.userId = iprot.readI64();
|
|
|
2625 |
else:
|
|
|
2626 |
iprot.skip(ftype)
|
|
|
2627 |
else:
|
|
|
2628 |
iprot.skip(ftype)
|
|
|
2629 |
iprot.readFieldEnd()
|
|
|
2630 |
iprot.readStructEnd()
|
|
|
2631 |
|
|
|
2632 |
def write(self, oprot):
|
|
|
2633 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2634 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2635 |
return
|
| 559 |
chandransh |
2636 |
oprot.writeStructBegin('getUserById_args')
|
| 94 |
ashish |
2637 |
if self.userId != None:
|
|
|
2638 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
2639 |
oprot.writeI64(self.userId)
|
|
|
2640 |
oprot.writeFieldEnd()
|
|
|
2641 |
oprot.writeFieldStop()
|
|
|
2642 |
oprot.writeStructEnd()
|
|
|
2643 |
|
|
|
2644 |
def __repr__(self):
|
|
|
2645 |
L = ['%s=%r' % (key, value)
|
|
|
2646 |
for key, value in self.__dict__.iteritems()]
|
|
|
2647 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2648 |
|
|
|
2649 |
def __eq__(self, other):
|
|
|
2650 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2651 |
|
|
|
2652 |
def __ne__(self, other):
|
|
|
2653 |
return not (self == other)
|
|
|
2654 |
|
| 559 |
chandransh |
2655 |
class getUserById_result:
|
| 94 |
ashish |
2656 |
"""
|
|
|
2657 |
Attributes:
|
|
|
2658 |
- success
|
| 559 |
chandransh |
2659 |
- ucex
|
| 94 |
ashish |
2660 |
"""
|
|
|
2661 |
|
|
|
2662 |
thrift_spec = (
|
| 559 |
chandransh |
2663 |
(0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
|
|
|
2664 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2665 |
)
|
|
|
2666 |
|
| 559 |
chandransh |
2667 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
2668 |
self.success = success
|
| 559 |
chandransh |
2669 |
self.ucex = ucex
|
| 94 |
ashish |
2670 |
|
|
|
2671 |
def read(self, iprot):
|
|
|
2672 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2673 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2674 |
return
|
|
|
2675 |
iprot.readStructBegin()
|
|
|
2676 |
while True:
|
|
|
2677 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2678 |
if ftype == TType.STOP:
|
|
|
2679 |
break
|
|
|
2680 |
if fid == 0:
|
|
|
2681 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2682 |
self.success = User()
|
| 94 |
ashish |
2683 |
self.success.read(iprot)
|
|
|
2684 |
else:
|
|
|
2685 |
iprot.skip(ftype)
|
|
|
2686 |
elif fid == 1:
|
|
|
2687 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2688 |
self.ucex = UserContextException()
|
|
|
2689 |
self.ucex.read(iprot)
|
| 94 |
ashish |
2690 |
else:
|
|
|
2691 |
iprot.skip(ftype)
|
|
|
2692 |
else:
|
|
|
2693 |
iprot.skip(ftype)
|
|
|
2694 |
iprot.readFieldEnd()
|
|
|
2695 |
iprot.readStructEnd()
|
|
|
2696 |
|
|
|
2697 |
def write(self, oprot):
|
|
|
2698 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2699 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2700 |
return
|
| 559 |
chandransh |
2701 |
oprot.writeStructBegin('getUserById_result')
|
| 94 |
ashish |
2702 |
if self.success != None:
|
|
|
2703 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2704 |
self.success.write(oprot)
|
|
|
2705 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2706 |
if self.ucex != None:
|
|
|
2707 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
2708 |
self.ucex.write(oprot)
|
| 94 |
ashish |
2709 |
oprot.writeFieldEnd()
|
|
|
2710 |
oprot.writeFieldStop()
|
|
|
2711 |
oprot.writeStructEnd()
|
|
|
2712 |
|
|
|
2713 |
def __repr__(self):
|
|
|
2714 |
L = ['%s=%r' % (key, value)
|
|
|
2715 |
for key, value in self.__dict__.iteritems()]
|
|
|
2716 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2717 |
|
|
|
2718 |
def __eq__(self, other):
|
|
|
2719 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2720 |
|
|
|
2721 |
def __ne__(self, other):
|
|
|
2722 |
return not (self == other)
|
|
|
2723 |
|
| 559 |
chandransh |
2724 |
class createUser_args:
|
| 94 |
ashish |
2725 |
"""
|
|
|
2726 |
Attributes:
|
| 559 |
chandransh |
2727 |
- user
|
| 94 |
ashish |
2728 |
"""
|
|
|
2729 |
|
|
|
2730 |
thrift_spec = (
|
|
|
2731 |
None, # 0
|
| 559 |
chandransh |
2732 |
(1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2733 |
)
|
|
|
2734 |
|
| 559 |
chandransh |
2735 |
def __init__(self, user=None,):
|
|
|
2736 |
self.user = user
|
| 94 |
ashish |
2737 |
|
|
|
2738 |
def read(self, iprot):
|
|
|
2739 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2740 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2741 |
return
|
|
|
2742 |
iprot.readStructBegin()
|
|
|
2743 |
while True:
|
|
|
2744 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2745 |
if ftype == TType.STOP:
|
|
|
2746 |
break
|
|
|
2747 |
if fid == 1:
|
| 559 |
chandransh |
2748 |
if ftype == TType.STRUCT:
|
|
|
2749 |
self.user = User()
|
|
|
2750 |
self.user.read(iprot)
|
| 94 |
ashish |
2751 |
else:
|
|
|
2752 |
iprot.skip(ftype)
|
|
|
2753 |
else:
|
|
|
2754 |
iprot.skip(ftype)
|
|
|
2755 |
iprot.readFieldEnd()
|
|
|
2756 |
iprot.readStructEnd()
|
|
|
2757 |
|
|
|
2758 |
def write(self, oprot):
|
|
|
2759 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2760 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2761 |
return
|
| 559 |
chandransh |
2762 |
oprot.writeStructBegin('createUser_args')
|
|
|
2763 |
if self.user != None:
|
|
|
2764 |
oprot.writeFieldBegin('user', TType.STRUCT, 1)
|
|
|
2765 |
self.user.write(oprot)
|
| 94 |
ashish |
2766 |
oprot.writeFieldEnd()
|
|
|
2767 |
oprot.writeFieldStop()
|
|
|
2768 |
oprot.writeStructEnd()
|
|
|
2769 |
|
|
|
2770 |
def __repr__(self):
|
|
|
2771 |
L = ['%s=%r' % (key, value)
|
|
|
2772 |
for key, value in self.__dict__.iteritems()]
|
|
|
2773 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2774 |
|
|
|
2775 |
def __eq__(self, other):
|
|
|
2776 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2777 |
|
|
|
2778 |
def __ne__(self, other):
|
|
|
2779 |
return not (self == other)
|
|
|
2780 |
|
| 559 |
chandransh |
2781 |
class createUser_result:
|
| 94 |
ashish |
2782 |
"""
|
|
|
2783 |
Attributes:
|
|
|
2784 |
- success
|
| 559 |
chandransh |
2785 |
- ucex
|
| 94 |
ashish |
2786 |
"""
|
|
|
2787 |
|
|
|
2788 |
thrift_spec = (
|
| 559 |
chandransh |
2789 |
(0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
|
|
|
2790 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2791 |
)
|
|
|
2792 |
|
| 559 |
chandransh |
2793 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
2794 |
self.success = success
|
| 559 |
chandransh |
2795 |
self.ucex = ucex
|
| 94 |
ashish |
2796 |
|
|
|
2797 |
def read(self, iprot):
|
|
|
2798 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2799 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2800 |
return
|
|
|
2801 |
iprot.readStructBegin()
|
|
|
2802 |
while True:
|
|
|
2803 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2804 |
if ftype == TType.STOP:
|
|
|
2805 |
break
|
|
|
2806 |
if fid == 0:
|
|
|
2807 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2808 |
self.success = User()
|
| 94 |
ashish |
2809 |
self.success.read(iprot)
|
|
|
2810 |
else:
|
|
|
2811 |
iprot.skip(ftype)
|
|
|
2812 |
elif fid == 1:
|
|
|
2813 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2814 |
self.ucex = UserContextException()
|
|
|
2815 |
self.ucex.read(iprot)
|
| 94 |
ashish |
2816 |
else:
|
|
|
2817 |
iprot.skip(ftype)
|
|
|
2818 |
else:
|
|
|
2819 |
iprot.skip(ftype)
|
|
|
2820 |
iprot.readFieldEnd()
|
|
|
2821 |
iprot.readStructEnd()
|
|
|
2822 |
|
|
|
2823 |
def write(self, oprot):
|
|
|
2824 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2825 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2826 |
return
|
| 559 |
chandransh |
2827 |
oprot.writeStructBegin('createUser_result')
|
| 94 |
ashish |
2828 |
if self.success != None:
|
|
|
2829 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2830 |
self.success.write(oprot)
|
|
|
2831 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2832 |
if self.ucex != None:
|
|
|
2833 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
2834 |
self.ucex.write(oprot)
|
| 94 |
ashish |
2835 |
oprot.writeFieldEnd()
|
|
|
2836 |
oprot.writeFieldStop()
|
|
|
2837 |
oprot.writeStructEnd()
|
|
|
2838 |
|
|
|
2839 |
def __repr__(self):
|
|
|
2840 |
L = ['%s=%r' % (key, value)
|
|
|
2841 |
for key, value in self.__dict__.iteritems()]
|
|
|
2842 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2843 |
|
|
|
2844 |
def __eq__(self, other):
|
|
|
2845 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2846 |
|
|
|
2847 |
def __ne__(self, other):
|
|
|
2848 |
return not (self == other)
|
|
|
2849 |
|
| 559 |
chandransh |
2850 |
class updateUser_args:
|
| 94 |
ashish |
2851 |
"""
|
|
|
2852 |
Attributes:
|
| 559 |
chandransh |
2853 |
- user
|
| 94 |
ashish |
2854 |
"""
|
|
|
2855 |
|
|
|
2856 |
thrift_spec = (
|
|
|
2857 |
None, # 0
|
| 559 |
chandransh |
2858 |
(1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2859 |
)
|
|
|
2860 |
|
| 559 |
chandransh |
2861 |
def __init__(self, user=None,):
|
|
|
2862 |
self.user = user
|
| 94 |
ashish |
2863 |
|
|
|
2864 |
def read(self, iprot):
|
|
|
2865 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2866 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2867 |
return
|
|
|
2868 |
iprot.readStructBegin()
|
|
|
2869 |
while True:
|
|
|
2870 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2871 |
if ftype == TType.STOP:
|
|
|
2872 |
break
|
|
|
2873 |
if fid == 1:
|
| 559 |
chandransh |
2874 |
if ftype == TType.STRUCT:
|
|
|
2875 |
self.user = User()
|
|
|
2876 |
self.user.read(iprot)
|
| 94 |
ashish |
2877 |
else:
|
|
|
2878 |
iprot.skip(ftype)
|
|
|
2879 |
else:
|
|
|
2880 |
iprot.skip(ftype)
|
|
|
2881 |
iprot.readFieldEnd()
|
|
|
2882 |
iprot.readStructEnd()
|
|
|
2883 |
|
|
|
2884 |
def write(self, oprot):
|
|
|
2885 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2886 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2887 |
return
|
| 559 |
chandransh |
2888 |
oprot.writeStructBegin('updateUser_args')
|
|
|
2889 |
if self.user != None:
|
|
|
2890 |
oprot.writeFieldBegin('user', TType.STRUCT, 1)
|
|
|
2891 |
self.user.write(oprot)
|
| 94 |
ashish |
2892 |
oprot.writeFieldEnd()
|
|
|
2893 |
oprot.writeFieldStop()
|
|
|
2894 |
oprot.writeStructEnd()
|
|
|
2895 |
|
|
|
2896 |
def __repr__(self):
|
|
|
2897 |
L = ['%s=%r' % (key, value)
|
|
|
2898 |
for key, value in self.__dict__.iteritems()]
|
|
|
2899 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2900 |
|
|
|
2901 |
def __eq__(self, other):
|
|
|
2902 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2903 |
|
|
|
2904 |
def __ne__(self, other):
|
|
|
2905 |
return not (self == other)
|
|
|
2906 |
|
| 559 |
chandransh |
2907 |
class updateUser_result:
|
| 94 |
ashish |
2908 |
"""
|
|
|
2909 |
Attributes:
|
|
|
2910 |
- success
|
| 559 |
chandransh |
2911 |
- ucex
|
| 94 |
ashish |
2912 |
"""
|
|
|
2913 |
|
|
|
2914 |
thrift_spec = (
|
| 559 |
chandransh |
2915 |
(0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
|
|
|
2916 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
2917 |
)
|
|
|
2918 |
|
| 559 |
chandransh |
2919 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
2920 |
self.success = success
|
| 559 |
chandransh |
2921 |
self.ucex = ucex
|
| 94 |
ashish |
2922 |
|
|
|
2923 |
def read(self, iprot):
|
|
|
2924 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2925 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2926 |
return
|
|
|
2927 |
iprot.readStructBegin()
|
|
|
2928 |
while True:
|
|
|
2929 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2930 |
if ftype == TType.STOP:
|
|
|
2931 |
break
|
|
|
2932 |
if fid == 0:
|
|
|
2933 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2934 |
self.success = User()
|
| 94 |
ashish |
2935 |
self.success.read(iprot)
|
|
|
2936 |
else:
|
|
|
2937 |
iprot.skip(ftype)
|
|
|
2938 |
elif fid == 1:
|
|
|
2939 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
2940 |
self.ucex = UserContextException()
|
|
|
2941 |
self.ucex.read(iprot)
|
| 94 |
ashish |
2942 |
else:
|
|
|
2943 |
iprot.skip(ftype)
|
|
|
2944 |
else:
|
|
|
2945 |
iprot.skip(ftype)
|
|
|
2946 |
iprot.readFieldEnd()
|
|
|
2947 |
iprot.readStructEnd()
|
|
|
2948 |
|
|
|
2949 |
def write(self, oprot):
|
|
|
2950 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2951 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2952 |
return
|
| 559 |
chandransh |
2953 |
oprot.writeStructBegin('updateUser_result')
|
| 94 |
ashish |
2954 |
if self.success != None:
|
|
|
2955 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2956 |
self.success.write(oprot)
|
|
|
2957 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
2958 |
if self.ucex != None:
|
|
|
2959 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
2960 |
self.ucex.write(oprot)
|
| 94 |
ashish |
2961 |
oprot.writeFieldEnd()
|
|
|
2962 |
oprot.writeFieldStop()
|
|
|
2963 |
oprot.writeStructEnd()
|
|
|
2964 |
|
|
|
2965 |
def __repr__(self):
|
|
|
2966 |
L = ['%s=%r' % (key, value)
|
|
|
2967 |
for key, value in self.__dict__.iteritems()]
|
|
|
2968 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2969 |
|
|
|
2970 |
def __eq__(self, other):
|
|
|
2971 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2972 |
|
|
|
2973 |
def __ne__(self, other):
|
|
|
2974 |
return not (self == other)
|
|
|
2975 |
|
| 559 |
chandransh |
2976 |
class deleteUser_args:
|
| 94 |
ashish |
2977 |
"""
|
|
|
2978 |
Attributes:
|
|
|
2979 |
- userId
|
|
|
2980 |
"""
|
|
|
2981 |
|
|
|
2982 |
thrift_spec = (
|
|
|
2983 |
None, # 0
|
|
|
2984 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
2985 |
)
|
|
|
2986 |
|
| 559 |
chandransh |
2987 |
def __init__(self, userId=None,):
|
| 94 |
ashish |
2988 |
self.userId = userId
|
|
|
2989 |
|
|
|
2990 |
def read(self, iprot):
|
|
|
2991 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2992 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2993 |
return
|
|
|
2994 |
iprot.readStructBegin()
|
|
|
2995 |
while True:
|
|
|
2996 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2997 |
if ftype == TType.STOP:
|
|
|
2998 |
break
|
|
|
2999 |
if fid == 1:
|
|
|
3000 |
if ftype == TType.I64:
|
|
|
3001 |
self.userId = iprot.readI64();
|
|
|
3002 |
else:
|
|
|
3003 |
iprot.skip(ftype)
|
|
|
3004 |
else:
|
|
|
3005 |
iprot.skip(ftype)
|
|
|
3006 |
iprot.readFieldEnd()
|
|
|
3007 |
iprot.readStructEnd()
|
|
|
3008 |
|
|
|
3009 |
def write(self, oprot):
|
|
|
3010 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3011 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3012 |
return
|
| 559 |
chandransh |
3013 |
oprot.writeStructBegin('deleteUser_args')
|
| 94 |
ashish |
3014 |
if self.userId != None:
|
|
|
3015 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
3016 |
oprot.writeI64(self.userId)
|
|
|
3017 |
oprot.writeFieldEnd()
|
|
|
3018 |
oprot.writeFieldStop()
|
|
|
3019 |
oprot.writeStructEnd()
|
|
|
3020 |
|
|
|
3021 |
def __repr__(self):
|
|
|
3022 |
L = ['%s=%r' % (key, value)
|
|
|
3023 |
for key, value in self.__dict__.iteritems()]
|
|
|
3024 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3025 |
|
|
|
3026 |
def __eq__(self, other):
|
|
|
3027 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3028 |
|
|
|
3029 |
def __ne__(self, other):
|
|
|
3030 |
return not (self == other)
|
|
|
3031 |
|
| 559 |
chandransh |
3032 |
class deleteUser_result:
|
| 94 |
ashish |
3033 |
"""
|
|
|
3034 |
Attributes:
|
|
|
3035 |
- success
|
| 559 |
chandransh |
3036 |
- ucex
|
| 94 |
ashish |
3037 |
"""
|
|
|
3038 |
|
|
|
3039 |
thrift_spec = (
|
| 559 |
chandransh |
3040 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3041 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
3042 |
)
|
|
|
3043 |
|
| 559 |
chandransh |
3044 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
3045 |
self.success = success
|
| 559 |
chandransh |
3046 |
self.ucex = ucex
|
| 94 |
ashish |
3047 |
|
|
|
3048 |
def read(self, iprot):
|
|
|
3049 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3050 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3051 |
return
|
|
|
3052 |
iprot.readStructBegin()
|
|
|
3053 |
while True:
|
|
|
3054 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3055 |
if ftype == TType.STOP:
|
|
|
3056 |
break
|
|
|
3057 |
if fid == 0:
|
| 559 |
chandransh |
3058 |
if ftype == TType.BOOL:
|
|
|
3059 |
self.success = iprot.readBool();
|
| 94 |
ashish |
3060 |
else:
|
|
|
3061 |
iprot.skip(ftype)
|
|
|
3062 |
elif fid == 1:
|
|
|
3063 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3064 |
self.ucex = UserContextException()
|
|
|
3065 |
self.ucex.read(iprot)
|
| 94 |
ashish |
3066 |
else:
|
|
|
3067 |
iprot.skip(ftype)
|
|
|
3068 |
else:
|
|
|
3069 |
iprot.skip(ftype)
|
|
|
3070 |
iprot.readFieldEnd()
|
|
|
3071 |
iprot.readStructEnd()
|
|
|
3072 |
|
|
|
3073 |
def write(self, oprot):
|
|
|
3074 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3075 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3076 |
return
|
| 559 |
chandransh |
3077 |
oprot.writeStructBegin('deleteUser_result')
|
| 94 |
ashish |
3078 |
if self.success != None:
|
| 559 |
chandransh |
3079 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3080 |
oprot.writeBool(self.success)
|
| 94 |
ashish |
3081 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3082 |
if self.ucex != None:
|
|
|
3083 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
3084 |
self.ucex.write(oprot)
|
| 94 |
ashish |
3085 |
oprot.writeFieldEnd()
|
|
|
3086 |
oprot.writeFieldStop()
|
|
|
3087 |
oprot.writeStructEnd()
|
|
|
3088 |
|
|
|
3089 |
def __repr__(self):
|
|
|
3090 |
L = ['%s=%r' % (key, value)
|
|
|
3091 |
for key, value in self.__dict__.iteritems()]
|
|
|
3092 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3093 |
|
|
|
3094 |
def __eq__(self, other):
|
|
|
3095 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3096 |
|
|
|
3097 |
def __ne__(self, other):
|
|
|
3098 |
return not (self == other)
|
|
|
3099 |
|
| 559 |
chandransh |
3100 |
class getUserState_args:
|
| 94 |
ashish |
3101 |
"""
|
|
|
3102 |
Attributes:
|
|
|
3103 |
- userId
|
|
|
3104 |
"""
|
|
|
3105 |
|
|
|
3106 |
thrift_spec = (
|
|
|
3107 |
None, # 0
|
|
|
3108 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
3109 |
)
|
|
|
3110 |
|
| 559 |
chandransh |
3111 |
def __init__(self, userId=None,):
|
| 94 |
ashish |
3112 |
self.userId = userId
|
|
|
3113 |
|
|
|
3114 |
def read(self, iprot):
|
|
|
3115 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3116 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3117 |
return
|
|
|
3118 |
iprot.readStructBegin()
|
|
|
3119 |
while True:
|
|
|
3120 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3121 |
if ftype == TType.STOP:
|
|
|
3122 |
break
|
|
|
3123 |
if fid == 1:
|
|
|
3124 |
if ftype == TType.I64:
|
|
|
3125 |
self.userId = iprot.readI64();
|
|
|
3126 |
else:
|
|
|
3127 |
iprot.skip(ftype)
|
|
|
3128 |
else:
|
|
|
3129 |
iprot.skip(ftype)
|
|
|
3130 |
iprot.readFieldEnd()
|
|
|
3131 |
iprot.readStructEnd()
|
|
|
3132 |
|
|
|
3133 |
def write(self, oprot):
|
|
|
3134 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3135 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3136 |
return
|
| 559 |
chandransh |
3137 |
oprot.writeStructBegin('getUserState_args')
|
| 94 |
ashish |
3138 |
if self.userId != None:
|
|
|
3139 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
3140 |
oprot.writeI64(self.userId)
|
|
|
3141 |
oprot.writeFieldEnd()
|
|
|
3142 |
oprot.writeFieldStop()
|
|
|
3143 |
oprot.writeStructEnd()
|
|
|
3144 |
|
|
|
3145 |
def __repr__(self):
|
|
|
3146 |
L = ['%s=%r' % (key, value)
|
|
|
3147 |
for key, value in self.__dict__.iteritems()]
|
|
|
3148 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3149 |
|
|
|
3150 |
def __eq__(self, other):
|
|
|
3151 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3152 |
|
|
|
3153 |
def __ne__(self, other):
|
|
|
3154 |
return not (self == other)
|
|
|
3155 |
|
| 559 |
chandransh |
3156 |
class getUserState_result:
|
| 94 |
ashish |
3157 |
"""
|
|
|
3158 |
Attributes:
|
|
|
3159 |
- success
|
| 559 |
chandransh |
3160 |
- ucex
|
| 94 |
ashish |
3161 |
"""
|
|
|
3162 |
|
|
|
3163 |
thrift_spec = (
|
| 559 |
chandransh |
3164 |
(0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
|
|
|
3165 |
(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
3166 |
)
|
|
|
3167 |
|
| 559 |
chandransh |
3168 |
def __init__(self, success=None, ucex=None,):
|
| 94 |
ashish |
3169 |
self.success = success
|
| 559 |
chandransh |
3170 |
self.ucex = ucex
|
| 94 |
ashish |
3171 |
|
|
|
3172 |
def read(self, iprot):
|
|
|
3173 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3174 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3175 |
return
|
|
|
3176 |
iprot.readStructBegin()
|
|
|
3177 |
while True:
|
|
|
3178 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3179 |
if ftype == TType.STOP:
|
|
|
3180 |
break
|
|
|
3181 |
if fid == 0:
|
|
|
3182 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3183 |
self.success = UserState()
|
| 94 |
ashish |
3184 |
self.success.read(iprot)
|
|
|
3185 |
else:
|
|
|
3186 |
iprot.skip(ftype)
|
|
|
3187 |
elif fid == 1:
|
|
|
3188 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3189 |
self.ucex = UserContextException()
|
|
|
3190 |
self.ucex.read(iprot)
|
| 94 |
ashish |
3191 |
else:
|
|
|
3192 |
iprot.skip(ftype)
|
|
|
3193 |
else:
|
|
|
3194 |
iprot.skip(ftype)
|
|
|
3195 |
iprot.readFieldEnd()
|
|
|
3196 |
iprot.readStructEnd()
|
|
|
3197 |
|
|
|
3198 |
def write(self, oprot):
|
|
|
3199 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3200 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3201 |
return
|
| 559 |
chandransh |
3202 |
oprot.writeStructBegin('getUserState_result')
|
| 94 |
ashish |
3203 |
if self.success != None:
|
|
|
3204 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3205 |
self.success.write(oprot)
|
|
|
3206 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3207 |
if self.ucex != None:
|
|
|
3208 |
oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
|
|
|
3209 |
self.ucex.write(oprot)
|
| 94 |
ashish |
3210 |
oprot.writeFieldEnd()
|
|
|
3211 |
oprot.writeFieldStop()
|
|
|
3212 |
oprot.writeStructEnd()
|
|
|
3213 |
|
|
|
3214 |
def __repr__(self):
|
|
|
3215 |
L = ['%s=%r' % (key, value)
|
|
|
3216 |
for key, value in self.__dict__.iteritems()]
|
|
|
3217 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3218 |
|
|
|
3219 |
def __eq__(self, other):
|
|
|
3220 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3221 |
|
|
|
3222 |
def __ne__(self, other):
|
|
|
3223 |
return not (self == other)
|
|
|
3224 |
|
| 559 |
chandransh |
3225 |
class authenticateUser_args:
|
| 94 |
ashish |
3226 |
"""
|
|
|
3227 |
Attributes:
|
|
|
3228 |
- email
|
|
|
3229 |
- password
|
|
|
3230 |
"""
|
|
|
3231 |
|
|
|
3232 |
thrift_spec = (
|
|
|
3233 |
None, # 0
|
|
|
3234 |
(1, TType.STRING, 'email', None, None, ), # 1
|
|
|
3235 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3236 |
)
|
|
|
3237 |
|
|
|
3238 |
def __init__(self, email=None, password=None,):
|
|
|
3239 |
self.email = email
|
|
|
3240 |
self.password = password
|
|
|
3241 |
|
|
|
3242 |
def read(self, iprot):
|
|
|
3243 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3244 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3245 |
return
|
|
|
3246 |
iprot.readStructBegin()
|
|
|
3247 |
while True:
|
|
|
3248 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3249 |
if ftype == TType.STOP:
|
|
|
3250 |
break
|
|
|
3251 |
if fid == 1:
|
|
|
3252 |
if ftype == TType.STRING:
|
|
|
3253 |
self.email = iprot.readString();
|
|
|
3254 |
else:
|
|
|
3255 |
iprot.skip(ftype)
|
|
|
3256 |
elif fid == 2:
|
|
|
3257 |
if ftype == TType.STRING:
|
|
|
3258 |
self.password = iprot.readString();
|
|
|
3259 |
else:
|
|
|
3260 |
iprot.skip(ftype)
|
|
|
3261 |
else:
|
|
|
3262 |
iprot.skip(ftype)
|
|
|
3263 |
iprot.readFieldEnd()
|
|
|
3264 |
iprot.readStructEnd()
|
|
|
3265 |
|
|
|
3266 |
def write(self, oprot):
|
|
|
3267 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3268 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3269 |
return
|
| 559 |
chandransh |
3270 |
oprot.writeStructBegin('authenticateUser_args')
|
| 94 |
ashish |
3271 |
if self.email != None:
|
|
|
3272 |
oprot.writeFieldBegin('email', TType.STRING, 1)
|
|
|
3273 |
oprot.writeString(self.email)
|
|
|
3274 |
oprot.writeFieldEnd()
|
|
|
3275 |
if self.password != None:
|
|
|
3276 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3277 |
oprot.writeString(self.password)
|
|
|
3278 |
oprot.writeFieldEnd()
|
|
|
3279 |
oprot.writeFieldStop()
|
|
|
3280 |
oprot.writeStructEnd()
|
|
|
3281 |
|
|
|
3282 |
def __repr__(self):
|
|
|
3283 |
L = ['%s=%r' % (key, value)
|
|
|
3284 |
for key, value in self.__dict__.iteritems()]
|
|
|
3285 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3286 |
|
|
|
3287 |
def __eq__(self, other):
|
|
|
3288 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3289 |
|
|
|
3290 |
def __ne__(self, other):
|
|
|
3291 |
return not (self == other)
|
|
|
3292 |
|
| 559 |
chandransh |
3293 |
class authenticateUser_result:
|
| 94 |
ashish |
3294 |
"""
|
|
|
3295 |
Attributes:
|
|
|
3296 |
- success
|
| 559 |
chandransh |
3297 |
- auex
|
| 94 |
ashish |
3298 |
"""
|
|
|
3299 |
|
|
|
3300 |
thrift_spec = (
|
| 559 |
chandransh |
3301 |
(0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
|
|
|
3302 |
(1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
3303 |
)
|
|
|
3304 |
|
| 559 |
chandransh |
3305 |
def __init__(self, success=None, auex=None,):
|
| 94 |
ashish |
3306 |
self.success = success
|
| 559 |
chandransh |
3307 |
self.auex = auex
|
| 94 |
ashish |
3308 |
|
|
|
3309 |
def read(self, iprot):
|
|
|
3310 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3311 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3312 |
return
|
|
|
3313 |
iprot.readStructBegin()
|
|
|
3314 |
while True:
|
|
|
3315 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3316 |
if ftype == TType.STOP:
|
|
|
3317 |
break
|
|
|
3318 |
if fid == 0:
|
|
|
3319 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3320 |
self.success = User()
|
| 94 |
ashish |
3321 |
self.success.read(iprot)
|
|
|
3322 |
else:
|
|
|
3323 |
iprot.skip(ftype)
|
|
|
3324 |
elif fid == 1:
|
|
|
3325 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3326 |
self.auex = AuthenticationException()
|
|
|
3327 |
self.auex.read(iprot)
|
| 94 |
ashish |
3328 |
else:
|
|
|
3329 |
iprot.skip(ftype)
|
|
|
3330 |
else:
|
|
|
3331 |
iprot.skip(ftype)
|
|
|
3332 |
iprot.readFieldEnd()
|
|
|
3333 |
iprot.readStructEnd()
|
|
|
3334 |
|
|
|
3335 |
def write(self, oprot):
|
|
|
3336 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3337 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3338 |
return
|
| 559 |
chandransh |
3339 |
oprot.writeStructBegin('authenticateUser_result')
|
| 94 |
ashish |
3340 |
if self.success != None:
|
|
|
3341 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3342 |
self.success.write(oprot)
|
|
|
3343 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3344 |
if self.auex != None:
|
|
|
3345 |
oprot.writeFieldBegin('auex', TType.STRUCT, 1)
|
|
|
3346 |
self.auex.write(oprot)
|
| 94 |
ashish |
3347 |
oprot.writeFieldEnd()
|
|
|
3348 |
oprot.writeFieldStop()
|
|
|
3349 |
oprot.writeStructEnd()
|
|
|
3350 |
|
|
|
3351 |
def __repr__(self):
|
|
|
3352 |
L = ['%s=%r' % (key, value)
|
|
|
3353 |
for key, value in self.__dict__.iteritems()]
|
|
|
3354 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3355 |
|
|
|
3356 |
def __eq__(self, other):
|
|
|
3357 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3358 |
|
|
|
3359 |
def __ne__(self, other):
|
|
|
3360 |
return not (self == other)
|
|
|
3361 |
|
| 559 |
chandransh |
3362 |
class userExists_args:
|
| 122 |
ashish |
3363 |
"""
|
|
|
3364 |
Attributes:
|
| 559 |
chandransh |
3365 |
- email
|
| 122 |
ashish |
3366 |
"""
|
|
|
3367 |
|
|
|
3368 |
thrift_spec = (
|
|
|
3369 |
None, # 0
|
| 559 |
chandransh |
3370 |
(1, TType.STRING, 'email', None, None, ), # 1
|
| 122 |
ashish |
3371 |
)
|
|
|
3372 |
|
| 559 |
chandransh |
3373 |
def __init__(self, email=None,):
|
|
|
3374 |
self.email = email
|
| 122 |
ashish |
3375 |
|
|
|
3376 |
def read(self, iprot):
|
|
|
3377 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3378 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3379 |
return
|
|
|
3380 |
iprot.readStructBegin()
|
|
|
3381 |
while True:
|
|
|
3382 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3383 |
if ftype == TType.STOP:
|
|
|
3384 |
break
|
|
|
3385 |
if fid == 1:
|
|
|
3386 |
if ftype == TType.STRING:
|
| 559 |
chandransh |
3387 |
self.email = iprot.readString();
|
| 122 |
ashish |
3388 |
else:
|
|
|
3389 |
iprot.skip(ftype)
|
| 559 |
chandransh |
3390 |
else:
|
|
|
3391 |
iprot.skip(ftype)
|
|
|
3392 |
iprot.readFieldEnd()
|
|
|
3393 |
iprot.readStructEnd()
|
|
|
3394 |
|
|
|
3395 |
def write(self, oprot):
|
|
|
3396 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3397 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3398 |
return
|
|
|
3399 |
oprot.writeStructBegin('userExists_args')
|
|
|
3400 |
if self.email != None:
|
|
|
3401 |
oprot.writeFieldBegin('email', TType.STRING, 1)
|
|
|
3402 |
oprot.writeString(self.email)
|
|
|
3403 |
oprot.writeFieldEnd()
|
|
|
3404 |
oprot.writeFieldStop()
|
|
|
3405 |
oprot.writeStructEnd()
|
|
|
3406 |
|
|
|
3407 |
def __repr__(self):
|
|
|
3408 |
L = ['%s=%r' % (key, value)
|
|
|
3409 |
for key, value in self.__dict__.iteritems()]
|
|
|
3410 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3411 |
|
|
|
3412 |
def __eq__(self, other):
|
|
|
3413 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3414 |
|
|
|
3415 |
def __ne__(self, other):
|
|
|
3416 |
return not (self == other)
|
|
|
3417 |
|
|
|
3418 |
class userExists_result:
|
|
|
3419 |
"""
|
|
|
3420 |
Attributes:
|
|
|
3421 |
- success
|
|
|
3422 |
- ucx
|
|
|
3423 |
"""
|
|
|
3424 |
|
|
|
3425 |
thrift_spec = (
|
|
|
3426 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3427 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
3428 |
)
|
|
|
3429 |
|
|
|
3430 |
def __init__(self, success=None, ucx=None,):
|
|
|
3431 |
self.success = success
|
|
|
3432 |
self.ucx = ucx
|
|
|
3433 |
|
|
|
3434 |
def read(self, iprot):
|
|
|
3435 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3436 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3437 |
return
|
|
|
3438 |
iprot.readStructBegin()
|
|
|
3439 |
while True:
|
|
|
3440 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3441 |
if ftype == TType.STOP:
|
|
|
3442 |
break
|
|
|
3443 |
if fid == 0:
|
|
|
3444 |
if ftype == TType.BOOL:
|
|
|
3445 |
self.success = iprot.readBool();
|
|
|
3446 |
else:
|
|
|
3447 |
iprot.skip(ftype)
|
|
|
3448 |
elif fid == 1:
|
|
|
3449 |
if ftype == TType.STRUCT:
|
|
|
3450 |
self.ucx = UserContextException()
|
|
|
3451 |
self.ucx.read(iprot)
|
|
|
3452 |
else:
|
|
|
3453 |
iprot.skip(ftype)
|
|
|
3454 |
else:
|
|
|
3455 |
iprot.skip(ftype)
|
|
|
3456 |
iprot.readFieldEnd()
|
|
|
3457 |
iprot.readStructEnd()
|
|
|
3458 |
|
|
|
3459 |
def write(self, oprot):
|
|
|
3460 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3461 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3462 |
return
|
|
|
3463 |
oprot.writeStructBegin('userExists_result')
|
|
|
3464 |
if self.success != None:
|
|
|
3465 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3466 |
oprot.writeBool(self.success)
|
|
|
3467 |
oprot.writeFieldEnd()
|
|
|
3468 |
if self.ucx != None:
|
|
|
3469 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
3470 |
self.ucx.write(oprot)
|
|
|
3471 |
oprot.writeFieldEnd()
|
|
|
3472 |
oprot.writeFieldStop()
|
|
|
3473 |
oprot.writeStructEnd()
|
|
|
3474 |
|
|
|
3475 |
def __repr__(self):
|
|
|
3476 |
L = ['%s=%r' % (key, value)
|
|
|
3477 |
for key, value in self.__dict__.iteritems()]
|
|
|
3478 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3479 |
|
|
|
3480 |
def __eq__(self, other):
|
|
|
3481 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3482 |
|
|
|
3483 |
def __ne__(self, other):
|
|
|
3484 |
return not (self == other)
|
|
|
3485 |
|
|
|
3486 |
class addAddressForUser_args:
|
|
|
3487 |
"""
|
|
|
3488 |
Attributes:
|
|
|
3489 |
- userId
|
|
|
3490 |
- address
|
|
|
3491 |
- setDefault
|
|
|
3492 |
"""
|
|
|
3493 |
|
|
|
3494 |
thrift_spec = (
|
|
|
3495 |
None, # 0
|
|
|
3496 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
3497 |
(2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
|
| 567 |
rajveer |
3498 |
(3, TType.BOOL, 'setDefault', None, None, ), # 3
|
| 559 |
chandransh |
3499 |
)
|
|
|
3500 |
|
| 567 |
rajveer |
3501 |
def __init__(self, userId=None, address=None, setDefault=None,):
|
| 559 |
chandransh |
3502 |
self.userId = userId
|
|
|
3503 |
self.address = address
|
|
|
3504 |
self.setDefault = setDefault
|
|
|
3505 |
|
|
|
3506 |
def read(self, iprot):
|
|
|
3507 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3508 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3509 |
return
|
|
|
3510 |
iprot.readStructBegin()
|
|
|
3511 |
while True:
|
|
|
3512 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3513 |
if ftype == TType.STOP:
|
|
|
3514 |
break
|
|
|
3515 |
if fid == 1:
|
|
|
3516 |
if ftype == TType.I64:
|
|
|
3517 |
self.userId = iprot.readI64();
|
|
|
3518 |
else:
|
|
|
3519 |
iprot.skip(ftype)
|
| 122 |
ashish |
3520 |
elif fid == 2:
|
| 559 |
chandransh |
3521 |
if ftype == TType.STRUCT:
|
|
|
3522 |
self.address = Address()
|
|
|
3523 |
self.address.read(iprot)
|
| 122 |
ashish |
3524 |
else:
|
|
|
3525 |
iprot.skip(ftype)
|
|
|
3526 |
elif fid == 3:
|
|
|
3527 |
if ftype == TType.BOOL:
|
| 559 |
chandransh |
3528 |
self.setDefault = iprot.readBool();
|
| 122 |
ashish |
3529 |
else:
|
|
|
3530 |
iprot.skip(ftype)
|
|
|
3531 |
else:
|
|
|
3532 |
iprot.skip(ftype)
|
|
|
3533 |
iprot.readFieldEnd()
|
|
|
3534 |
iprot.readStructEnd()
|
|
|
3535 |
|
|
|
3536 |
def write(self, oprot):
|
|
|
3537 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3538 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3539 |
return
|
| 559 |
chandransh |
3540 |
oprot.writeStructBegin('addAddressForUser_args')
|
|
|
3541 |
if self.userId != None:
|
|
|
3542 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
3543 |
oprot.writeI64(self.userId)
|
| 122 |
ashish |
3544 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3545 |
if self.address != None:
|
|
|
3546 |
oprot.writeFieldBegin('address', TType.STRUCT, 2)
|
|
|
3547 |
self.address.write(oprot)
|
| 122 |
ashish |
3548 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3549 |
if self.setDefault != None:
|
| 567 |
rajveer |
3550 |
oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
|
| 559 |
chandransh |
3551 |
oprot.writeBool(self.setDefault)
|
|
|
3552 |
oprot.writeFieldEnd()
|
| 122 |
ashish |
3553 |
oprot.writeFieldStop()
|
|
|
3554 |
oprot.writeStructEnd()
|
|
|
3555 |
|
|
|
3556 |
def __repr__(self):
|
|
|
3557 |
L = ['%s=%r' % (key, value)
|
|
|
3558 |
for key, value in self.__dict__.iteritems()]
|
|
|
3559 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3560 |
|
|
|
3561 |
def __eq__(self, other):
|
|
|
3562 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3563 |
|
|
|
3564 |
def __ne__(self, other):
|
|
|
3565 |
return not (self == other)
|
|
|
3566 |
|
| 559 |
chandransh |
3567 |
class addAddressForUser_result:
|
| 122 |
ashish |
3568 |
"""
|
|
|
3569 |
Attributes:
|
|
|
3570 |
- success
|
| 559 |
chandransh |
3571 |
- ucx
|
| 122 |
ashish |
3572 |
"""
|
|
|
3573 |
|
|
|
3574 |
thrift_spec = (
|
| 567 |
rajveer |
3575 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 559 |
chandransh |
3576 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
| 122 |
ashish |
3577 |
)
|
|
|
3578 |
|
| 559 |
chandransh |
3579 |
def __init__(self, success=None, ucx=None,):
|
| 122 |
ashish |
3580 |
self.success = success
|
| 559 |
chandransh |
3581 |
self.ucx = ucx
|
| 122 |
ashish |
3582 |
|
|
|
3583 |
def read(self, iprot):
|
|
|
3584 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3585 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3586 |
return
|
|
|
3587 |
iprot.readStructBegin()
|
|
|
3588 |
while True:
|
|
|
3589 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3590 |
if ftype == TType.STOP:
|
|
|
3591 |
break
|
|
|
3592 |
if fid == 0:
|
| 567 |
rajveer |
3593 |
if ftype == TType.I64:
|
|
|
3594 |
self.success = iprot.readI64();
|
| 122 |
ashish |
3595 |
else:
|
|
|
3596 |
iprot.skip(ftype)
|
|
|
3597 |
elif fid == 1:
|
|
|
3598 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
3599 |
self.ucx = UserContextException()
|
|
|
3600 |
self.ucx.read(iprot)
|
| 122 |
ashish |
3601 |
else:
|
|
|
3602 |
iprot.skip(ftype)
|
|
|
3603 |
else:
|
|
|
3604 |
iprot.skip(ftype)
|
|
|
3605 |
iprot.readFieldEnd()
|
|
|
3606 |
iprot.readStructEnd()
|
|
|
3607 |
|
|
|
3608 |
def write(self, oprot):
|
|
|
3609 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3610 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3611 |
return
|
| 559 |
chandransh |
3612 |
oprot.writeStructBegin('addAddressForUser_result')
|
| 122 |
ashish |
3613 |
if self.success != None:
|
| 567 |
rajveer |
3614 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
3615 |
oprot.writeI64(self.success)
|
| 122 |
ashish |
3616 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3617 |
if self.ucx != None:
|
|
|
3618 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
3619 |
self.ucx.write(oprot)
|
| 122 |
ashish |
3620 |
oprot.writeFieldEnd()
|
|
|
3621 |
oprot.writeFieldStop()
|
|
|
3622 |
oprot.writeStructEnd()
|
|
|
3623 |
|
|
|
3624 |
def __repr__(self):
|
|
|
3625 |
L = ['%s=%r' % (key, value)
|
|
|
3626 |
for key, value in self.__dict__.iteritems()]
|
|
|
3627 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3628 |
|
|
|
3629 |
def __eq__(self, other):
|
|
|
3630 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3631 |
|
|
|
3632 |
def __ne__(self, other):
|
|
|
3633 |
return not (self == other)
|
|
|
3634 |
|
| 559 |
chandransh |
3635 |
class removeAddressForUser_args:
|
| 94 |
ashish |
3636 |
"""
|
|
|
3637 |
Attributes:
|
| 559 |
chandransh |
3638 |
- userid
|
|
|
3639 |
- addressId
|
| 94 |
ashish |
3640 |
"""
|
|
|
3641 |
|
|
|
3642 |
thrift_spec = (
|
|
|
3643 |
None, # 0
|
| 559 |
chandransh |
3644 |
(1, TType.I64, 'userid', None, None, ), # 1
|
|
|
3645 |
(2, TType.I64, 'addressId', None, None, ), # 2
|
| 94 |
ashish |
3646 |
)
|
|
|
3647 |
|
| 559 |
chandransh |
3648 |
def __init__(self, userid=None, addressId=None,):
|
|
|
3649 |
self.userid = userid
|
|
|
3650 |
self.addressId = addressId
|
| 94 |
ashish |
3651 |
|
|
|
3652 |
def read(self, iprot):
|
|
|
3653 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3654 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3655 |
return
|
|
|
3656 |
iprot.readStructBegin()
|
|
|
3657 |
while True:
|
|
|
3658 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3659 |
if ftype == TType.STOP:
|
|
|
3660 |
break
|
|
|
3661 |
if fid == 1:
|
| 559 |
chandransh |
3662 |
if ftype == TType.I64:
|
|
|
3663 |
self.userid = iprot.readI64();
|
| 94 |
ashish |
3664 |
else:
|
|
|
3665 |
iprot.skip(ftype)
|
| 559 |
chandransh |
3666 |
elif fid == 2:
|
|
|
3667 |
if ftype == TType.I64:
|
|
|
3668 |
self.addressId = iprot.readI64();
|
|
|
3669 |
else:
|
|
|
3670 |
iprot.skip(ftype)
|
| 94 |
ashish |
3671 |
else:
|
|
|
3672 |
iprot.skip(ftype)
|
|
|
3673 |
iprot.readFieldEnd()
|
|
|
3674 |
iprot.readStructEnd()
|
|
|
3675 |
|
|
|
3676 |
def write(self, oprot):
|
|
|
3677 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3678 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3679 |
return
|
| 559 |
chandransh |
3680 |
oprot.writeStructBegin('removeAddressForUser_args')
|
|
|
3681 |
if self.userid != None:
|
|
|
3682 |
oprot.writeFieldBegin('userid', TType.I64, 1)
|
|
|
3683 |
oprot.writeI64(self.userid)
|
| 94 |
ashish |
3684 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
3685 |
if self.addressId != None:
|
|
|
3686 |
oprot.writeFieldBegin('addressId', TType.I64, 2)
|
|
|
3687 |
oprot.writeI64(self.addressId)
|
|
|
3688 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
3689 |
oprot.writeFieldStop()
|
|
|
3690 |
oprot.writeStructEnd()
|
|
|
3691 |
|
|
|
3692 |
def __repr__(self):
|
|
|
3693 |
L = ['%s=%r' % (key, value)
|
|
|
3694 |
for key, value in self.__dict__.iteritems()]
|
|
|
3695 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3696 |
|
|
|
3697 |
def __eq__(self, other):
|
|
|
3698 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3699 |
|
|
|
3700 |
def __ne__(self, other):
|
|
|
3701 |
return not (self == other)
|
|
|
3702 |
|
| 559 |
chandransh |
3703 |
class removeAddressForUser_result:
|
| 94 |
ashish |
3704 |
"""
|
|
|
3705 |
Attributes:
|
|
|
3706 |
- success
|
|
|
3707 |
- ucx
|
|
|
3708 |
"""
|
|
|
3709 |
|
|
|
3710 |
thrift_spec = (
|
|
|
3711 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3712 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
3713 |
)
|
|
|
3714 |
|
|
|
3715 |
def __init__(self, success=None, ucx=None,):
|
|
|
3716 |
self.success = success
|
|
|
3717 |
self.ucx = ucx
|
|
|
3718 |
|
|
|
3719 |
def read(self, iprot):
|
|
|
3720 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3721 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3722 |
return
|
|
|
3723 |
iprot.readStructBegin()
|
|
|
3724 |
while True:
|
|
|
3725 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3726 |
if ftype == TType.STOP:
|
|
|
3727 |
break
|
|
|
3728 |
if fid == 0:
|
|
|
3729 |
if ftype == TType.BOOL:
|
|
|
3730 |
self.success = iprot.readBool();
|
|
|
3731 |
else:
|
|
|
3732 |
iprot.skip(ftype)
|
|
|
3733 |
elif fid == 1:
|
|
|
3734 |
if ftype == TType.STRUCT:
|
|
|
3735 |
self.ucx = UserContextException()
|
|
|
3736 |
self.ucx.read(iprot)
|
|
|
3737 |
else:
|
|
|
3738 |
iprot.skip(ftype)
|
|
|
3739 |
else:
|
|
|
3740 |
iprot.skip(ftype)
|
|
|
3741 |
iprot.readFieldEnd()
|
|
|
3742 |
iprot.readStructEnd()
|
|
|
3743 |
|
|
|
3744 |
def write(self, oprot):
|
|
|
3745 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3746 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3747 |
return
|
| 559 |
chandransh |
3748 |
oprot.writeStructBegin('removeAddressForUser_result')
|
| 94 |
ashish |
3749 |
if self.success != None:
|
|
|
3750 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3751 |
oprot.writeBool(self.success)
|
|
|
3752 |
oprot.writeFieldEnd()
|
|
|
3753 |
if self.ucx != None:
|
|
|
3754 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
3755 |
self.ucx.write(oprot)
|
|
|
3756 |
oprot.writeFieldEnd()
|
|
|
3757 |
oprot.writeFieldStop()
|
|
|
3758 |
oprot.writeStructEnd()
|
|
|
3759 |
|
|
|
3760 |
def __repr__(self):
|
|
|
3761 |
L = ['%s=%r' % (key, value)
|
|
|
3762 |
for key, value in self.__dict__.iteritems()]
|
|
|
3763 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3764 |
|
|
|
3765 |
def __eq__(self, other):
|
|
|
3766 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3767 |
|
|
|
3768 |
def __ne__(self, other):
|
|
|
3769 |
return not (self == other)
|
|
|
3770 |
|
| 559 |
chandransh |
3771 |
class setUserAsLoggedIn_args:
|
| 94 |
ashish |
3772 |
"""
|
|
|
3773 |
Attributes:
|
| 559 |
chandransh |
3774 |
- userId
|
| 94 |
ashish |
3775 |
- timestamp
|
|
|
3776 |
"""
|
|
|
3777 |
|
|
|
3778 |
thrift_spec = (
|
|
|
3779 |
None, # 0
|
| 559 |
chandransh |
3780 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 94 |
ashish |
3781 |
(2, TType.I64, 'timestamp', None, None, ), # 2
|
|
|
3782 |
)
|
|
|
3783 |
|
| 559 |
chandransh |
3784 |
def __init__(self, userId=None, timestamp=None,):
|
|
|
3785 |
self.userId = userId
|
| 94 |
ashish |
3786 |
self.timestamp = timestamp
|
|
|
3787 |
|
|
|
3788 |
def read(self, iprot):
|
|
|
3789 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3790 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3791 |
return
|
|
|
3792 |
iprot.readStructBegin()
|
|
|
3793 |
while True:
|
|
|
3794 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3795 |
if ftype == TType.STOP:
|
|
|
3796 |
break
|
|
|
3797 |
if fid == 1:
|
| 559 |
chandransh |
3798 |
if ftype == TType.I64:
|
|
|
3799 |
self.userId = iprot.readI64();
|
| 94 |
ashish |
3800 |
else:
|
|
|
3801 |
iprot.skip(ftype)
|
|
|
3802 |
elif fid == 2:
|
|
|
3803 |
if ftype == TType.I64:
|
|
|
3804 |
self.timestamp = iprot.readI64();
|
|
|
3805 |
else:
|
|
|
3806 |
iprot.skip(ftype)
|
|
|
3807 |
else:
|
|
|
3808 |
iprot.skip(ftype)
|
|
|
3809 |
iprot.readFieldEnd()
|
|
|
3810 |
iprot.readStructEnd()
|
|
|
3811 |
|
|
|
3812 |
def write(self, oprot):
|
|
|
3813 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3814 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3815 |
return
|
| 559 |
chandransh |
3816 |
oprot.writeStructBegin('setUserAsLoggedIn_args')
|
|
|
3817 |
if self.userId != None:
|
|
|
3818 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
3819 |
oprot.writeI64(self.userId)
|
| 94 |
ashish |
3820 |
oprot.writeFieldEnd()
|
|
|
3821 |
if self.timestamp != None:
|
|
|
3822 |
oprot.writeFieldBegin('timestamp', TType.I64, 2)
|
|
|
3823 |
oprot.writeI64(self.timestamp)
|
|
|
3824 |
oprot.writeFieldEnd()
|
|
|
3825 |
oprot.writeFieldStop()
|
|
|
3826 |
oprot.writeStructEnd()
|
|
|
3827 |
|
|
|
3828 |
def __repr__(self):
|
|
|
3829 |
L = ['%s=%r' % (key, value)
|
|
|
3830 |
for key, value in self.__dict__.iteritems()]
|
|
|
3831 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3832 |
|
|
|
3833 |
def __eq__(self, other):
|
|
|
3834 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3835 |
|
|
|
3836 |
def __ne__(self, other):
|
|
|
3837 |
return not (self == other)
|
|
|
3838 |
|
| 559 |
chandransh |
3839 |
class setUserAsLoggedIn_result:
|
| 94 |
ashish |
3840 |
"""
|
|
|
3841 |
Attributes:
|
|
|
3842 |
- success
|
|
|
3843 |
- ucx
|
|
|
3844 |
"""
|
|
|
3845 |
|
|
|
3846 |
thrift_spec = (
|
|
|
3847 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3848 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
3849 |
)
|
|
|
3850 |
|
|
|
3851 |
def __init__(self, success=None, ucx=None,):
|
|
|
3852 |
self.success = success
|
|
|
3853 |
self.ucx = ucx
|
|
|
3854 |
|
|
|
3855 |
def read(self, iprot):
|
|
|
3856 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3857 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3858 |
return
|
|
|
3859 |
iprot.readStructBegin()
|
|
|
3860 |
while True:
|
|
|
3861 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3862 |
if ftype == TType.STOP:
|
|
|
3863 |
break
|
|
|
3864 |
if fid == 0:
|
|
|
3865 |
if ftype == TType.BOOL:
|
|
|
3866 |
self.success = iprot.readBool();
|
|
|
3867 |
else:
|
|
|
3868 |
iprot.skip(ftype)
|
|
|
3869 |
elif fid == 1:
|
|
|
3870 |
if ftype == TType.STRUCT:
|
|
|
3871 |
self.ucx = UserContextException()
|
|
|
3872 |
self.ucx.read(iprot)
|
|
|
3873 |
else:
|
|
|
3874 |
iprot.skip(ftype)
|
|
|
3875 |
else:
|
|
|
3876 |
iprot.skip(ftype)
|
|
|
3877 |
iprot.readFieldEnd()
|
|
|
3878 |
iprot.readStructEnd()
|
|
|
3879 |
|
|
|
3880 |
def write(self, oprot):
|
|
|
3881 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3882 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3883 |
return
|
| 559 |
chandransh |
3884 |
oprot.writeStructBegin('setUserAsLoggedIn_result')
|
| 94 |
ashish |
3885 |
if self.success != None:
|
|
|
3886 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3887 |
oprot.writeBool(self.success)
|
|
|
3888 |
oprot.writeFieldEnd()
|
|
|
3889 |
if self.ucx != None:
|
|
|
3890 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
3891 |
self.ucx.write(oprot)
|
|
|
3892 |
oprot.writeFieldEnd()
|
|
|
3893 |
oprot.writeFieldStop()
|
|
|
3894 |
oprot.writeStructEnd()
|
|
|
3895 |
|
|
|
3896 |
def __repr__(self):
|
|
|
3897 |
L = ['%s=%r' % (key, value)
|
|
|
3898 |
for key, value in self.__dict__.iteritems()]
|
|
|
3899 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3900 |
|
|
|
3901 |
def __eq__(self, other):
|
|
|
3902 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3903 |
|
|
|
3904 |
def __ne__(self, other):
|
|
|
3905 |
return not (self == other)
|
|
|
3906 |
|
| 559 |
chandransh |
3907 |
class setUserAsLoggedOut_args:
|
| 94 |
ashish |
3908 |
"""
|
|
|
3909 |
Attributes:
|
|
|
3910 |
- userid
|
|
|
3911 |
- timestamp
|
|
|
3912 |
"""
|
|
|
3913 |
|
|
|
3914 |
thrift_spec = (
|
|
|
3915 |
None, # 0
|
| 559 |
chandransh |
3916 |
(1, TType.I64, 'userid', None, None, ), # 1
|
|
|
3917 |
(2, TType.I64, 'timestamp', None, None, ), # 2
|
| 94 |
ashish |
3918 |
)
|
|
|
3919 |
|
| 559 |
chandransh |
3920 |
def __init__(self, userid=None, timestamp=None,):
|
| 94 |
ashish |
3921 |
self.userid = userid
|
|
|
3922 |
self.timestamp = timestamp
|
|
|
3923 |
|
|
|
3924 |
def read(self, iprot):
|
|
|
3925 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3926 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3927 |
return
|
|
|
3928 |
iprot.readStructBegin()
|
|
|
3929 |
while True:
|
|
|
3930 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3931 |
if ftype == TType.STOP:
|
|
|
3932 |
break
|
|
|
3933 |
if fid == 1:
|
|
|
3934 |
if ftype == TType.I64:
|
|
|
3935 |
self.userid = iprot.readI64();
|
|
|
3936 |
else:
|
|
|
3937 |
iprot.skip(ftype)
|
| 559 |
chandransh |
3938 |
elif fid == 2:
|
| 94 |
ashish |
3939 |
if ftype == TType.I64:
|
|
|
3940 |
self.timestamp = iprot.readI64();
|
|
|
3941 |
else:
|
|
|
3942 |
iprot.skip(ftype)
|
|
|
3943 |
else:
|
|
|
3944 |
iprot.skip(ftype)
|
|
|
3945 |
iprot.readFieldEnd()
|
|
|
3946 |
iprot.readStructEnd()
|
|
|
3947 |
|
|
|
3948 |
def write(self, oprot):
|
|
|
3949 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3950 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3951 |
return
|
| 559 |
chandransh |
3952 |
oprot.writeStructBegin('setUserAsLoggedOut_args')
|
| 94 |
ashish |
3953 |
if self.userid != None:
|
| 559 |
chandransh |
3954 |
oprot.writeFieldBegin('userid', TType.I64, 1)
|
| 94 |
ashish |
3955 |
oprot.writeI64(self.userid)
|
|
|
3956 |
oprot.writeFieldEnd()
|
|
|
3957 |
if self.timestamp != None:
|
| 559 |
chandransh |
3958 |
oprot.writeFieldBegin('timestamp', TType.I64, 2)
|
| 94 |
ashish |
3959 |
oprot.writeI64(self.timestamp)
|
|
|
3960 |
oprot.writeFieldEnd()
|
|
|
3961 |
oprot.writeFieldStop()
|
|
|
3962 |
oprot.writeStructEnd()
|
|
|
3963 |
|
|
|
3964 |
def __repr__(self):
|
|
|
3965 |
L = ['%s=%r' % (key, value)
|
|
|
3966 |
for key, value in self.__dict__.iteritems()]
|
|
|
3967 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3968 |
|
|
|
3969 |
def __eq__(self, other):
|
|
|
3970 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3971 |
|
|
|
3972 |
def __ne__(self, other):
|
|
|
3973 |
return not (self == other)
|
|
|
3974 |
|
| 559 |
chandransh |
3975 |
class setUserAsLoggedOut_result:
|
| 94 |
ashish |
3976 |
"""
|
|
|
3977 |
Attributes:
|
|
|
3978 |
- success
|
|
|
3979 |
- ucx
|
|
|
3980 |
"""
|
|
|
3981 |
|
|
|
3982 |
thrift_spec = (
|
|
|
3983 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3984 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
3985 |
)
|
|
|
3986 |
|
|
|
3987 |
def __init__(self, success=None, ucx=None,):
|
|
|
3988 |
self.success = success
|
|
|
3989 |
self.ucx = ucx
|
|
|
3990 |
|
|
|
3991 |
def read(self, iprot):
|
|
|
3992 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3993 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3994 |
return
|
|
|
3995 |
iprot.readStructBegin()
|
|
|
3996 |
while True:
|
|
|
3997 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3998 |
if ftype == TType.STOP:
|
|
|
3999 |
break
|
|
|
4000 |
if fid == 0:
|
|
|
4001 |
if ftype == TType.BOOL:
|
|
|
4002 |
self.success = iprot.readBool();
|
|
|
4003 |
else:
|
|
|
4004 |
iprot.skip(ftype)
|
|
|
4005 |
elif fid == 1:
|
|
|
4006 |
if ftype == TType.STRUCT:
|
|
|
4007 |
self.ucx = UserContextException()
|
|
|
4008 |
self.ucx.read(iprot)
|
|
|
4009 |
else:
|
|
|
4010 |
iprot.skip(ftype)
|
|
|
4011 |
else:
|
|
|
4012 |
iprot.skip(ftype)
|
|
|
4013 |
iprot.readFieldEnd()
|
|
|
4014 |
iprot.readStructEnd()
|
|
|
4015 |
|
|
|
4016 |
def write(self, oprot):
|
|
|
4017 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4018 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4019 |
return
|
| 559 |
chandransh |
4020 |
oprot.writeStructBegin('setUserAsLoggedOut_result')
|
| 94 |
ashish |
4021 |
if self.success != None:
|
|
|
4022 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4023 |
oprot.writeBool(self.success)
|
|
|
4024 |
oprot.writeFieldEnd()
|
|
|
4025 |
if self.ucx != None:
|
|
|
4026 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4027 |
self.ucx.write(oprot)
|
|
|
4028 |
oprot.writeFieldEnd()
|
|
|
4029 |
oprot.writeFieldStop()
|
|
|
4030 |
oprot.writeStructEnd()
|
|
|
4031 |
|
|
|
4032 |
def __repr__(self):
|
|
|
4033 |
L = ['%s=%r' % (key, value)
|
|
|
4034 |
for key, value in self.__dict__.iteritems()]
|
|
|
4035 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4036 |
|
|
|
4037 |
def __eq__(self, other):
|
|
|
4038 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4039 |
|
|
|
4040 |
def __ne__(self, other):
|
|
|
4041 |
return not (self == other)
|
|
|
4042 |
|
| 559 |
chandransh |
4043 |
class setDefaultAddress_args:
|
| 94 |
ashish |
4044 |
"""
|
|
|
4045 |
Attributes:
|
|
|
4046 |
- userid
|
|
|
4047 |
- addressId
|
|
|
4048 |
"""
|
|
|
4049 |
|
|
|
4050 |
thrift_spec = (
|
|
|
4051 |
None, # 0
|
|
|
4052 |
(1, TType.I64, 'userid', None, None, ), # 1
|
|
|
4053 |
(2, TType.I64, 'addressId', None, None, ), # 2
|
|
|
4054 |
)
|
|
|
4055 |
|
|
|
4056 |
def __init__(self, userid=None, addressId=None,):
|
|
|
4057 |
self.userid = userid
|
|
|
4058 |
self.addressId = addressId
|
|
|
4059 |
|
|
|
4060 |
def read(self, iprot):
|
|
|
4061 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4062 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4063 |
return
|
|
|
4064 |
iprot.readStructBegin()
|
|
|
4065 |
while True:
|
|
|
4066 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4067 |
if ftype == TType.STOP:
|
|
|
4068 |
break
|
|
|
4069 |
if fid == 1:
|
|
|
4070 |
if ftype == TType.I64:
|
|
|
4071 |
self.userid = iprot.readI64();
|
|
|
4072 |
else:
|
|
|
4073 |
iprot.skip(ftype)
|
|
|
4074 |
elif fid == 2:
|
|
|
4075 |
if ftype == TType.I64:
|
|
|
4076 |
self.addressId = iprot.readI64();
|
|
|
4077 |
else:
|
|
|
4078 |
iprot.skip(ftype)
|
|
|
4079 |
else:
|
|
|
4080 |
iprot.skip(ftype)
|
|
|
4081 |
iprot.readFieldEnd()
|
|
|
4082 |
iprot.readStructEnd()
|
|
|
4083 |
|
|
|
4084 |
def write(self, oprot):
|
|
|
4085 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4086 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4087 |
return
|
| 559 |
chandransh |
4088 |
oprot.writeStructBegin('setDefaultAddress_args')
|
| 94 |
ashish |
4089 |
if self.userid != None:
|
|
|
4090 |
oprot.writeFieldBegin('userid', TType.I64, 1)
|
|
|
4091 |
oprot.writeI64(self.userid)
|
|
|
4092 |
oprot.writeFieldEnd()
|
|
|
4093 |
if self.addressId != None:
|
|
|
4094 |
oprot.writeFieldBegin('addressId', TType.I64, 2)
|
|
|
4095 |
oprot.writeI64(self.addressId)
|
|
|
4096 |
oprot.writeFieldEnd()
|
|
|
4097 |
oprot.writeFieldStop()
|
|
|
4098 |
oprot.writeStructEnd()
|
|
|
4099 |
|
|
|
4100 |
def __repr__(self):
|
|
|
4101 |
L = ['%s=%r' % (key, value)
|
|
|
4102 |
for key, value in self.__dict__.iteritems()]
|
|
|
4103 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4104 |
|
|
|
4105 |
def __eq__(self, other):
|
|
|
4106 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4107 |
|
|
|
4108 |
def __ne__(self, other):
|
|
|
4109 |
return not (self == other)
|
|
|
4110 |
|
| 559 |
chandransh |
4111 |
class setDefaultAddress_result:
|
| 94 |
ashish |
4112 |
"""
|
|
|
4113 |
Attributes:
|
|
|
4114 |
- success
|
|
|
4115 |
- ucx
|
|
|
4116 |
"""
|
|
|
4117 |
|
|
|
4118 |
thrift_spec = (
|
|
|
4119 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4120 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4121 |
)
|
|
|
4122 |
|
|
|
4123 |
def __init__(self, success=None, ucx=None,):
|
|
|
4124 |
self.success = success
|
|
|
4125 |
self.ucx = ucx
|
|
|
4126 |
|
|
|
4127 |
def read(self, iprot):
|
|
|
4128 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4129 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4130 |
return
|
|
|
4131 |
iprot.readStructBegin()
|
|
|
4132 |
while True:
|
|
|
4133 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4134 |
if ftype == TType.STOP:
|
|
|
4135 |
break
|
|
|
4136 |
if fid == 0:
|
|
|
4137 |
if ftype == TType.BOOL:
|
|
|
4138 |
self.success = iprot.readBool();
|
|
|
4139 |
else:
|
|
|
4140 |
iprot.skip(ftype)
|
|
|
4141 |
elif fid == 1:
|
|
|
4142 |
if ftype == TType.STRUCT:
|
|
|
4143 |
self.ucx = UserContextException()
|
|
|
4144 |
self.ucx.read(iprot)
|
|
|
4145 |
else:
|
|
|
4146 |
iprot.skip(ftype)
|
|
|
4147 |
else:
|
|
|
4148 |
iprot.skip(ftype)
|
|
|
4149 |
iprot.readFieldEnd()
|
|
|
4150 |
iprot.readStructEnd()
|
|
|
4151 |
|
|
|
4152 |
def write(self, oprot):
|
|
|
4153 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4154 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4155 |
return
|
| 559 |
chandransh |
4156 |
oprot.writeStructBegin('setDefaultAddress_result')
|
| 94 |
ashish |
4157 |
if self.success != None:
|
|
|
4158 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4159 |
oprot.writeBool(self.success)
|
|
|
4160 |
oprot.writeFieldEnd()
|
|
|
4161 |
if self.ucx != None:
|
|
|
4162 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4163 |
self.ucx.write(oprot)
|
|
|
4164 |
oprot.writeFieldEnd()
|
|
|
4165 |
oprot.writeFieldStop()
|
|
|
4166 |
oprot.writeStructEnd()
|
|
|
4167 |
|
|
|
4168 |
def __repr__(self):
|
|
|
4169 |
L = ['%s=%r' % (key, value)
|
|
|
4170 |
for key, value in self.__dict__.iteritems()]
|
|
|
4171 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4172 |
|
|
|
4173 |
def __eq__(self, other):
|
|
|
4174 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4175 |
|
|
|
4176 |
def __ne__(self, other):
|
|
|
4177 |
return not (self == other)
|
|
|
4178 |
|
| 559 |
chandransh |
4179 |
class updatePassword_args:
|
| 94 |
ashish |
4180 |
"""
|
|
|
4181 |
Attributes:
|
| 559 |
chandransh |
4182 |
- userid
|
| 594 |
rajveer |
4183 |
- oldPassword
|
|
|
4184 |
- newPassword
|
| 94 |
ashish |
4185 |
"""
|
|
|
4186 |
|
|
|
4187 |
thrift_spec = (
|
|
|
4188 |
None, # 0
|
| 559 |
chandransh |
4189 |
(1, TType.I64, 'userid', None, None, ), # 1
|
| 594 |
rajveer |
4190 |
(2, TType.STRING, 'oldPassword', None, None, ), # 2
|
|
|
4191 |
(3, TType.STRING, 'newPassword', None, None, ), # 3
|
| 94 |
ashish |
4192 |
)
|
|
|
4193 |
|
| 594 |
rajveer |
4194 |
def __init__(self, userid=None, oldPassword=None, newPassword=None,):
|
| 559 |
chandransh |
4195 |
self.userid = userid
|
| 594 |
rajveer |
4196 |
self.oldPassword = oldPassword
|
|
|
4197 |
self.newPassword = newPassword
|
| 94 |
ashish |
4198 |
|
|
|
4199 |
def read(self, iprot):
|
|
|
4200 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4201 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4202 |
return
|
|
|
4203 |
iprot.readStructBegin()
|
|
|
4204 |
while True:
|
|
|
4205 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4206 |
if ftype == TType.STOP:
|
|
|
4207 |
break
|
|
|
4208 |
if fid == 1:
|
|
|
4209 |
if ftype == TType.I64:
|
| 559 |
chandransh |
4210 |
self.userid = iprot.readI64();
|
| 94 |
ashish |
4211 |
else:
|
|
|
4212 |
iprot.skip(ftype)
|
|
|
4213 |
elif fid == 2:
|
| 559 |
chandransh |
4214 |
if ftype == TType.STRING:
|
| 594 |
rajveer |
4215 |
self.oldPassword = iprot.readString();
|
| 94 |
ashish |
4216 |
else:
|
|
|
4217 |
iprot.skip(ftype)
|
| 594 |
rajveer |
4218 |
elif fid == 3:
|
|
|
4219 |
if ftype == TType.STRING:
|
|
|
4220 |
self.newPassword = iprot.readString();
|
|
|
4221 |
else:
|
|
|
4222 |
iprot.skip(ftype)
|
| 94 |
ashish |
4223 |
else:
|
|
|
4224 |
iprot.skip(ftype)
|
|
|
4225 |
iprot.readFieldEnd()
|
|
|
4226 |
iprot.readStructEnd()
|
|
|
4227 |
|
|
|
4228 |
def write(self, oprot):
|
|
|
4229 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4230 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4231 |
return
|
| 559 |
chandransh |
4232 |
oprot.writeStructBegin('updatePassword_args')
|
|
|
4233 |
if self.userid != None:
|
|
|
4234 |
oprot.writeFieldBegin('userid', TType.I64, 1)
|
|
|
4235 |
oprot.writeI64(self.userid)
|
| 94 |
ashish |
4236 |
oprot.writeFieldEnd()
|
| 594 |
rajveer |
4237 |
if self.oldPassword != None:
|
|
|
4238 |
oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
|
|
|
4239 |
oprot.writeString(self.oldPassword)
|
| 94 |
ashish |
4240 |
oprot.writeFieldEnd()
|
| 594 |
rajveer |
4241 |
if self.newPassword != None:
|
|
|
4242 |
oprot.writeFieldBegin('newPassword', TType.STRING, 3)
|
|
|
4243 |
oprot.writeString(self.newPassword)
|
|
|
4244 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
4245 |
oprot.writeFieldStop()
|
|
|
4246 |
oprot.writeStructEnd()
|
|
|
4247 |
|
|
|
4248 |
def __repr__(self):
|
|
|
4249 |
L = ['%s=%r' % (key, value)
|
|
|
4250 |
for key, value in self.__dict__.iteritems()]
|
|
|
4251 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4252 |
|
|
|
4253 |
def __eq__(self, other):
|
|
|
4254 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4255 |
|
|
|
4256 |
def __ne__(self, other):
|
|
|
4257 |
return not (self == other)
|
|
|
4258 |
|
| 559 |
chandransh |
4259 |
class updatePassword_result:
|
| 94 |
ashish |
4260 |
"""
|
|
|
4261 |
Attributes:
|
|
|
4262 |
- success
|
|
|
4263 |
- ucx
|
|
|
4264 |
"""
|
|
|
4265 |
|
|
|
4266 |
thrift_spec = (
|
|
|
4267 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4268 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4269 |
)
|
|
|
4270 |
|
|
|
4271 |
def __init__(self, success=None, ucx=None,):
|
|
|
4272 |
self.success = success
|
|
|
4273 |
self.ucx = ucx
|
|
|
4274 |
|
|
|
4275 |
def read(self, iprot):
|
|
|
4276 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4277 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4278 |
return
|
|
|
4279 |
iprot.readStructBegin()
|
|
|
4280 |
while True:
|
|
|
4281 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4282 |
if ftype == TType.STOP:
|
|
|
4283 |
break
|
|
|
4284 |
if fid == 0:
|
|
|
4285 |
if ftype == TType.BOOL:
|
|
|
4286 |
self.success = iprot.readBool();
|
|
|
4287 |
else:
|
|
|
4288 |
iprot.skip(ftype)
|
|
|
4289 |
elif fid == 1:
|
|
|
4290 |
if ftype == TType.STRUCT:
|
|
|
4291 |
self.ucx = UserContextException()
|
|
|
4292 |
self.ucx.read(iprot)
|
|
|
4293 |
else:
|
|
|
4294 |
iprot.skip(ftype)
|
|
|
4295 |
else:
|
|
|
4296 |
iprot.skip(ftype)
|
|
|
4297 |
iprot.readFieldEnd()
|
|
|
4298 |
iprot.readStructEnd()
|
|
|
4299 |
|
|
|
4300 |
def write(self, oprot):
|
|
|
4301 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4302 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4303 |
return
|
| 559 |
chandransh |
4304 |
oprot.writeStructBegin('updatePassword_result')
|
| 94 |
ashish |
4305 |
if self.success != None:
|
|
|
4306 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4307 |
oprot.writeBool(self.success)
|
|
|
4308 |
oprot.writeFieldEnd()
|
|
|
4309 |
if self.ucx != None:
|
|
|
4310 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4311 |
self.ucx.write(oprot)
|
|
|
4312 |
oprot.writeFieldEnd()
|
|
|
4313 |
oprot.writeFieldStop()
|
|
|
4314 |
oprot.writeStructEnd()
|
|
|
4315 |
|
|
|
4316 |
def __repr__(self):
|
|
|
4317 |
L = ['%s=%r' % (key, value)
|
|
|
4318 |
for key, value in self.__dict__.iteritems()]
|
|
|
4319 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4320 |
|
|
|
4321 |
def __eq__(self, other):
|
|
|
4322 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4323 |
|
|
|
4324 |
def __ne__(self, other):
|
|
|
4325 |
return not (self == other)
|
|
|
4326 |
|
| 581 |
rajveer |
4327 |
class forgotPassword_args:
|
|
|
4328 |
"""
|
|
|
4329 |
Attributes:
|
|
|
4330 |
- email
|
| 884 |
rajveer |
4331 |
- newPassword
|
| 581 |
rajveer |
4332 |
"""
|
|
|
4333 |
|
|
|
4334 |
thrift_spec = (
|
|
|
4335 |
None, # 0
|
|
|
4336 |
(1, TType.STRING, 'email', None, None, ), # 1
|
| 884 |
rajveer |
4337 |
(2, TType.STRING, 'newPassword', None, None, ), # 2
|
| 581 |
rajveer |
4338 |
)
|
|
|
4339 |
|
| 884 |
rajveer |
4340 |
def __init__(self, email=None, newPassword=None,):
|
| 581 |
rajveer |
4341 |
self.email = email
|
| 884 |
rajveer |
4342 |
self.newPassword = newPassword
|
| 581 |
rajveer |
4343 |
|
|
|
4344 |
def read(self, iprot):
|
|
|
4345 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4346 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4347 |
return
|
|
|
4348 |
iprot.readStructBegin()
|
|
|
4349 |
while True:
|
|
|
4350 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4351 |
if ftype == TType.STOP:
|
|
|
4352 |
break
|
|
|
4353 |
if fid == 1:
|
|
|
4354 |
if ftype == TType.STRING:
|
|
|
4355 |
self.email = iprot.readString();
|
|
|
4356 |
else:
|
|
|
4357 |
iprot.skip(ftype)
|
| 884 |
rajveer |
4358 |
elif fid == 2:
|
|
|
4359 |
if ftype == TType.STRING:
|
|
|
4360 |
self.newPassword = iprot.readString();
|
|
|
4361 |
else:
|
|
|
4362 |
iprot.skip(ftype)
|
| 581 |
rajveer |
4363 |
else:
|
|
|
4364 |
iprot.skip(ftype)
|
|
|
4365 |
iprot.readFieldEnd()
|
|
|
4366 |
iprot.readStructEnd()
|
|
|
4367 |
|
|
|
4368 |
def write(self, oprot):
|
|
|
4369 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4370 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4371 |
return
|
|
|
4372 |
oprot.writeStructBegin('forgotPassword_args')
|
|
|
4373 |
if self.email != None:
|
|
|
4374 |
oprot.writeFieldBegin('email', TType.STRING, 1)
|
|
|
4375 |
oprot.writeString(self.email)
|
|
|
4376 |
oprot.writeFieldEnd()
|
| 884 |
rajveer |
4377 |
if self.newPassword != None:
|
|
|
4378 |
oprot.writeFieldBegin('newPassword', TType.STRING, 2)
|
|
|
4379 |
oprot.writeString(self.newPassword)
|
|
|
4380 |
oprot.writeFieldEnd()
|
| 581 |
rajveer |
4381 |
oprot.writeFieldStop()
|
|
|
4382 |
oprot.writeStructEnd()
|
|
|
4383 |
|
|
|
4384 |
def __repr__(self):
|
|
|
4385 |
L = ['%s=%r' % (key, value)
|
|
|
4386 |
for key, value in self.__dict__.iteritems()]
|
|
|
4387 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4388 |
|
|
|
4389 |
def __eq__(self, other):
|
|
|
4390 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4391 |
|
|
|
4392 |
def __ne__(self, other):
|
|
|
4393 |
return not (self == other)
|
|
|
4394 |
|
|
|
4395 |
class forgotPassword_result:
|
|
|
4396 |
"""
|
|
|
4397 |
Attributes:
|
|
|
4398 |
- success
|
|
|
4399 |
- ucx
|
|
|
4400 |
"""
|
|
|
4401 |
|
|
|
4402 |
thrift_spec = (
|
|
|
4403 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4404 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4405 |
)
|
|
|
4406 |
|
|
|
4407 |
def __init__(self, success=None, ucx=None,):
|
|
|
4408 |
self.success = success
|
|
|
4409 |
self.ucx = ucx
|
|
|
4410 |
|
|
|
4411 |
def read(self, iprot):
|
|
|
4412 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4413 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4414 |
return
|
|
|
4415 |
iprot.readStructBegin()
|
|
|
4416 |
while True:
|
|
|
4417 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4418 |
if ftype == TType.STOP:
|
|
|
4419 |
break
|
|
|
4420 |
if fid == 0:
|
|
|
4421 |
if ftype == TType.BOOL:
|
|
|
4422 |
self.success = iprot.readBool();
|
|
|
4423 |
else:
|
|
|
4424 |
iprot.skip(ftype)
|
|
|
4425 |
elif fid == 1:
|
|
|
4426 |
if ftype == TType.STRUCT:
|
|
|
4427 |
self.ucx = UserContextException()
|
|
|
4428 |
self.ucx.read(iprot)
|
|
|
4429 |
else:
|
|
|
4430 |
iprot.skip(ftype)
|
|
|
4431 |
else:
|
|
|
4432 |
iprot.skip(ftype)
|
|
|
4433 |
iprot.readFieldEnd()
|
|
|
4434 |
iprot.readStructEnd()
|
|
|
4435 |
|
|
|
4436 |
def write(self, oprot):
|
|
|
4437 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4438 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4439 |
return
|
|
|
4440 |
oprot.writeStructBegin('forgotPassword_result')
|
|
|
4441 |
if self.success != None:
|
|
|
4442 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4443 |
oprot.writeBool(self.success)
|
|
|
4444 |
oprot.writeFieldEnd()
|
|
|
4445 |
if self.ucx != None:
|
|
|
4446 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4447 |
self.ucx.write(oprot)
|
|
|
4448 |
oprot.writeFieldEnd()
|
|
|
4449 |
oprot.writeFieldStop()
|
|
|
4450 |
oprot.writeStructEnd()
|
|
|
4451 |
|
|
|
4452 |
def __repr__(self):
|
|
|
4453 |
L = ['%s=%r' % (key, value)
|
|
|
4454 |
for key, value in self.__dict__.iteritems()]
|
|
|
4455 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4456 |
|
|
|
4457 |
def __eq__(self, other):
|
|
|
4458 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4459 |
|
|
|
4460 |
def __ne__(self, other):
|
|
|
4461 |
return not (self == other)
|
|
|
4462 |
|
| 594 |
rajveer |
4463 |
class getAllAddressesForUser_args:
|
|
|
4464 |
"""
|
|
|
4465 |
Attributes:
|
|
|
4466 |
- userId
|
|
|
4467 |
"""
|
|
|
4468 |
|
|
|
4469 |
thrift_spec = (
|
|
|
4470 |
None, # 0
|
|
|
4471 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
4472 |
)
|
|
|
4473 |
|
|
|
4474 |
def __init__(self, userId=None,):
|
|
|
4475 |
self.userId = userId
|
|
|
4476 |
|
|
|
4477 |
def read(self, iprot):
|
|
|
4478 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4479 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4480 |
return
|
|
|
4481 |
iprot.readStructBegin()
|
|
|
4482 |
while True:
|
|
|
4483 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4484 |
if ftype == TType.STOP:
|
|
|
4485 |
break
|
|
|
4486 |
if fid == 1:
|
|
|
4487 |
if ftype == TType.I64:
|
|
|
4488 |
self.userId = iprot.readI64();
|
|
|
4489 |
else:
|
|
|
4490 |
iprot.skip(ftype)
|
|
|
4491 |
else:
|
|
|
4492 |
iprot.skip(ftype)
|
|
|
4493 |
iprot.readFieldEnd()
|
|
|
4494 |
iprot.readStructEnd()
|
|
|
4495 |
|
|
|
4496 |
def write(self, oprot):
|
|
|
4497 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4498 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4499 |
return
|
|
|
4500 |
oprot.writeStructBegin('getAllAddressesForUser_args')
|
|
|
4501 |
if self.userId != None:
|
|
|
4502 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
4503 |
oprot.writeI64(self.userId)
|
|
|
4504 |
oprot.writeFieldEnd()
|
|
|
4505 |
oprot.writeFieldStop()
|
|
|
4506 |
oprot.writeStructEnd()
|
|
|
4507 |
|
|
|
4508 |
def __repr__(self):
|
|
|
4509 |
L = ['%s=%r' % (key, value)
|
|
|
4510 |
for key, value in self.__dict__.iteritems()]
|
|
|
4511 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4512 |
|
|
|
4513 |
def __eq__(self, other):
|
|
|
4514 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4515 |
|
|
|
4516 |
def __ne__(self, other):
|
|
|
4517 |
return not (self == other)
|
|
|
4518 |
|
|
|
4519 |
class getAllAddressesForUser_result:
|
|
|
4520 |
"""
|
|
|
4521 |
Attributes:
|
|
|
4522 |
- success
|
|
|
4523 |
- ucx
|
|
|
4524 |
"""
|
|
|
4525 |
|
|
|
4526 |
thrift_spec = (
|
|
|
4527 |
(0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
|
|
|
4528 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4529 |
)
|
|
|
4530 |
|
|
|
4531 |
def __init__(self, success=None, ucx=None,):
|
|
|
4532 |
self.success = success
|
|
|
4533 |
self.ucx = ucx
|
|
|
4534 |
|
|
|
4535 |
def read(self, iprot):
|
|
|
4536 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4537 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4538 |
return
|
|
|
4539 |
iprot.readStructBegin()
|
|
|
4540 |
while True:
|
|
|
4541 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4542 |
if ftype == TType.STOP:
|
|
|
4543 |
break
|
|
|
4544 |
if fid == 0:
|
|
|
4545 |
if ftype == TType.LIST:
|
|
|
4546 |
self.success = []
|
| 772 |
rajveer |
4547 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
4548 |
for _i32 in xrange(_size28):
|
|
|
4549 |
_elem33 = Address()
|
|
|
4550 |
_elem33.read(iprot)
|
|
|
4551 |
self.success.append(_elem33)
|
| 594 |
rajveer |
4552 |
iprot.readListEnd()
|
|
|
4553 |
else:
|
|
|
4554 |
iprot.skip(ftype)
|
|
|
4555 |
elif fid == 1:
|
|
|
4556 |
if ftype == TType.STRUCT:
|
|
|
4557 |
self.ucx = UserContextException()
|
|
|
4558 |
self.ucx.read(iprot)
|
|
|
4559 |
else:
|
|
|
4560 |
iprot.skip(ftype)
|
|
|
4561 |
else:
|
|
|
4562 |
iprot.skip(ftype)
|
|
|
4563 |
iprot.readFieldEnd()
|
|
|
4564 |
iprot.readStructEnd()
|
|
|
4565 |
|
|
|
4566 |
def write(self, oprot):
|
|
|
4567 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4568 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4569 |
return
|
|
|
4570 |
oprot.writeStructBegin('getAllAddressesForUser_result')
|
|
|
4571 |
if self.success != None:
|
|
|
4572 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4573 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 772 |
rajveer |
4574 |
for iter34 in self.success:
|
|
|
4575 |
iter34.write(oprot)
|
| 594 |
rajveer |
4576 |
oprot.writeListEnd()
|
|
|
4577 |
oprot.writeFieldEnd()
|
|
|
4578 |
if self.ucx != None:
|
|
|
4579 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4580 |
self.ucx.write(oprot)
|
|
|
4581 |
oprot.writeFieldEnd()
|
|
|
4582 |
oprot.writeFieldStop()
|
|
|
4583 |
oprot.writeStructEnd()
|
|
|
4584 |
|
|
|
4585 |
def __repr__(self):
|
|
|
4586 |
L = ['%s=%r' % (key, value)
|
|
|
4587 |
for key, value in self.__dict__.iteritems()]
|
|
|
4588 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4589 |
|
|
|
4590 |
def __eq__(self, other):
|
|
|
4591 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4592 |
|
|
|
4593 |
def __ne__(self, other):
|
|
|
4594 |
return not (self == other)
|
|
|
4595 |
|
|
|
4596 |
class getDefaultAddressId_args:
|
|
|
4597 |
"""
|
|
|
4598 |
Attributes:
|
|
|
4599 |
- userId
|
|
|
4600 |
"""
|
|
|
4601 |
|
|
|
4602 |
thrift_spec = (
|
|
|
4603 |
None, # 0
|
|
|
4604 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
4605 |
)
|
|
|
4606 |
|
|
|
4607 |
def __init__(self, userId=None,):
|
|
|
4608 |
self.userId = userId
|
|
|
4609 |
|
|
|
4610 |
def read(self, iprot):
|
|
|
4611 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4612 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4613 |
return
|
|
|
4614 |
iprot.readStructBegin()
|
|
|
4615 |
while True:
|
|
|
4616 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4617 |
if ftype == TType.STOP:
|
|
|
4618 |
break
|
|
|
4619 |
if fid == 1:
|
|
|
4620 |
if ftype == TType.I64:
|
|
|
4621 |
self.userId = iprot.readI64();
|
|
|
4622 |
else:
|
|
|
4623 |
iprot.skip(ftype)
|
|
|
4624 |
else:
|
|
|
4625 |
iprot.skip(ftype)
|
|
|
4626 |
iprot.readFieldEnd()
|
|
|
4627 |
iprot.readStructEnd()
|
|
|
4628 |
|
|
|
4629 |
def write(self, oprot):
|
|
|
4630 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4631 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4632 |
return
|
|
|
4633 |
oprot.writeStructBegin('getDefaultAddressId_args')
|
|
|
4634 |
if self.userId != None:
|
|
|
4635 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
4636 |
oprot.writeI64(self.userId)
|
|
|
4637 |
oprot.writeFieldEnd()
|
|
|
4638 |
oprot.writeFieldStop()
|
|
|
4639 |
oprot.writeStructEnd()
|
|
|
4640 |
|
|
|
4641 |
def __repr__(self):
|
|
|
4642 |
L = ['%s=%r' % (key, value)
|
|
|
4643 |
for key, value in self.__dict__.iteritems()]
|
|
|
4644 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4645 |
|
|
|
4646 |
def __eq__(self, other):
|
|
|
4647 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4648 |
|
|
|
4649 |
def __ne__(self, other):
|
|
|
4650 |
return not (self == other)
|
|
|
4651 |
|
|
|
4652 |
class getDefaultAddressId_result:
|
|
|
4653 |
"""
|
|
|
4654 |
Attributes:
|
|
|
4655 |
- success
|
|
|
4656 |
- ucx
|
|
|
4657 |
"""
|
|
|
4658 |
|
|
|
4659 |
thrift_spec = (
|
|
|
4660 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
4661 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4662 |
)
|
|
|
4663 |
|
|
|
4664 |
def __init__(self, success=None, ucx=None,):
|
|
|
4665 |
self.success = success
|
|
|
4666 |
self.ucx = ucx
|
|
|
4667 |
|
|
|
4668 |
def read(self, iprot):
|
|
|
4669 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4670 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4671 |
return
|
|
|
4672 |
iprot.readStructBegin()
|
|
|
4673 |
while True:
|
|
|
4674 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4675 |
if ftype == TType.STOP:
|
|
|
4676 |
break
|
|
|
4677 |
if fid == 0:
|
|
|
4678 |
if ftype == TType.I64:
|
|
|
4679 |
self.success = iprot.readI64();
|
|
|
4680 |
else:
|
|
|
4681 |
iprot.skip(ftype)
|
|
|
4682 |
elif fid == 1:
|
|
|
4683 |
if ftype == TType.STRUCT:
|
|
|
4684 |
self.ucx = UserContextException()
|
|
|
4685 |
self.ucx.read(iprot)
|
|
|
4686 |
else:
|
|
|
4687 |
iprot.skip(ftype)
|
|
|
4688 |
else:
|
|
|
4689 |
iprot.skip(ftype)
|
|
|
4690 |
iprot.readFieldEnd()
|
|
|
4691 |
iprot.readStructEnd()
|
|
|
4692 |
|
|
|
4693 |
def write(self, oprot):
|
|
|
4694 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4695 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4696 |
return
|
|
|
4697 |
oprot.writeStructBegin('getDefaultAddressId_result')
|
|
|
4698 |
if self.success != None:
|
|
|
4699 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
4700 |
oprot.writeI64(self.success)
|
|
|
4701 |
oprot.writeFieldEnd()
|
|
|
4702 |
if self.ucx != None:
|
|
|
4703 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4704 |
self.ucx.write(oprot)
|
|
|
4705 |
oprot.writeFieldEnd()
|
|
|
4706 |
oprot.writeFieldStop()
|
|
|
4707 |
oprot.writeStructEnd()
|
|
|
4708 |
|
|
|
4709 |
def __repr__(self):
|
|
|
4710 |
L = ['%s=%r' % (key, value)
|
|
|
4711 |
for key, value in self.__dict__.iteritems()]
|
|
|
4712 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4713 |
|
|
|
4714 |
def __eq__(self, other):
|
|
|
4715 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4716 |
|
|
|
4717 |
def __ne__(self, other):
|
|
|
4718 |
return not (self == other)
|
|
|
4719 |
|
| 785 |
rajveer |
4720 |
class getDefaultPincode_args:
|
|
|
4721 |
"""
|
|
|
4722 |
Attributes:
|
|
|
4723 |
- userId
|
|
|
4724 |
"""
|
|
|
4725 |
|
|
|
4726 |
thrift_spec = (
|
|
|
4727 |
None, # 0
|
|
|
4728 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
4729 |
)
|
|
|
4730 |
|
|
|
4731 |
def __init__(self, userId=None,):
|
|
|
4732 |
self.userId = userId
|
|
|
4733 |
|
|
|
4734 |
def read(self, iprot):
|
|
|
4735 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4736 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4737 |
return
|
|
|
4738 |
iprot.readStructBegin()
|
|
|
4739 |
while True:
|
|
|
4740 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4741 |
if ftype == TType.STOP:
|
|
|
4742 |
break
|
|
|
4743 |
if fid == 1:
|
|
|
4744 |
if ftype == TType.I64:
|
|
|
4745 |
self.userId = iprot.readI64();
|
|
|
4746 |
else:
|
|
|
4747 |
iprot.skip(ftype)
|
|
|
4748 |
else:
|
|
|
4749 |
iprot.skip(ftype)
|
|
|
4750 |
iprot.readFieldEnd()
|
|
|
4751 |
iprot.readStructEnd()
|
|
|
4752 |
|
|
|
4753 |
def write(self, oprot):
|
|
|
4754 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4755 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4756 |
return
|
|
|
4757 |
oprot.writeStructBegin('getDefaultPincode_args')
|
|
|
4758 |
if self.userId != None:
|
|
|
4759 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
4760 |
oprot.writeI64(self.userId)
|
|
|
4761 |
oprot.writeFieldEnd()
|
|
|
4762 |
oprot.writeFieldStop()
|
|
|
4763 |
oprot.writeStructEnd()
|
|
|
4764 |
|
|
|
4765 |
def __repr__(self):
|
|
|
4766 |
L = ['%s=%r' % (key, value)
|
|
|
4767 |
for key, value in self.__dict__.iteritems()]
|
|
|
4768 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4769 |
|
|
|
4770 |
def __eq__(self, other):
|
|
|
4771 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4772 |
|
|
|
4773 |
def __ne__(self, other):
|
|
|
4774 |
return not (self == other)
|
|
|
4775 |
|
|
|
4776 |
class getDefaultPincode_result:
|
|
|
4777 |
"""
|
|
|
4778 |
Attributes:
|
|
|
4779 |
- success
|
|
|
4780 |
- ucx
|
|
|
4781 |
"""
|
|
|
4782 |
|
|
|
4783 |
thrift_spec = (
|
|
|
4784 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
4785 |
(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
|
|
|
4786 |
)
|
|
|
4787 |
|
|
|
4788 |
def __init__(self, success=None, ucx=None,):
|
|
|
4789 |
self.success = success
|
|
|
4790 |
self.ucx = ucx
|
|
|
4791 |
|
|
|
4792 |
def read(self, iprot):
|
|
|
4793 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4794 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4795 |
return
|
|
|
4796 |
iprot.readStructBegin()
|
|
|
4797 |
while True:
|
|
|
4798 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4799 |
if ftype == TType.STOP:
|
|
|
4800 |
break
|
|
|
4801 |
if fid == 0:
|
|
|
4802 |
if ftype == TType.STRING:
|
|
|
4803 |
self.success = iprot.readString();
|
|
|
4804 |
else:
|
|
|
4805 |
iprot.skip(ftype)
|
|
|
4806 |
elif fid == 1:
|
|
|
4807 |
if ftype == TType.STRUCT:
|
|
|
4808 |
self.ucx = UserContextException()
|
|
|
4809 |
self.ucx.read(iprot)
|
|
|
4810 |
else:
|
|
|
4811 |
iprot.skip(ftype)
|
|
|
4812 |
else:
|
|
|
4813 |
iprot.skip(ftype)
|
|
|
4814 |
iprot.readFieldEnd()
|
|
|
4815 |
iprot.readStructEnd()
|
|
|
4816 |
|
|
|
4817 |
def write(self, oprot):
|
|
|
4818 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4819 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4820 |
return
|
|
|
4821 |
oprot.writeStructBegin('getDefaultPincode_result')
|
|
|
4822 |
if self.success != None:
|
|
|
4823 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
4824 |
oprot.writeString(self.success)
|
|
|
4825 |
oprot.writeFieldEnd()
|
|
|
4826 |
if self.ucx != None:
|
|
|
4827 |
oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
|
|
|
4828 |
self.ucx.write(oprot)
|
|
|
4829 |
oprot.writeFieldEnd()
|
|
|
4830 |
oprot.writeFieldStop()
|
|
|
4831 |
oprot.writeStructEnd()
|
|
|
4832 |
|
|
|
4833 |
def __repr__(self):
|
|
|
4834 |
L = ['%s=%r' % (key, value)
|
|
|
4835 |
for key, value in self.__dict__.iteritems()]
|
|
|
4836 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4837 |
|
|
|
4838 |
def __eq__(self, other):
|
|
|
4839 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4840 |
|
|
|
4841 |
def __ne__(self, other):
|
|
|
4842 |
return not (self == other)
|
|
|
4843 |
|
| 559 |
chandransh |
4844 |
class createCart_args:
|
| 94 |
ashish |
4845 |
"""
|
|
|
4846 |
Attributes:
|
| 559 |
chandransh |
4847 |
- userId
|
| 94 |
ashish |
4848 |
"""
|
|
|
4849 |
|
|
|
4850 |
thrift_spec = (
|
|
|
4851 |
None, # 0
|
| 559 |
chandransh |
4852 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 94 |
ashish |
4853 |
)
|
|
|
4854 |
|
| 559 |
chandransh |
4855 |
def __init__(self, userId=None,):
|
|
|
4856 |
self.userId = userId
|
| 94 |
ashish |
4857 |
|
|
|
4858 |
def read(self, iprot):
|
|
|
4859 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4860 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4861 |
return
|
|
|
4862 |
iprot.readStructBegin()
|
|
|
4863 |
while True:
|
|
|
4864 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4865 |
if ftype == TType.STOP:
|
|
|
4866 |
break
|
|
|
4867 |
if fid == 1:
|
|
|
4868 |
if ftype == TType.I64:
|
| 559 |
chandransh |
4869 |
self.userId = iprot.readI64();
|
| 94 |
ashish |
4870 |
else:
|
|
|
4871 |
iprot.skip(ftype)
|
| 559 |
chandransh |
4872 |
else:
|
|
|
4873 |
iprot.skip(ftype)
|
|
|
4874 |
iprot.readFieldEnd()
|
|
|
4875 |
iprot.readStructEnd()
|
|
|
4876 |
|
|
|
4877 |
def write(self, oprot):
|
|
|
4878 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4879 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4880 |
return
|
|
|
4881 |
oprot.writeStructBegin('createCart_args')
|
|
|
4882 |
if self.userId != None:
|
|
|
4883 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
4884 |
oprot.writeI64(self.userId)
|
|
|
4885 |
oprot.writeFieldEnd()
|
|
|
4886 |
oprot.writeFieldStop()
|
|
|
4887 |
oprot.writeStructEnd()
|
|
|
4888 |
|
|
|
4889 |
def __repr__(self):
|
|
|
4890 |
L = ['%s=%r' % (key, value)
|
|
|
4891 |
for key, value in self.__dict__.iteritems()]
|
|
|
4892 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4893 |
|
|
|
4894 |
def __eq__(self, other):
|
|
|
4895 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4896 |
|
|
|
4897 |
def __ne__(self, other):
|
|
|
4898 |
return not (self == other)
|
|
|
4899 |
|
|
|
4900 |
class createCart_result:
|
|
|
4901 |
"""
|
|
|
4902 |
Attributes:
|
|
|
4903 |
- success
|
|
|
4904 |
- scx
|
|
|
4905 |
"""
|
|
|
4906 |
|
|
|
4907 |
thrift_spec = (
|
|
|
4908 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
4909 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
4910 |
)
|
|
|
4911 |
|
|
|
4912 |
def __init__(self, success=None, scx=None,):
|
|
|
4913 |
self.success = success
|
|
|
4914 |
self.scx = scx
|
|
|
4915 |
|
|
|
4916 |
def read(self, iprot):
|
|
|
4917 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4918 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4919 |
return
|
|
|
4920 |
iprot.readStructBegin()
|
|
|
4921 |
while True:
|
|
|
4922 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4923 |
if ftype == TType.STOP:
|
|
|
4924 |
break
|
|
|
4925 |
if fid == 0:
|
| 94 |
ashish |
4926 |
if ftype == TType.I64:
|
| 559 |
chandransh |
4927 |
self.success = iprot.readI64();
|
| 94 |
ashish |
4928 |
else:
|
|
|
4929 |
iprot.skip(ftype)
|
| 559 |
chandransh |
4930 |
elif fid == 1:
|
|
|
4931 |
if ftype == TType.STRUCT:
|
|
|
4932 |
self.scx = ShoppingCartException()
|
|
|
4933 |
self.scx.read(iprot)
|
|
|
4934 |
else:
|
|
|
4935 |
iprot.skip(ftype)
|
| 94 |
ashish |
4936 |
else:
|
|
|
4937 |
iprot.skip(ftype)
|
|
|
4938 |
iprot.readFieldEnd()
|
|
|
4939 |
iprot.readStructEnd()
|
|
|
4940 |
|
|
|
4941 |
def write(self, oprot):
|
|
|
4942 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4943 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4944 |
return
|
| 559 |
chandransh |
4945 |
oprot.writeStructBegin('createCart_result')
|
|
|
4946 |
if self.success != None:
|
|
|
4947 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
4948 |
oprot.writeI64(self.success)
|
| 94 |
ashish |
4949 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
4950 |
if self.scx != None:
|
|
|
4951 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
4952 |
self.scx.write(oprot)
|
| 94 |
ashish |
4953 |
oprot.writeFieldEnd()
|
|
|
4954 |
oprot.writeFieldStop()
|
|
|
4955 |
oprot.writeStructEnd()
|
|
|
4956 |
|
|
|
4957 |
def __repr__(self):
|
|
|
4958 |
L = ['%s=%r' % (key, value)
|
|
|
4959 |
for key, value in self.__dict__.iteritems()]
|
|
|
4960 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4961 |
|
|
|
4962 |
def __eq__(self, other):
|
|
|
4963 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4964 |
|
|
|
4965 |
def __ne__(self, other):
|
|
|
4966 |
return not (self == other)
|
|
|
4967 |
|
| 559 |
chandransh |
4968 |
class getCurrentCart_args:
|
| 94 |
ashish |
4969 |
"""
|
|
|
4970 |
Attributes:
|
| 559 |
chandransh |
4971 |
- userId
|
|
|
4972 |
"""
|
|
|
4973 |
|
|
|
4974 |
thrift_spec = (
|
|
|
4975 |
None, # 0
|
|
|
4976 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
4977 |
)
|
|
|
4978 |
|
|
|
4979 |
def __init__(self, userId=None,):
|
|
|
4980 |
self.userId = userId
|
|
|
4981 |
|
|
|
4982 |
def read(self, iprot):
|
|
|
4983 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4984 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4985 |
return
|
|
|
4986 |
iprot.readStructBegin()
|
|
|
4987 |
while True:
|
|
|
4988 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4989 |
if ftype == TType.STOP:
|
|
|
4990 |
break
|
|
|
4991 |
if fid == 1:
|
|
|
4992 |
if ftype == TType.I64:
|
|
|
4993 |
self.userId = iprot.readI64();
|
|
|
4994 |
else:
|
|
|
4995 |
iprot.skip(ftype)
|
|
|
4996 |
else:
|
|
|
4997 |
iprot.skip(ftype)
|
|
|
4998 |
iprot.readFieldEnd()
|
|
|
4999 |
iprot.readStructEnd()
|
|
|
5000 |
|
|
|
5001 |
def write(self, oprot):
|
|
|
5002 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5003 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5004 |
return
|
|
|
5005 |
oprot.writeStructBegin('getCurrentCart_args')
|
|
|
5006 |
if self.userId != None:
|
|
|
5007 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
5008 |
oprot.writeI64(self.userId)
|
|
|
5009 |
oprot.writeFieldEnd()
|
|
|
5010 |
oprot.writeFieldStop()
|
|
|
5011 |
oprot.writeStructEnd()
|
|
|
5012 |
|
|
|
5013 |
def __repr__(self):
|
|
|
5014 |
L = ['%s=%r' % (key, value)
|
|
|
5015 |
for key, value in self.__dict__.iteritems()]
|
|
|
5016 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5017 |
|
|
|
5018 |
def __eq__(self, other):
|
|
|
5019 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5020 |
|
|
|
5021 |
def __ne__(self, other):
|
|
|
5022 |
return not (self == other)
|
|
|
5023 |
|
|
|
5024 |
class getCurrentCart_result:
|
|
|
5025 |
"""
|
|
|
5026 |
Attributes:
|
| 94 |
ashish |
5027 |
- success
|
| 559 |
chandransh |
5028 |
- scx
|
| 94 |
ashish |
5029 |
"""
|
|
|
5030 |
|
|
|
5031 |
thrift_spec = (
|
| 559 |
chandransh |
5032 |
(0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
|
|
|
5033 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
5034 |
)
|
|
|
5035 |
|
| 559 |
chandransh |
5036 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
5037 |
self.success = success
|
| 559 |
chandransh |
5038 |
self.scx = scx
|
| 94 |
ashish |
5039 |
|
|
|
5040 |
def read(self, iprot):
|
|
|
5041 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5042 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5043 |
return
|
|
|
5044 |
iprot.readStructBegin()
|
|
|
5045 |
while True:
|
|
|
5046 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5047 |
if ftype == TType.STOP:
|
|
|
5048 |
break
|
|
|
5049 |
if fid == 0:
|
| 559 |
chandransh |
5050 |
if ftype == TType.STRUCT:
|
|
|
5051 |
self.success = Cart()
|
|
|
5052 |
self.success.read(iprot)
|
| 94 |
ashish |
5053 |
else:
|
|
|
5054 |
iprot.skip(ftype)
|
|
|
5055 |
elif fid == 1:
|
|
|
5056 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
5057 |
self.scx = ShoppingCartException()
|
|
|
5058 |
self.scx.read(iprot)
|
| 94 |
ashish |
5059 |
else:
|
|
|
5060 |
iprot.skip(ftype)
|
|
|
5061 |
else:
|
|
|
5062 |
iprot.skip(ftype)
|
|
|
5063 |
iprot.readFieldEnd()
|
|
|
5064 |
iprot.readStructEnd()
|
|
|
5065 |
|
|
|
5066 |
def write(self, oprot):
|
|
|
5067 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5068 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5069 |
return
|
| 559 |
chandransh |
5070 |
oprot.writeStructBegin('getCurrentCart_result')
|
| 94 |
ashish |
5071 |
if self.success != None:
|
| 559 |
chandransh |
5072 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
5073 |
self.success.write(oprot)
|
| 94 |
ashish |
5074 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5075 |
if self.scx != None:
|
|
|
5076 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5077 |
self.scx.write(oprot)
|
| 94 |
ashish |
5078 |
oprot.writeFieldEnd()
|
|
|
5079 |
oprot.writeFieldStop()
|
|
|
5080 |
oprot.writeStructEnd()
|
|
|
5081 |
|
|
|
5082 |
def __repr__(self):
|
|
|
5083 |
L = ['%s=%r' % (key, value)
|
|
|
5084 |
for key, value in self.__dict__.iteritems()]
|
|
|
5085 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5086 |
|
|
|
5087 |
def __eq__(self, other):
|
|
|
5088 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5089 |
|
|
|
5090 |
def __ne__(self, other):
|
|
|
5091 |
return not (self == other)
|
|
|
5092 |
|
| 559 |
chandransh |
5093 |
class getCart_args:
|
| 504 |
rajveer |
5094 |
"""
|
|
|
5095 |
Attributes:
|
| 559 |
chandransh |
5096 |
- cartId
|
| 504 |
rajveer |
5097 |
"""
|
|
|
5098 |
|
|
|
5099 |
thrift_spec = (
|
|
|
5100 |
None, # 0
|
| 559 |
chandransh |
5101 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
| 504 |
rajveer |
5102 |
)
|
|
|
5103 |
|
| 559 |
chandransh |
5104 |
def __init__(self, cartId=None,):
|
|
|
5105 |
self.cartId = cartId
|
| 504 |
rajveer |
5106 |
|
|
|
5107 |
def read(self, iprot):
|
|
|
5108 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5109 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5110 |
return
|
|
|
5111 |
iprot.readStructBegin()
|
|
|
5112 |
while True:
|
|
|
5113 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5114 |
if ftype == TType.STOP:
|
|
|
5115 |
break
|
|
|
5116 |
if fid == 1:
|
|
|
5117 |
if ftype == TType.I64:
|
| 559 |
chandransh |
5118 |
self.cartId = iprot.readI64();
|
| 504 |
rajveer |
5119 |
else:
|
|
|
5120 |
iprot.skip(ftype)
|
|
|
5121 |
else:
|
|
|
5122 |
iprot.skip(ftype)
|
|
|
5123 |
iprot.readFieldEnd()
|
|
|
5124 |
iprot.readStructEnd()
|
|
|
5125 |
|
|
|
5126 |
def write(self, oprot):
|
|
|
5127 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5128 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5129 |
return
|
| 559 |
chandransh |
5130 |
oprot.writeStructBegin('getCart_args')
|
|
|
5131 |
if self.cartId != None:
|
|
|
5132 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
5133 |
oprot.writeI64(self.cartId)
|
| 504 |
rajveer |
5134 |
oprot.writeFieldEnd()
|
|
|
5135 |
oprot.writeFieldStop()
|
|
|
5136 |
oprot.writeStructEnd()
|
|
|
5137 |
|
|
|
5138 |
def __repr__(self):
|
|
|
5139 |
L = ['%s=%r' % (key, value)
|
|
|
5140 |
for key, value in self.__dict__.iteritems()]
|
|
|
5141 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5142 |
|
|
|
5143 |
def __eq__(self, other):
|
|
|
5144 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5145 |
|
|
|
5146 |
def __ne__(self, other):
|
|
|
5147 |
return not (self == other)
|
|
|
5148 |
|
| 559 |
chandransh |
5149 |
class getCart_result:
|
| 504 |
rajveer |
5150 |
"""
|
|
|
5151 |
Attributes:
|
|
|
5152 |
- success
|
| 559 |
chandransh |
5153 |
- scx
|
| 504 |
rajveer |
5154 |
"""
|
|
|
5155 |
|
|
|
5156 |
thrift_spec = (
|
| 559 |
chandransh |
5157 |
(0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
|
|
|
5158 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 504 |
rajveer |
5159 |
)
|
|
|
5160 |
|
| 559 |
chandransh |
5161 |
def __init__(self, success=None, scx=None,):
|
| 504 |
rajveer |
5162 |
self.success = success
|
| 559 |
chandransh |
5163 |
self.scx = scx
|
| 504 |
rajveer |
5164 |
|
|
|
5165 |
def read(self, iprot):
|
|
|
5166 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5167 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5168 |
return
|
|
|
5169 |
iprot.readStructBegin()
|
|
|
5170 |
while True:
|
|
|
5171 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5172 |
if ftype == TType.STOP:
|
|
|
5173 |
break
|
|
|
5174 |
if fid == 0:
|
| 559 |
chandransh |
5175 |
if ftype == TType.STRUCT:
|
|
|
5176 |
self.success = Cart()
|
|
|
5177 |
self.success.read(iprot)
|
| 504 |
rajveer |
5178 |
else:
|
|
|
5179 |
iprot.skip(ftype)
|
|
|
5180 |
elif fid == 1:
|
|
|
5181 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
5182 |
self.scx = ShoppingCartException()
|
|
|
5183 |
self.scx.read(iprot)
|
| 504 |
rajveer |
5184 |
else:
|
|
|
5185 |
iprot.skip(ftype)
|
|
|
5186 |
else:
|
|
|
5187 |
iprot.skip(ftype)
|
|
|
5188 |
iprot.readFieldEnd()
|
|
|
5189 |
iprot.readStructEnd()
|
|
|
5190 |
|
|
|
5191 |
def write(self, oprot):
|
|
|
5192 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5193 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5194 |
return
|
| 559 |
chandransh |
5195 |
oprot.writeStructBegin('getCart_result')
|
| 504 |
rajveer |
5196 |
if self.success != None:
|
| 559 |
chandransh |
5197 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
5198 |
self.success.write(oprot)
|
| 504 |
rajveer |
5199 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5200 |
if self.scx != None:
|
|
|
5201 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5202 |
self.scx.write(oprot)
|
| 504 |
rajveer |
5203 |
oprot.writeFieldEnd()
|
|
|
5204 |
oprot.writeFieldStop()
|
|
|
5205 |
oprot.writeStructEnd()
|
|
|
5206 |
|
|
|
5207 |
def __repr__(self):
|
|
|
5208 |
L = ['%s=%r' % (key, value)
|
|
|
5209 |
for key, value in self.__dict__.iteritems()]
|
|
|
5210 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5211 |
|
|
|
5212 |
def __eq__(self, other):
|
|
|
5213 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5214 |
|
|
|
5215 |
def __ne__(self, other):
|
|
|
5216 |
return not (self == other)
|
|
|
5217 |
|
| 559 |
chandransh |
5218 |
class getCartsForUser_args:
|
| 94 |
ashish |
5219 |
"""
|
|
|
5220 |
Attributes:
|
| 559 |
chandransh |
5221 |
- userId
|
|
|
5222 |
- status
|
| 94 |
ashish |
5223 |
"""
|
|
|
5224 |
|
|
|
5225 |
thrift_spec = (
|
|
|
5226 |
None, # 0
|
| 559 |
chandransh |
5227 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
5228 |
(2, TType.I32, 'status', None, None, ), # 2
|
| 94 |
ashish |
5229 |
)
|
|
|
5230 |
|
| 559 |
chandransh |
5231 |
def __init__(self, userId=None, status=None,):
|
|
|
5232 |
self.userId = userId
|
|
|
5233 |
self.status = status
|
| 94 |
ashish |
5234 |
|
|
|
5235 |
def read(self, iprot):
|
|
|
5236 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5237 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5238 |
return
|
|
|
5239 |
iprot.readStructBegin()
|
|
|
5240 |
while True:
|
|
|
5241 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5242 |
if ftype == TType.STOP:
|
|
|
5243 |
break
|
|
|
5244 |
if fid == 1:
|
|
|
5245 |
if ftype == TType.I64:
|
| 559 |
chandransh |
5246 |
self.userId = iprot.readI64();
|
| 94 |
ashish |
5247 |
else:
|
|
|
5248 |
iprot.skip(ftype)
|
|
|
5249 |
elif fid == 2:
|
| 559 |
chandransh |
5250 |
if ftype == TType.I32:
|
|
|
5251 |
self.status = iprot.readI32();
|
| 94 |
ashish |
5252 |
else:
|
|
|
5253 |
iprot.skip(ftype)
|
|
|
5254 |
else:
|
|
|
5255 |
iprot.skip(ftype)
|
|
|
5256 |
iprot.readFieldEnd()
|
|
|
5257 |
iprot.readStructEnd()
|
|
|
5258 |
|
|
|
5259 |
def write(self, oprot):
|
|
|
5260 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5261 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5262 |
return
|
| 559 |
chandransh |
5263 |
oprot.writeStructBegin('getCartsForUser_args')
|
|
|
5264 |
if self.userId != None:
|
|
|
5265 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
5266 |
oprot.writeI64(self.userId)
|
| 94 |
ashish |
5267 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5268 |
if self.status != None:
|
|
|
5269 |
oprot.writeFieldBegin('status', TType.I32, 2)
|
|
|
5270 |
oprot.writeI32(self.status)
|
| 94 |
ashish |
5271 |
oprot.writeFieldEnd()
|
|
|
5272 |
oprot.writeFieldStop()
|
|
|
5273 |
oprot.writeStructEnd()
|
|
|
5274 |
|
|
|
5275 |
def __repr__(self):
|
|
|
5276 |
L = ['%s=%r' % (key, value)
|
|
|
5277 |
for key, value in self.__dict__.iteritems()]
|
|
|
5278 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5279 |
|
|
|
5280 |
def __eq__(self, other):
|
|
|
5281 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5282 |
|
|
|
5283 |
def __ne__(self, other):
|
|
|
5284 |
return not (self == other)
|
|
|
5285 |
|
| 559 |
chandransh |
5286 |
class getCartsForUser_result:
|
| 94 |
ashish |
5287 |
"""
|
|
|
5288 |
Attributes:
|
|
|
5289 |
- success
|
| 559 |
chandransh |
5290 |
- scx
|
| 94 |
ashish |
5291 |
"""
|
|
|
5292 |
|
|
|
5293 |
thrift_spec = (
|
| 559 |
chandransh |
5294 |
(0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
|
|
|
5295 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
5296 |
)
|
|
|
5297 |
|
| 559 |
chandransh |
5298 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
5299 |
self.success = success
|
| 559 |
chandransh |
5300 |
self.scx = scx
|
| 94 |
ashish |
5301 |
|
|
|
5302 |
def read(self, iprot):
|
|
|
5303 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5304 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5305 |
return
|
|
|
5306 |
iprot.readStructBegin()
|
|
|
5307 |
while True:
|
|
|
5308 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5309 |
if ftype == TType.STOP:
|
|
|
5310 |
break
|
|
|
5311 |
if fid == 0:
|
| 559 |
chandransh |
5312 |
if ftype == TType.LIST:
|
|
|
5313 |
self.success = []
|
| 772 |
rajveer |
5314 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
5315 |
for _i39 in xrange(_size35):
|
|
|
5316 |
_elem40 = Cart()
|
|
|
5317 |
_elem40.read(iprot)
|
|
|
5318 |
self.success.append(_elem40)
|
| 559 |
chandransh |
5319 |
iprot.readListEnd()
|
| 94 |
ashish |
5320 |
else:
|
|
|
5321 |
iprot.skip(ftype)
|
|
|
5322 |
elif fid == 1:
|
|
|
5323 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
5324 |
self.scx = ShoppingCartException()
|
|
|
5325 |
self.scx.read(iprot)
|
| 94 |
ashish |
5326 |
else:
|
|
|
5327 |
iprot.skip(ftype)
|
|
|
5328 |
else:
|
|
|
5329 |
iprot.skip(ftype)
|
|
|
5330 |
iprot.readFieldEnd()
|
|
|
5331 |
iprot.readStructEnd()
|
|
|
5332 |
|
|
|
5333 |
def write(self, oprot):
|
|
|
5334 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5335 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5336 |
return
|
| 559 |
chandransh |
5337 |
oprot.writeStructBegin('getCartsForUser_result')
|
| 94 |
ashish |
5338 |
if self.success != None:
|
| 559 |
chandransh |
5339 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5340 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 772 |
rajveer |
5341 |
for iter41 in self.success:
|
|
|
5342 |
iter41.write(oprot)
|
| 559 |
chandransh |
5343 |
oprot.writeListEnd()
|
| 94 |
ashish |
5344 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5345 |
if self.scx != None:
|
|
|
5346 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5347 |
self.scx.write(oprot)
|
| 94 |
ashish |
5348 |
oprot.writeFieldEnd()
|
|
|
5349 |
oprot.writeFieldStop()
|
|
|
5350 |
oprot.writeStructEnd()
|
|
|
5351 |
|
|
|
5352 |
def __repr__(self):
|
|
|
5353 |
L = ['%s=%r' % (key, value)
|
|
|
5354 |
for key, value in self.__dict__.iteritems()]
|
|
|
5355 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5356 |
|
|
|
5357 |
def __eq__(self, other):
|
|
|
5358 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5359 |
|
|
|
5360 |
def __ne__(self, other):
|
|
|
5361 |
return not (self == other)
|
|
|
5362 |
|
| 559 |
chandransh |
5363 |
class getCartsByStatus_args:
|
| 94 |
ashish |
5364 |
"""
|
|
|
5365 |
Attributes:
|
| 559 |
chandransh |
5366 |
- status
|
| 94 |
ashish |
5367 |
"""
|
|
|
5368 |
|
|
|
5369 |
thrift_spec = (
|
|
|
5370 |
None, # 0
|
| 559 |
chandransh |
5371 |
(1, TType.I32, 'status', None, None, ), # 1
|
| 94 |
ashish |
5372 |
)
|
|
|
5373 |
|
| 559 |
chandransh |
5374 |
def __init__(self, status=None,):
|
|
|
5375 |
self.status = status
|
| 94 |
ashish |
5376 |
|
|
|
5377 |
def read(self, iprot):
|
|
|
5378 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5379 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5380 |
return
|
|
|
5381 |
iprot.readStructBegin()
|
|
|
5382 |
while True:
|
|
|
5383 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5384 |
if ftype == TType.STOP:
|
|
|
5385 |
break
|
|
|
5386 |
if fid == 1:
|
| 559 |
chandransh |
5387 |
if ftype == TType.I32:
|
|
|
5388 |
self.status = iprot.readI32();
|
|
|
5389 |
else:
|
|
|
5390 |
iprot.skip(ftype)
|
|
|
5391 |
else:
|
|
|
5392 |
iprot.skip(ftype)
|
|
|
5393 |
iprot.readFieldEnd()
|
|
|
5394 |
iprot.readStructEnd()
|
|
|
5395 |
|
|
|
5396 |
def write(self, oprot):
|
|
|
5397 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5398 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5399 |
return
|
|
|
5400 |
oprot.writeStructBegin('getCartsByStatus_args')
|
|
|
5401 |
if self.status != None:
|
|
|
5402 |
oprot.writeFieldBegin('status', TType.I32, 1)
|
|
|
5403 |
oprot.writeI32(self.status)
|
|
|
5404 |
oprot.writeFieldEnd()
|
|
|
5405 |
oprot.writeFieldStop()
|
|
|
5406 |
oprot.writeStructEnd()
|
|
|
5407 |
|
|
|
5408 |
def __repr__(self):
|
|
|
5409 |
L = ['%s=%r' % (key, value)
|
|
|
5410 |
for key, value in self.__dict__.iteritems()]
|
|
|
5411 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5412 |
|
|
|
5413 |
def __eq__(self, other):
|
|
|
5414 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5415 |
|
|
|
5416 |
def __ne__(self, other):
|
|
|
5417 |
return not (self == other)
|
|
|
5418 |
|
|
|
5419 |
class getCartsByStatus_result:
|
|
|
5420 |
"""
|
|
|
5421 |
Attributes:
|
|
|
5422 |
- success
|
|
|
5423 |
- scx
|
|
|
5424 |
"""
|
|
|
5425 |
|
|
|
5426 |
thrift_spec = (
|
|
|
5427 |
(0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
|
|
|
5428 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
5429 |
)
|
|
|
5430 |
|
|
|
5431 |
def __init__(self, success=None, scx=None,):
|
|
|
5432 |
self.success = success
|
|
|
5433 |
self.scx = scx
|
|
|
5434 |
|
|
|
5435 |
def read(self, iprot):
|
|
|
5436 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5437 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5438 |
return
|
|
|
5439 |
iprot.readStructBegin()
|
|
|
5440 |
while True:
|
|
|
5441 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5442 |
if ftype == TType.STOP:
|
|
|
5443 |
break
|
|
|
5444 |
if fid == 0:
|
|
|
5445 |
if ftype == TType.LIST:
|
|
|
5446 |
self.success = []
|
| 772 |
rajveer |
5447 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
5448 |
for _i46 in xrange(_size42):
|
|
|
5449 |
_elem47 = Cart()
|
|
|
5450 |
_elem47.read(iprot)
|
|
|
5451 |
self.success.append(_elem47)
|
| 559 |
chandransh |
5452 |
iprot.readListEnd()
|
|
|
5453 |
else:
|
|
|
5454 |
iprot.skip(ftype)
|
|
|
5455 |
elif fid == 1:
|
|
|
5456 |
if ftype == TType.STRUCT:
|
|
|
5457 |
self.scx = ShoppingCartException()
|
|
|
5458 |
self.scx.read(iprot)
|
|
|
5459 |
else:
|
|
|
5460 |
iprot.skip(ftype)
|
|
|
5461 |
else:
|
|
|
5462 |
iprot.skip(ftype)
|
|
|
5463 |
iprot.readFieldEnd()
|
|
|
5464 |
iprot.readStructEnd()
|
|
|
5465 |
|
|
|
5466 |
def write(self, oprot):
|
|
|
5467 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5468 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5469 |
return
|
|
|
5470 |
oprot.writeStructBegin('getCartsByStatus_result')
|
|
|
5471 |
if self.success != None:
|
|
|
5472 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5473 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 772 |
rajveer |
5474 |
for iter48 in self.success:
|
|
|
5475 |
iter48.write(oprot)
|
| 559 |
chandransh |
5476 |
oprot.writeListEnd()
|
|
|
5477 |
oprot.writeFieldEnd()
|
|
|
5478 |
if self.scx != None:
|
|
|
5479 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5480 |
self.scx.write(oprot)
|
|
|
5481 |
oprot.writeFieldEnd()
|
|
|
5482 |
oprot.writeFieldStop()
|
|
|
5483 |
oprot.writeStructEnd()
|
|
|
5484 |
|
|
|
5485 |
def __repr__(self):
|
|
|
5486 |
L = ['%s=%r' % (key, value)
|
|
|
5487 |
for key, value in self.__dict__.iteritems()]
|
|
|
5488 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5489 |
|
|
|
5490 |
def __eq__(self, other):
|
|
|
5491 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5492 |
|
|
|
5493 |
def __ne__(self, other):
|
|
|
5494 |
return not (self == other)
|
|
|
5495 |
|
|
|
5496 |
class getCartsByTime_args:
|
|
|
5497 |
"""
|
|
|
5498 |
Attributes:
|
|
|
5499 |
- from_time
|
|
|
5500 |
- to_time
|
|
|
5501 |
- status
|
|
|
5502 |
"""
|
|
|
5503 |
|
|
|
5504 |
thrift_spec = (
|
|
|
5505 |
None, # 0
|
|
|
5506 |
(1, TType.I64, 'from_time', None, None, ), # 1
|
|
|
5507 |
(2, TType.I64, 'to_time', None, None, ), # 2
|
|
|
5508 |
(3, TType.I32, 'status', None, None, ), # 3
|
|
|
5509 |
)
|
|
|
5510 |
|
|
|
5511 |
def __init__(self, from_time=None, to_time=None, status=None,):
|
|
|
5512 |
self.from_time = from_time
|
|
|
5513 |
self.to_time = to_time
|
|
|
5514 |
self.status = status
|
|
|
5515 |
|
|
|
5516 |
def read(self, iprot):
|
|
|
5517 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5518 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5519 |
return
|
|
|
5520 |
iprot.readStructBegin()
|
|
|
5521 |
while True:
|
|
|
5522 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5523 |
if ftype == TType.STOP:
|
|
|
5524 |
break
|
|
|
5525 |
if fid == 1:
|
| 94 |
ashish |
5526 |
if ftype == TType.I64:
|
| 559 |
chandransh |
5527 |
self.from_time = iprot.readI64();
|
| 94 |
ashish |
5528 |
else:
|
|
|
5529 |
iprot.skip(ftype)
|
| 122 |
ashish |
5530 |
elif fid == 2:
|
| 559 |
chandransh |
5531 |
if ftype == TType.I64:
|
|
|
5532 |
self.to_time = iprot.readI64();
|
| 122 |
ashish |
5533 |
else:
|
|
|
5534 |
iprot.skip(ftype)
|
| 559 |
chandransh |
5535 |
elif fid == 3:
|
|
|
5536 |
if ftype == TType.I32:
|
|
|
5537 |
self.status = iprot.readI32();
|
|
|
5538 |
else:
|
|
|
5539 |
iprot.skip(ftype)
|
| 94 |
ashish |
5540 |
else:
|
|
|
5541 |
iprot.skip(ftype)
|
|
|
5542 |
iprot.readFieldEnd()
|
|
|
5543 |
iprot.readStructEnd()
|
|
|
5544 |
|
|
|
5545 |
def write(self, oprot):
|
|
|
5546 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5547 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5548 |
return
|
| 559 |
chandransh |
5549 |
oprot.writeStructBegin('getCartsByTime_args')
|
|
|
5550 |
if self.from_time != None:
|
|
|
5551 |
oprot.writeFieldBegin('from_time', TType.I64, 1)
|
|
|
5552 |
oprot.writeI64(self.from_time)
|
| 94 |
ashish |
5553 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5554 |
if self.to_time != None:
|
|
|
5555 |
oprot.writeFieldBegin('to_time', TType.I64, 2)
|
|
|
5556 |
oprot.writeI64(self.to_time)
|
| 122 |
ashish |
5557 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5558 |
if self.status != None:
|
|
|
5559 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
5560 |
oprot.writeI32(self.status)
|
|
|
5561 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
5562 |
oprot.writeFieldStop()
|
|
|
5563 |
oprot.writeStructEnd()
|
|
|
5564 |
|
|
|
5565 |
def __repr__(self):
|
|
|
5566 |
L = ['%s=%r' % (key, value)
|
|
|
5567 |
for key, value in self.__dict__.iteritems()]
|
|
|
5568 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5569 |
|
|
|
5570 |
def __eq__(self, other):
|
|
|
5571 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5572 |
|
|
|
5573 |
def __ne__(self, other):
|
|
|
5574 |
return not (self == other)
|
|
|
5575 |
|
| 559 |
chandransh |
5576 |
class getCartsByTime_result:
|
| 94 |
ashish |
5577 |
"""
|
|
|
5578 |
Attributes:
|
|
|
5579 |
- success
|
| 559 |
chandransh |
5580 |
- scx
|
| 94 |
ashish |
5581 |
"""
|
|
|
5582 |
|
|
|
5583 |
thrift_spec = (
|
| 559 |
chandransh |
5584 |
(0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
|
|
|
5585 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
5586 |
)
|
|
|
5587 |
|
| 559 |
chandransh |
5588 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
5589 |
self.success = success
|
| 559 |
chandransh |
5590 |
self.scx = scx
|
| 94 |
ashish |
5591 |
|
|
|
5592 |
def read(self, iprot):
|
|
|
5593 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5594 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5595 |
return
|
|
|
5596 |
iprot.readStructBegin()
|
|
|
5597 |
while True:
|
|
|
5598 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5599 |
if ftype == TType.STOP:
|
|
|
5600 |
break
|
|
|
5601 |
if fid == 0:
|
| 559 |
chandransh |
5602 |
if ftype == TType.LIST:
|
|
|
5603 |
self.success = []
|
| 772 |
rajveer |
5604 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
5605 |
for _i53 in xrange(_size49):
|
|
|
5606 |
_elem54 = Cart()
|
|
|
5607 |
_elem54.read(iprot)
|
|
|
5608 |
self.success.append(_elem54)
|
| 559 |
chandransh |
5609 |
iprot.readListEnd()
|
| 94 |
ashish |
5610 |
else:
|
|
|
5611 |
iprot.skip(ftype)
|
|
|
5612 |
elif fid == 1:
|
|
|
5613 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
5614 |
self.scx = ShoppingCartException()
|
|
|
5615 |
self.scx.read(iprot)
|
| 94 |
ashish |
5616 |
else:
|
|
|
5617 |
iprot.skip(ftype)
|
|
|
5618 |
else:
|
|
|
5619 |
iprot.skip(ftype)
|
|
|
5620 |
iprot.readFieldEnd()
|
|
|
5621 |
iprot.readStructEnd()
|
|
|
5622 |
|
|
|
5623 |
def write(self, oprot):
|
|
|
5624 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5625 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5626 |
return
|
| 559 |
chandransh |
5627 |
oprot.writeStructBegin('getCartsByTime_result')
|
| 94 |
ashish |
5628 |
if self.success != None:
|
| 559 |
chandransh |
5629 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5630 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 772 |
rajveer |
5631 |
for iter55 in self.success:
|
|
|
5632 |
iter55.write(oprot)
|
| 559 |
chandransh |
5633 |
oprot.writeListEnd()
|
| 94 |
ashish |
5634 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5635 |
if self.scx != None:
|
|
|
5636 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5637 |
self.scx.write(oprot)
|
| 94 |
ashish |
5638 |
oprot.writeFieldEnd()
|
|
|
5639 |
oprot.writeFieldStop()
|
|
|
5640 |
oprot.writeStructEnd()
|
|
|
5641 |
|
|
|
5642 |
def __repr__(self):
|
|
|
5643 |
L = ['%s=%r' % (key, value)
|
|
|
5644 |
for key, value in self.__dict__.iteritems()]
|
|
|
5645 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5646 |
|
|
|
5647 |
def __eq__(self, other):
|
|
|
5648 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5649 |
|
|
|
5650 |
def __ne__(self, other):
|
|
|
5651 |
return not (self == other)
|
|
|
5652 |
|
| 559 |
chandransh |
5653 |
class changeCartStatus_args:
|
| 94 |
ashish |
5654 |
"""
|
|
|
5655 |
Attributes:
|
| 559 |
chandransh |
5656 |
- cartId
|
|
|
5657 |
- status
|
| 94 |
ashish |
5658 |
"""
|
|
|
5659 |
|
|
|
5660 |
thrift_spec = (
|
|
|
5661 |
None, # 0
|
| 559 |
chandransh |
5662 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
5663 |
(2, TType.I32, 'status', None, None, ), # 2
|
| 94 |
ashish |
5664 |
)
|
|
|
5665 |
|
| 559 |
chandransh |
5666 |
def __init__(self, cartId=None, status=None,):
|
|
|
5667 |
self.cartId = cartId
|
|
|
5668 |
self.status = status
|
| 94 |
ashish |
5669 |
|
|
|
5670 |
def read(self, iprot):
|
|
|
5671 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5672 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5673 |
return
|
|
|
5674 |
iprot.readStructBegin()
|
|
|
5675 |
while True:
|
|
|
5676 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5677 |
if ftype == TType.STOP:
|
|
|
5678 |
break
|
|
|
5679 |
if fid == 1:
|
|
|
5680 |
if ftype == TType.I64:
|
| 559 |
chandransh |
5681 |
self.cartId = iprot.readI64();
|
| 94 |
ashish |
5682 |
else:
|
|
|
5683 |
iprot.skip(ftype)
|
| 559 |
chandransh |
5684 |
elif fid == 2:
|
|
|
5685 |
if ftype == TType.I32:
|
|
|
5686 |
self.status = iprot.readI32();
|
|
|
5687 |
else:
|
|
|
5688 |
iprot.skip(ftype)
|
| 94 |
ashish |
5689 |
else:
|
|
|
5690 |
iprot.skip(ftype)
|
|
|
5691 |
iprot.readFieldEnd()
|
|
|
5692 |
iprot.readStructEnd()
|
|
|
5693 |
|
|
|
5694 |
def write(self, oprot):
|
|
|
5695 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5696 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5697 |
return
|
| 559 |
chandransh |
5698 |
oprot.writeStructBegin('changeCartStatus_args')
|
|
|
5699 |
if self.cartId != None:
|
|
|
5700 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
5701 |
oprot.writeI64(self.cartId)
|
| 94 |
ashish |
5702 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
5703 |
if self.status != None:
|
|
|
5704 |
oprot.writeFieldBegin('status', TType.I32, 2)
|
|
|
5705 |
oprot.writeI32(self.status)
|
|
|
5706 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
5707 |
oprot.writeFieldStop()
|
|
|
5708 |
oprot.writeStructEnd()
|
|
|
5709 |
|
|
|
5710 |
def __repr__(self):
|
|
|
5711 |
L = ['%s=%r' % (key, value)
|
|
|
5712 |
for key, value in self.__dict__.iteritems()]
|
|
|
5713 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5714 |
|
|
|
5715 |
def __eq__(self, other):
|
|
|
5716 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5717 |
|
|
|
5718 |
def __ne__(self, other):
|
|
|
5719 |
return not (self == other)
|
|
|
5720 |
|
| 559 |
chandransh |
5721 |
class changeCartStatus_result:
|
| 94 |
ashish |
5722 |
"""
|
|
|
5723 |
Attributes:
|
| 559 |
chandransh |
5724 |
- scx
|
|
|
5725 |
"""
|
|
|
5726 |
|
|
|
5727 |
thrift_spec = (
|
|
|
5728 |
None, # 0
|
|
|
5729 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
5730 |
)
|
|
|
5731 |
|
|
|
5732 |
def __init__(self, scx=None,):
|
|
|
5733 |
self.scx = scx
|
|
|
5734 |
|
|
|
5735 |
def read(self, iprot):
|
|
|
5736 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5737 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5738 |
return
|
|
|
5739 |
iprot.readStructBegin()
|
|
|
5740 |
while True:
|
|
|
5741 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5742 |
if ftype == TType.STOP:
|
|
|
5743 |
break
|
|
|
5744 |
if fid == 1:
|
|
|
5745 |
if ftype == TType.STRUCT:
|
|
|
5746 |
self.scx = ShoppingCartException()
|
|
|
5747 |
self.scx.read(iprot)
|
|
|
5748 |
else:
|
|
|
5749 |
iprot.skip(ftype)
|
|
|
5750 |
else:
|
|
|
5751 |
iprot.skip(ftype)
|
|
|
5752 |
iprot.readFieldEnd()
|
|
|
5753 |
iprot.readStructEnd()
|
|
|
5754 |
|
|
|
5755 |
def write(self, oprot):
|
|
|
5756 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5757 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5758 |
return
|
|
|
5759 |
oprot.writeStructBegin('changeCartStatus_result')
|
|
|
5760 |
if self.scx != None:
|
|
|
5761 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5762 |
self.scx.write(oprot)
|
|
|
5763 |
oprot.writeFieldEnd()
|
|
|
5764 |
oprot.writeFieldStop()
|
|
|
5765 |
oprot.writeStructEnd()
|
|
|
5766 |
|
|
|
5767 |
def __repr__(self):
|
|
|
5768 |
L = ['%s=%r' % (key, value)
|
|
|
5769 |
for key, value in self.__dict__.iteritems()]
|
|
|
5770 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5771 |
|
|
|
5772 |
def __eq__(self, other):
|
|
|
5773 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5774 |
|
|
|
5775 |
def __ne__(self, other):
|
|
|
5776 |
return not (self == other)
|
|
|
5777 |
|
|
|
5778 |
class addItemToCart_args:
|
|
|
5779 |
"""
|
|
|
5780 |
Attributes:
|
|
|
5781 |
- cartId
|
|
|
5782 |
- itemId
|
|
|
5783 |
- quantity
|
|
|
5784 |
"""
|
|
|
5785 |
|
|
|
5786 |
thrift_spec = (
|
|
|
5787 |
None, # 0
|
|
|
5788 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
5789 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
5790 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
|
|
5791 |
)
|
|
|
5792 |
|
|
|
5793 |
def __init__(self, cartId=None, itemId=None, quantity=None,):
|
|
|
5794 |
self.cartId = cartId
|
|
|
5795 |
self.itemId = itemId
|
|
|
5796 |
self.quantity = quantity
|
|
|
5797 |
|
|
|
5798 |
def read(self, iprot):
|
|
|
5799 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5800 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5801 |
return
|
|
|
5802 |
iprot.readStructBegin()
|
|
|
5803 |
while True:
|
|
|
5804 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5805 |
if ftype == TType.STOP:
|
|
|
5806 |
break
|
|
|
5807 |
if fid == 1:
|
|
|
5808 |
if ftype == TType.I64:
|
|
|
5809 |
self.cartId = iprot.readI64();
|
|
|
5810 |
else:
|
|
|
5811 |
iprot.skip(ftype)
|
|
|
5812 |
elif fid == 2:
|
|
|
5813 |
if ftype == TType.I64:
|
|
|
5814 |
self.itemId = iprot.readI64();
|
|
|
5815 |
else:
|
|
|
5816 |
iprot.skip(ftype)
|
|
|
5817 |
elif fid == 3:
|
|
|
5818 |
if ftype == TType.I64:
|
|
|
5819 |
self.quantity = iprot.readI64();
|
|
|
5820 |
else:
|
|
|
5821 |
iprot.skip(ftype)
|
|
|
5822 |
else:
|
|
|
5823 |
iprot.skip(ftype)
|
|
|
5824 |
iprot.readFieldEnd()
|
|
|
5825 |
iprot.readStructEnd()
|
|
|
5826 |
|
|
|
5827 |
def write(self, oprot):
|
|
|
5828 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5829 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5830 |
return
|
|
|
5831 |
oprot.writeStructBegin('addItemToCart_args')
|
|
|
5832 |
if self.cartId != None:
|
|
|
5833 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
5834 |
oprot.writeI64(self.cartId)
|
|
|
5835 |
oprot.writeFieldEnd()
|
|
|
5836 |
if self.itemId != None:
|
|
|
5837 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
5838 |
oprot.writeI64(self.itemId)
|
|
|
5839 |
oprot.writeFieldEnd()
|
|
|
5840 |
if self.quantity != None:
|
|
|
5841 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
5842 |
oprot.writeI64(self.quantity)
|
|
|
5843 |
oprot.writeFieldEnd()
|
|
|
5844 |
oprot.writeFieldStop()
|
|
|
5845 |
oprot.writeStructEnd()
|
|
|
5846 |
|
|
|
5847 |
def __repr__(self):
|
|
|
5848 |
L = ['%s=%r' % (key, value)
|
|
|
5849 |
for key, value in self.__dict__.iteritems()]
|
|
|
5850 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5851 |
|
|
|
5852 |
def __eq__(self, other):
|
|
|
5853 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5854 |
|
|
|
5855 |
def __ne__(self, other):
|
|
|
5856 |
return not (self == other)
|
|
|
5857 |
|
|
|
5858 |
class addItemToCart_result:
|
|
|
5859 |
"""
|
|
|
5860 |
Attributes:
|
|
|
5861 |
- scx
|
|
|
5862 |
"""
|
|
|
5863 |
|
|
|
5864 |
thrift_spec = (
|
|
|
5865 |
None, # 0
|
|
|
5866 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
5867 |
)
|
|
|
5868 |
|
|
|
5869 |
def __init__(self, scx=None,):
|
|
|
5870 |
self.scx = scx
|
|
|
5871 |
|
|
|
5872 |
def read(self, iprot):
|
|
|
5873 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5874 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5875 |
return
|
|
|
5876 |
iprot.readStructBegin()
|
|
|
5877 |
while True:
|
|
|
5878 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5879 |
if ftype == TType.STOP:
|
|
|
5880 |
break
|
|
|
5881 |
if fid == 1:
|
|
|
5882 |
if ftype == TType.STRUCT:
|
|
|
5883 |
self.scx = ShoppingCartException()
|
|
|
5884 |
self.scx.read(iprot)
|
|
|
5885 |
else:
|
|
|
5886 |
iprot.skip(ftype)
|
|
|
5887 |
else:
|
|
|
5888 |
iprot.skip(ftype)
|
|
|
5889 |
iprot.readFieldEnd()
|
|
|
5890 |
iprot.readStructEnd()
|
|
|
5891 |
|
|
|
5892 |
def write(self, oprot):
|
|
|
5893 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5894 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5895 |
return
|
|
|
5896 |
oprot.writeStructBegin('addItemToCart_result')
|
|
|
5897 |
if self.scx != None:
|
|
|
5898 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
5899 |
self.scx.write(oprot)
|
|
|
5900 |
oprot.writeFieldEnd()
|
|
|
5901 |
oprot.writeFieldStop()
|
|
|
5902 |
oprot.writeStructEnd()
|
|
|
5903 |
|
|
|
5904 |
def __repr__(self):
|
|
|
5905 |
L = ['%s=%r' % (key, value)
|
|
|
5906 |
for key, value in self.__dict__.iteritems()]
|
|
|
5907 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5908 |
|
|
|
5909 |
def __eq__(self, other):
|
|
|
5910 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5911 |
|
|
|
5912 |
def __ne__(self, other):
|
|
|
5913 |
return not (self == other)
|
|
|
5914 |
|
|
|
5915 |
class deleteItemFromCart_args:
|
|
|
5916 |
"""
|
|
|
5917 |
Attributes:
|
|
|
5918 |
- cartId
|
|
|
5919 |
- itemId
|
|
|
5920 |
"""
|
|
|
5921 |
|
|
|
5922 |
thrift_spec = (
|
|
|
5923 |
None, # 0
|
|
|
5924 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
5925 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
5926 |
)
|
|
|
5927 |
|
|
|
5928 |
def __init__(self, cartId=None, itemId=None,):
|
|
|
5929 |
self.cartId = cartId
|
|
|
5930 |
self.itemId = itemId
|
|
|
5931 |
|
|
|
5932 |
def read(self, iprot):
|
|
|
5933 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5934 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5935 |
return
|
|
|
5936 |
iprot.readStructBegin()
|
|
|
5937 |
while True:
|
|
|
5938 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5939 |
if ftype == TType.STOP:
|
|
|
5940 |
break
|
|
|
5941 |
if fid == 1:
|
|
|
5942 |
if ftype == TType.I64:
|
|
|
5943 |
self.cartId = iprot.readI64();
|
|
|
5944 |
else:
|
|
|
5945 |
iprot.skip(ftype)
|
|
|
5946 |
elif fid == 2:
|
|
|
5947 |
if ftype == TType.I64:
|
|
|
5948 |
self.itemId = iprot.readI64();
|
|
|
5949 |
else:
|
|
|
5950 |
iprot.skip(ftype)
|
|
|
5951 |
else:
|
|
|
5952 |
iprot.skip(ftype)
|
|
|
5953 |
iprot.readFieldEnd()
|
|
|
5954 |
iprot.readStructEnd()
|
|
|
5955 |
|
|
|
5956 |
def write(self, oprot):
|
|
|
5957 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5958 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5959 |
return
|
|
|
5960 |
oprot.writeStructBegin('deleteItemFromCart_args')
|
|
|
5961 |
if self.cartId != None:
|
|
|
5962 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
5963 |
oprot.writeI64(self.cartId)
|
|
|
5964 |
oprot.writeFieldEnd()
|
|
|
5965 |
if self.itemId != None:
|
|
|
5966 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
5967 |
oprot.writeI64(self.itemId)
|
|
|
5968 |
oprot.writeFieldEnd()
|
|
|
5969 |
oprot.writeFieldStop()
|
|
|
5970 |
oprot.writeStructEnd()
|
|
|
5971 |
|
|
|
5972 |
def __repr__(self):
|
|
|
5973 |
L = ['%s=%r' % (key, value)
|
|
|
5974 |
for key, value in self.__dict__.iteritems()]
|
|
|
5975 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5976 |
|
|
|
5977 |
def __eq__(self, other):
|
|
|
5978 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5979 |
|
|
|
5980 |
def __ne__(self, other):
|
|
|
5981 |
return not (self == other)
|
|
|
5982 |
|
|
|
5983 |
class deleteItemFromCart_result:
|
|
|
5984 |
"""
|
|
|
5985 |
Attributes:
|
|
|
5986 |
- scx
|
|
|
5987 |
"""
|
|
|
5988 |
|
|
|
5989 |
thrift_spec = (
|
|
|
5990 |
None, # 0
|
|
|
5991 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
5992 |
)
|
|
|
5993 |
|
|
|
5994 |
def __init__(self, scx=None,):
|
|
|
5995 |
self.scx = scx
|
|
|
5996 |
|
|
|
5997 |
def read(self, iprot):
|
|
|
5998 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5999 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6000 |
return
|
|
|
6001 |
iprot.readStructBegin()
|
|
|
6002 |
while True:
|
|
|
6003 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6004 |
if ftype == TType.STOP:
|
|
|
6005 |
break
|
|
|
6006 |
if fid == 1:
|
|
|
6007 |
if ftype == TType.STRUCT:
|
|
|
6008 |
self.scx = ShoppingCartException()
|
|
|
6009 |
self.scx.read(iprot)
|
|
|
6010 |
else:
|
|
|
6011 |
iprot.skip(ftype)
|
|
|
6012 |
else:
|
|
|
6013 |
iprot.skip(ftype)
|
|
|
6014 |
iprot.readFieldEnd()
|
|
|
6015 |
iprot.readStructEnd()
|
|
|
6016 |
|
|
|
6017 |
def write(self, oprot):
|
|
|
6018 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6019 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6020 |
return
|
|
|
6021 |
oprot.writeStructBegin('deleteItemFromCart_result')
|
|
|
6022 |
if self.scx != None:
|
|
|
6023 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
6024 |
self.scx.write(oprot)
|
|
|
6025 |
oprot.writeFieldEnd()
|
|
|
6026 |
oprot.writeFieldStop()
|
|
|
6027 |
oprot.writeStructEnd()
|
|
|
6028 |
|
|
|
6029 |
def __repr__(self):
|
|
|
6030 |
L = ['%s=%r' % (key, value)
|
|
|
6031 |
for key, value in self.__dict__.iteritems()]
|
|
|
6032 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6033 |
|
|
|
6034 |
def __eq__(self, other):
|
|
|
6035 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6036 |
|
|
|
6037 |
def __ne__(self, other):
|
|
|
6038 |
return not (self == other)
|
|
|
6039 |
|
|
|
6040 |
class changeQuantity_args:
|
|
|
6041 |
"""
|
|
|
6042 |
Attributes:
|
|
|
6043 |
- cartId
|
|
|
6044 |
- itemId
|
|
|
6045 |
- quantity
|
|
|
6046 |
"""
|
|
|
6047 |
|
|
|
6048 |
thrift_spec = (
|
|
|
6049 |
None, # 0
|
|
|
6050 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
6051 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
6052 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
|
|
6053 |
)
|
|
|
6054 |
|
|
|
6055 |
def __init__(self, cartId=None, itemId=None, quantity=None,):
|
|
|
6056 |
self.cartId = cartId
|
|
|
6057 |
self.itemId = itemId
|
|
|
6058 |
self.quantity = quantity
|
|
|
6059 |
|
|
|
6060 |
def read(self, iprot):
|
|
|
6061 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6062 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6063 |
return
|
|
|
6064 |
iprot.readStructBegin()
|
|
|
6065 |
while True:
|
|
|
6066 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6067 |
if ftype == TType.STOP:
|
|
|
6068 |
break
|
|
|
6069 |
if fid == 1:
|
|
|
6070 |
if ftype == TType.I64:
|
|
|
6071 |
self.cartId = iprot.readI64();
|
|
|
6072 |
else:
|
|
|
6073 |
iprot.skip(ftype)
|
|
|
6074 |
elif fid == 2:
|
|
|
6075 |
if ftype == TType.I64:
|
|
|
6076 |
self.itemId = iprot.readI64();
|
|
|
6077 |
else:
|
|
|
6078 |
iprot.skip(ftype)
|
|
|
6079 |
elif fid == 3:
|
|
|
6080 |
if ftype == TType.I64:
|
|
|
6081 |
self.quantity = iprot.readI64();
|
|
|
6082 |
else:
|
|
|
6083 |
iprot.skip(ftype)
|
|
|
6084 |
else:
|
|
|
6085 |
iprot.skip(ftype)
|
|
|
6086 |
iprot.readFieldEnd()
|
|
|
6087 |
iprot.readStructEnd()
|
|
|
6088 |
|
|
|
6089 |
def write(self, oprot):
|
|
|
6090 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6091 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6092 |
return
|
|
|
6093 |
oprot.writeStructBegin('changeQuantity_args')
|
|
|
6094 |
if self.cartId != None:
|
|
|
6095 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6096 |
oprot.writeI64(self.cartId)
|
|
|
6097 |
oprot.writeFieldEnd()
|
|
|
6098 |
if self.itemId != None:
|
|
|
6099 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
6100 |
oprot.writeI64(self.itemId)
|
|
|
6101 |
oprot.writeFieldEnd()
|
|
|
6102 |
if self.quantity != None:
|
|
|
6103 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
6104 |
oprot.writeI64(self.quantity)
|
|
|
6105 |
oprot.writeFieldEnd()
|
|
|
6106 |
oprot.writeFieldStop()
|
|
|
6107 |
oprot.writeStructEnd()
|
|
|
6108 |
|
|
|
6109 |
def __repr__(self):
|
|
|
6110 |
L = ['%s=%r' % (key, value)
|
|
|
6111 |
for key, value in self.__dict__.iteritems()]
|
|
|
6112 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6113 |
|
|
|
6114 |
def __eq__(self, other):
|
|
|
6115 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6116 |
|
|
|
6117 |
def __ne__(self, other):
|
|
|
6118 |
return not (self == other)
|
|
|
6119 |
|
|
|
6120 |
class changeQuantity_result:
|
|
|
6121 |
"""
|
|
|
6122 |
Attributes:
|
|
|
6123 |
- scx
|
|
|
6124 |
"""
|
|
|
6125 |
|
|
|
6126 |
thrift_spec = (
|
|
|
6127 |
None, # 0
|
|
|
6128 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
6129 |
)
|
|
|
6130 |
|
|
|
6131 |
def __init__(self, scx=None,):
|
|
|
6132 |
self.scx = scx
|
|
|
6133 |
|
|
|
6134 |
def read(self, iprot):
|
|
|
6135 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6136 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6137 |
return
|
|
|
6138 |
iprot.readStructBegin()
|
|
|
6139 |
while True:
|
|
|
6140 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6141 |
if ftype == TType.STOP:
|
|
|
6142 |
break
|
|
|
6143 |
if fid == 1:
|
|
|
6144 |
if ftype == TType.STRUCT:
|
|
|
6145 |
self.scx = ShoppingCartException()
|
|
|
6146 |
self.scx.read(iprot)
|
|
|
6147 |
else:
|
|
|
6148 |
iprot.skip(ftype)
|
|
|
6149 |
else:
|
|
|
6150 |
iprot.skip(ftype)
|
|
|
6151 |
iprot.readFieldEnd()
|
|
|
6152 |
iprot.readStructEnd()
|
|
|
6153 |
|
|
|
6154 |
def write(self, oprot):
|
|
|
6155 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6156 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6157 |
return
|
|
|
6158 |
oprot.writeStructBegin('changeQuantity_result')
|
|
|
6159 |
if self.scx != None:
|
|
|
6160 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
6161 |
self.scx.write(oprot)
|
|
|
6162 |
oprot.writeFieldEnd()
|
|
|
6163 |
oprot.writeFieldStop()
|
|
|
6164 |
oprot.writeStructEnd()
|
|
|
6165 |
|
|
|
6166 |
def __repr__(self):
|
|
|
6167 |
L = ['%s=%r' % (key, value)
|
|
|
6168 |
for key, value in self.__dict__.iteritems()]
|
|
|
6169 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6170 |
|
|
|
6171 |
def __eq__(self, other):
|
|
|
6172 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6173 |
|
|
|
6174 |
def __ne__(self, other):
|
|
|
6175 |
return not (self == other)
|
|
|
6176 |
|
|
|
6177 |
class changeItemStatus_args:
|
|
|
6178 |
"""
|
|
|
6179 |
Attributes:
|
|
|
6180 |
- cartId
|
|
|
6181 |
- itemId
|
|
|
6182 |
- status
|
|
|
6183 |
"""
|
|
|
6184 |
|
|
|
6185 |
thrift_spec = (
|
|
|
6186 |
None, # 0
|
|
|
6187 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
6188 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
6189 |
(3, TType.I32, 'status', None, None, ), # 3
|
|
|
6190 |
)
|
|
|
6191 |
|
|
|
6192 |
def __init__(self, cartId=None, itemId=None, status=None,):
|
|
|
6193 |
self.cartId = cartId
|
|
|
6194 |
self.itemId = itemId
|
|
|
6195 |
self.status = status
|
|
|
6196 |
|
|
|
6197 |
def read(self, iprot):
|
|
|
6198 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6199 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6200 |
return
|
|
|
6201 |
iprot.readStructBegin()
|
|
|
6202 |
while True:
|
|
|
6203 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6204 |
if ftype == TType.STOP:
|
|
|
6205 |
break
|
|
|
6206 |
if fid == 1:
|
|
|
6207 |
if ftype == TType.I64:
|
|
|
6208 |
self.cartId = iprot.readI64();
|
|
|
6209 |
else:
|
|
|
6210 |
iprot.skip(ftype)
|
|
|
6211 |
elif fid == 2:
|
|
|
6212 |
if ftype == TType.I64:
|
|
|
6213 |
self.itemId = iprot.readI64();
|
|
|
6214 |
else:
|
|
|
6215 |
iprot.skip(ftype)
|
|
|
6216 |
elif fid == 3:
|
|
|
6217 |
if ftype == TType.I32:
|
|
|
6218 |
self.status = iprot.readI32();
|
|
|
6219 |
else:
|
|
|
6220 |
iprot.skip(ftype)
|
|
|
6221 |
else:
|
|
|
6222 |
iprot.skip(ftype)
|
|
|
6223 |
iprot.readFieldEnd()
|
|
|
6224 |
iprot.readStructEnd()
|
|
|
6225 |
|
|
|
6226 |
def write(self, oprot):
|
|
|
6227 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6228 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6229 |
return
|
|
|
6230 |
oprot.writeStructBegin('changeItemStatus_args')
|
|
|
6231 |
if self.cartId != None:
|
|
|
6232 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6233 |
oprot.writeI64(self.cartId)
|
|
|
6234 |
oprot.writeFieldEnd()
|
|
|
6235 |
if self.itemId != None:
|
|
|
6236 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
6237 |
oprot.writeI64(self.itemId)
|
|
|
6238 |
oprot.writeFieldEnd()
|
|
|
6239 |
if self.status != None:
|
|
|
6240 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
6241 |
oprot.writeI32(self.status)
|
|
|
6242 |
oprot.writeFieldEnd()
|
|
|
6243 |
oprot.writeFieldStop()
|
|
|
6244 |
oprot.writeStructEnd()
|
|
|
6245 |
|
|
|
6246 |
def __repr__(self):
|
|
|
6247 |
L = ['%s=%r' % (key, value)
|
|
|
6248 |
for key, value in self.__dict__.iteritems()]
|
|
|
6249 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6250 |
|
|
|
6251 |
def __eq__(self, other):
|
|
|
6252 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6253 |
|
|
|
6254 |
def __ne__(self, other):
|
|
|
6255 |
return not (self == other)
|
|
|
6256 |
|
|
|
6257 |
class changeItemStatus_result:
|
|
|
6258 |
"""
|
|
|
6259 |
Attributes:
|
|
|
6260 |
- scx
|
|
|
6261 |
"""
|
|
|
6262 |
|
|
|
6263 |
thrift_spec = (
|
|
|
6264 |
None, # 0
|
|
|
6265 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
6266 |
)
|
|
|
6267 |
|
|
|
6268 |
def __init__(self, scx=None,):
|
|
|
6269 |
self.scx = scx
|
|
|
6270 |
|
|
|
6271 |
def read(self, iprot):
|
|
|
6272 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6273 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6274 |
return
|
|
|
6275 |
iprot.readStructBegin()
|
|
|
6276 |
while True:
|
|
|
6277 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6278 |
if ftype == TType.STOP:
|
|
|
6279 |
break
|
|
|
6280 |
if fid == 1:
|
|
|
6281 |
if ftype == TType.STRUCT:
|
|
|
6282 |
self.scx = ShoppingCartException()
|
|
|
6283 |
self.scx.read(iprot)
|
|
|
6284 |
else:
|
|
|
6285 |
iprot.skip(ftype)
|
|
|
6286 |
else:
|
|
|
6287 |
iprot.skip(ftype)
|
|
|
6288 |
iprot.readFieldEnd()
|
|
|
6289 |
iprot.readStructEnd()
|
|
|
6290 |
|
|
|
6291 |
def write(self, oprot):
|
|
|
6292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6294 |
return
|
|
|
6295 |
oprot.writeStructBegin('changeItemStatus_result')
|
|
|
6296 |
if self.scx != None:
|
|
|
6297 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
6298 |
self.scx.write(oprot)
|
|
|
6299 |
oprot.writeFieldEnd()
|
|
|
6300 |
oprot.writeFieldStop()
|
|
|
6301 |
oprot.writeStructEnd()
|
|
|
6302 |
|
|
|
6303 |
def __repr__(self):
|
|
|
6304 |
L = ['%s=%r' % (key, value)
|
|
|
6305 |
for key, value in self.__dict__.iteritems()]
|
|
|
6306 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6307 |
|
|
|
6308 |
def __eq__(self, other):
|
|
|
6309 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6310 |
|
|
|
6311 |
def __ne__(self, other):
|
|
|
6312 |
return not (self == other)
|
|
|
6313 |
|
|
|
6314 |
class addAddressToCart_args:
|
|
|
6315 |
"""
|
|
|
6316 |
Attributes:
|
|
|
6317 |
- cartId
|
|
|
6318 |
- addressId
|
|
|
6319 |
"""
|
|
|
6320 |
|
|
|
6321 |
thrift_spec = (
|
|
|
6322 |
None, # 0
|
|
|
6323 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
6324 |
(2, TType.I64, 'addressId', None, None, ), # 2
|
|
|
6325 |
)
|
|
|
6326 |
|
|
|
6327 |
def __init__(self, cartId=None, addressId=None,):
|
|
|
6328 |
self.cartId = cartId
|
|
|
6329 |
self.addressId = addressId
|
|
|
6330 |
|
|
|
6331 |
def read(self, iprot):
|
|
|
6332 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6333 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6334 |
return
|
|
|
6335 |
iprot.readStructBegin()
|
|
|
6336 |
while True:
|
|
|
6337 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6338 |
if ftype == TType.STOP:
|
|
|
6339 |
break
|
|
|
6340 |
if fid == 1:
|
|
|
6341 |
if ftype == TType.I64:
|
|
|
6342 |
self.cartId = iprot.readI64();
|
|
|
6343 |
else:
|
|
|
6344 |
iprot.skip(ftype)
|
|
|
6345 |
elif fid == 2:
|
|
|
6346 |
if ftype == TType.I64:
|
|
|
6347 |
self.addressId = iprot.readI64();
|
|
|
6348 |
else:
|
|
|
6349 |
iprot.skip(ftype)
|
|
|
6350 |
else:
|
|
|
6351 |
iprot.skip(ftype)
|
|
|
6352 |
iprot.readFieldEnd()
|
|
|
6353 |
iprot.readStructEnd()
|
|
|
6354 |
|
|
|
6355 |
def write(self, oprot):
|
|
|
6356 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6357 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6358 |
return
|
|
|
6359 |
oprot.writeStructBegin('addAddressToCart_args')
|
|
|
6360 |
if self.cartId != None:
|
|
|
6361 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6362 |
oprot.writeI64(self.cartId)
|
|
|
6363 |
oprot.writeFieldEnd()
|
|
|
6364 |
if self.addressId != None:
|
|
|
6365 |
oprot.writeFieldBegin('addressId', TType.I64, 2)
|
|
|
6366 |
oprot.writeI64(self.addressId)
|
|
|
6367 |
oprot.writeFieldEnd()
|
|
|
6368 |
oprot.writeFieldStop()
|
|
|
6369 |
oprot.writeStructEnd()
|
|
|
6370 |
|
|
|
6371 |
def __repr__(self):
|
|
|
6372 |
L = ['%s=%r' % (key, value)
|
|
|
6373 |
for key, value in self.__dict__.iteritems()]
|
|
|
6374 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6375 |
|
|
|
6376 |
def __eq__(self, other):
|
|
|
6377 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6378 |
|
|
|
6379 |
def __ne__(self, other):
|
|
|
6380 |
return not (self == other)
|
|
|
6381 |
|
|
|
6382 |
class addAddressToCart_result:
|
| 575 |
chandransh |
6383 |
"""
|
|
|
6384 |
Attributes:
|
|
|
6385 |
- scx
|
|
|
6386 |
"""
|
| 559 |
chandransh |
6387 |
|
|
|
6388 |
thrift_spec = (
|
| 575 |
chandransh |
6389 |
None, # 0
|
|
|
6390 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 559 |
chandransh |
6391 |
)
|
|
|
6392 |
|
| 575 |
chandransh |
6393 |
def __init__(self, scx=None,):
|
|
|
6394 |
self.scx = scx
|
|
|
6395 |
|
| 559 |
chandransh |
6396 |
def read(self, iprot):
|
|
|
6397 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6398 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6399 |
return
|
|
|
6400 |
iprot.readStructBegin()
|
|
|
6401 |
while True:
|
|
|
6402 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6403 |
if ftype == TType.STOP:
|
|
|
6404 |
break
|
| 575 |
chandransh |
6405 |
if fid == 1:
|
|
|
6406 |
if ftype == TType.STRUCT:
|
|
|
6407 |
self.scx = ShoppingCartException()
|
|
|
6408 |
self.scx.read(iprot)
|
|
|
6409 |
else:
|
|
|
6410 |
iprot.skip(ftype)
|
| 559 |
chandransh |
6411 |
else:
|
|
|
6412 |
iprot.skip(ftype)
|
|
|
6413 |
iprot.readFieldEnd()
|
|
|
6414 |
iprot.readStructEnd()
|
|
|
6415 |
|
|
|
6416 |
def write(self, oprot):
|
|
|
6417 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6418 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6419 |
return
|
|
|
6420 |
oprot.writeStructBegin('addAddressToCart_result')
|
| 575 |
chandransh |
6421 |
if self.scx != None:
|
|
|
6422 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
6423 |
self.scx.write(oprot)
|
|
|
6424 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
6425 |
oprot.writeFieldStop()
|
|
|
6426 |
oprot.writeStructEnd()
|
|
|
6427 |
|
|
|
6428 |
def __repr__(self):
|
|
|
6429 |
L = ['%s=%r' % (key, value)
|
|
|
6430 |
for key, value in self.__dict__.iteritems()]
|
|
|
6431 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6432 |
|
|
|
6433 |
def __eq__(self, other):
|
|
|
6434 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6435 |
|
|
|
6436 |
def __ne__(self, other):
|
|
|
6437 |
return not (self == other)
|
|
|
6438 |
|
| 690 |
chandransh |
6439 |
class createOrders_args:
|
| 559 |
chandransh |
6440 |
"""
|
|
|
6441 |
Attributes:
|
|
|
6442 |
- cartId
|
|
|
6443 |
"""
|
|
|
6444 |
|
|
|
6445 |
thrift_spec = (
|
|
|
6446 |
None, # 0
|
|
|
6447 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
6448 |
)
|
|
|
6449 |
|
|
|
6450 |
def __init__(self, cartId=None,):
|
|
|
6451 |
self.cartId = cartId
|
|
|
6452 |
|
|
|
6453 |
def read(self, iprot):
|
|
|
6454 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6455 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6456 |
return
|
|
|
6457 |
iprot.readStructBegin()
|
|
|
6458 |
while True:
|
|
|
6459 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6460 |
if ftype == TType.STOP:
|
|
|
6461 |
break
|
|
|
6462 |
if fid == 1:
|
|
|
6463 |
if ftype == TType.I64:
|
|
|
6464 |
self.cartId = iprot.readI64();
|
|
|
6465 |
else:
|
|
|
6466 |
iprot.skip(ftype)
|
|
|
6467 |
else:
|
|
|
6468 |
iprot.skip(ftype)
|
|
|
6469 |
iprot.readFieldEnd()
|
|
|
6470 |
iprot.readStructEnd()
|
|
|
6471 |
|
|
|
6472 |
def write(self, oprot):
|
|
|
6473 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6474 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6475 |
return
|
| 690 |
chandransh |
6476 |
oprot.writeStructBegin('createOrders_args')
|
| 559 |
chandransh |
6477 |
if self.cartId != None:
|
|
|
6478 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6479 |
oprot.writeI64(self.cartId)
|
|
|
6480 |
oprot.writeFieldEnd()
|
|
|
6481 |
oprot.writeFieldStop()
|
|
|
6482 |
oprot.writeStructEnd()
|
|
|
6483 |
|
|
|
6484 |
def __repr__(self):
|
|
|
6485 |
L = ['%s=%r' % (key, value)
|
|
|
6486 |
for key, value in self.__dict__.iteritems()]
|
|
|
6487 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6488 |
|
|
|
6489 |
def __eq__(self, other):
|
|
|
6490 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6491 |
|
|
|
6492 |
def __ne__(self, other):
|
|
|
6493 |
return not (self == other)
|
|
|
6494 |
|
| 690 |
chandransh |
6495 |
class createOrders_result:
|
| 559 |
chandransh |
6496 |
"""
|
|
|
6497 |
Attributes:
|
| 94 |
ashish |
6498 |
- success
|
| 559 |
chandransh |
6499 |
- scx
|
| 94 |
ashish |
6500 |
"""
|
|
|
6501 |
|
|
|
6502 |
thrift_spec = (
|
| 575 |
chandransh |
6503 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 559 |
chandransh |
6504 |
(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
6505 |
)
|
|
|
6506 |
|
| 559 |
chandransh |
6507 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
6508 |
self.success = success
|
| 559 |
chandransh |
6509 |
self.scx = scx
|
| 94 |
ashish |
6510 |
|
|
|
6511 |
def read(self, iprot):
|
|
|
6512 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6513 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6514 |
return
|
|
|
6515 |
iprot.readStructBegin()
|
|
|
6516 |
while True:
|
|
|
6517 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6518 |
if ftype == TType.STOP:
|
|
|
6519 |
break
|
|
|
6520 |
if fid == 0:
|
| 575 |
chandransh |
6521 |
if ftype == TType.I64:
|
|
|
6522 |
self.success = iprot.readI64();
|
| 94 |
ashish |
6523 |
else:
|
|
|
6524 |
iprot.skip(ftype)
|
|
|
6525 |
elif fid == 1:
|
|
|
6526 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
6527 |
self.scx = ShoppingCartException()
|
|
|
6528 |
self.scx.read(iprot)
|
| 94 |
ashish |
6529 |
else:
|
|
|
6530 |
iprot.skip(ftype)
|
|
|
6531 |
else:
|
|
|
6532 |
iprot.skip(ftype)
|
|
|
6533 |
iprot.readFieldEnd()
|
|
|
6534 |
iprot.readStructEnd()
|
|
|
6535 |
|
|
|
6536 |
def write(self, oprot):
|
|
|
6537 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6538 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6539 |
return
|
| 690 |
chandransh |
6540 |
oprot.writeStructBegin('createOrders_result')
|
| 94 |
ashish |
6541 |
if self.success != None:
|
| 575 |
chandransh |
6542 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
6543 |
oprot.writeI64(self.success)
|
| 94 |
ashish |
6544 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
6545 |
if self.scx != None:
|
|
|
6546 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
6547 |
self.scx.write(oprot)
|
| 94 |
ashish |
6548 |
oprot.writeFieldEnd()
|
|
|
6549 |
oprot.writeFieldStop()
|
|
|
6550 |
oprot.writeStructEnd()
|
|
|
6551 |
|
|
|
6552 |
def __repr__(self):
|
|
|
6553 |
L = ['%s=%r' % (key, value)
|
|
|
6554 |
for key, value in self.__dict__.iteritems()]
|
|
|
6555 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6556 |
|
|
|
6557 |
def __eq__(self, other):
|
|
|
6558 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6559 |
|
|
|
6560 |
def __ne__(self, other):
|
|
|
6561 |
return not (self == other)
|
|
|
6562 |
|
| 559 |
chandransh |
6563 |
class validateCart_args:
|
| 94 |
ashish |
6564 |
"""
|
|
|
6565 |
Attributes:
|
| 559 |
chandransh |
6566 |
- cartId
|
| 94 |
ashish |
6567 |
"""
|
|
|
6568 |
|
|
|
6569 |
thrift_spec = (
|
|
|
6570 |
None, # 0
|
| 559 |
chandransh |
6571 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
| 94 |
ashish |
6572 |
)
|
|
|
6573 |
|
| 559 |
chandransh |
6574 |
def __init__(self, cartId=None,):
|
|
|
6575 |
self.cartId = cartId
|
| 94 |
ashish |
6576 |
|
|
|
6577 |
def read(self, iprot):
|
|
|
6578 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6579 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6580 |
return
|
|
|
6581 |
iprot.readStructBegin()
|
|
|
6582 |
while True:
|
|
|
6583 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6584 |
if ftype == TType.STOP:
|
|
|
6585 |
break
|
|
|
6586 |
if fid == 1:
|
|
|
6587 |
if ftype == TType.I64:
|
| 559 |
chandransh |
6588 |
self.cartId = iprot.readI64();
|
| 94 |
ashish |
6589 |
else:
|
|
|
6590 |
iprot.skip(ftype)
|
|
|
6591 |
else:
|
|
|
6592 |
iprot.skip(ftype)
|
|
|
6593 |
iprot.readFieldEnd()
|
|
|
6594 |
iprot.readStructEnd()
|
|
|
6595 |
|
|
|
6596 |
def write(self, oprot):
|
|
|
6597 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6598 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6599 |
return
|
| 559 |
chandransh |
6600 |
oprot.writeStructBegin('validateCart_args')
|
|
|
6601 |
if self.cartId != None:
|
|
|
6602 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6603 |
oprot.writeI64(self.cartId)
|
| 94 |
ashish |
6604 |
oprot.writeFieldEnd()
|
|
|
6605 |
oprot.writeFieldStop()
|
|
|
6606 |
oprot.writeStructEnd()
|
|
|
6607 |
|
|
|
6608 |
def __repr__(self):
|
|
|
6609 |
L = ['%s=%r' % (key, value)
|
|
|
6610 |
for key, value in self.__dict__.iteritems()]
|
|
|
6611 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6612 |
|
|
|
6613 |
def __eq__(self, other):
|
|
|
6614 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6615 |
|
|
|
6616 |
def __ne__(self, other):
|
|
|
6617 |
return not (self == other)
|
|
|
6618 |
|
| 559 |
chandransh |
6619 |
class validateCart_result:
|
| 94 |
ashish |
6620 |
"""
|
|
|
6621 |
Attributes:
|
|
|
6622 |
- success
|
| 575 |
chandransh |
6623 |
- scex
|
| 94 |
ashish |
6624 |
"""
|
|
|
6625 |
|
|
|
6626 |
thrift_spec = (
|
|
|
6627 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 575 |
chandransh |
6628 |
(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
6629 |
)
|
|
|
6630 |
|
| 575 |
chandransh |
6631 |
def __init__(self, success=None, scex=None,):
|
| 94 |
ashish |
6632 |
self.success = success
|
| 575 |
chandransh |
6633 |
self.scex = scex
|
| 94 |
ashish |
6634 |
|
|
|
6635 |
def read(self, iprot):
|
|
|
6636 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6637 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6638 |
return
|
|
|
6639 |
iprot.readStructBegin()
|
|
|
6640 |
while True:
|
|
|
6641 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6642 |
if ftype == TType.STOP:
|
|
|
6643 |
break
|
|
|
6644 |
if fid == 0:
|
|
|
6645 |
if ftype == TType.BOOL:
|
|
|
6646 |
self.success = iprot.readBool();
|
|
|
6647 |
else:
|
|
|
6648 |
iprot.skip(ftype)
|
| 575 |
chandransh |
6649 |
elif fid == 1:
|
|
|
6650 |
if ftype == TType.STRUCT:
|
|
|
6651 |
self.scex = ShoppingCartException()
|
|
|
6652 |
self.scex.read(iprot)
|
|
|
6653 |
else:
|
|
|
6654 |
iprot.skip(ftype)
|
| 94 |
ashish |
6655 |
else:
|
|
|
6656 |
iprot.skip(ftype)
|
|
|
6657 |
iprot.readFieldEnd()
|
|
|
6658 |
iprot.readStructEnd()
|
|
|
6659 |
|
|
|
6660 |
def write(self, oprot):
|
|
|
6661 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6662 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6663 |
return
|
| 559 |
chandransh |
6664 |
oprot.writeStructBegin('validateCart_result')
|
| 94 |
ashish |
6665 |
if self.success != None:
|
|
|
6666 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
6667 |
oprot.writeBool(self.success)
|
|
|
6668 |
oprot.writeFieldEnd()
|
| 575 |
chandransh |
6669 |
if self.scex != None:
|
|
|
6670 |
oprot.writeFieldBegin('scex', TType.STRUCT, 1)
|
|
|
6671 |
self.scex.write(oprot)
|
|
|
6672 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
6673 |
oprot.writeFieldStop()
|
|
|
6674 |
oprot.writeStructEnd()
|
|
|
6675 |
|
|
|
6676 |
def __repr__(self):
|
|
|
6677 |
L = ['%s=%r' % (key, value)
|
|
|
6678 |
for key, value in self.__dict__.iteritems()]
|
|
|
6679 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6680 |
|
|
|
6681 |
def __eq__(self, other):
|
|
|
6682 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6683 |
|
|
|
6684 |
def __ne__(self, other):
|
|
|
6685 |
return not (self == other)
|
|
|
6686 |
|
| 690 |
chandransh |
6687 |
class mergeCart_args:
|
| 575 |
chandransh |
6688 |
"""
|
|
|
6689 |
Attributes:
|
| 690 |
chandransh |
6690 |
- fromCartId
|
|
|
6691 |
- toCartId
|
|
|
6692 |
"""
|
|
|
6693 |
|
|
|
6694 |
thrift_spec = (
|
|
|
6695 |
None, # 0
|
|
|
6696 |
(1, TType.I64, 'fromCartId', None, None, ), # 1
|
|
|
6697 |
(2, TType.I64, 'toCartId', None, None, ), # 2
|
|
|
6698 |
)
|
|
|
6699 |
|
|
|
6700 |
def __init__(self, fromCartId=None, toCartId=None,):
|
|
|
6701 |
self.fromCartId = fromCartId
|
|
|
6702 |
self.toCartId = toCartId
|
|
|
6703 |
|
|
|
6704 |
def read(self, iprot):
|
|
|
6705 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6706 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6707 |
return
|
|
|
6708 |
iprot.readStructBegin()
|
|
|
6709 |
while True:
|
|
|
6710 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6711 |
if ftype == TType.STOP:
|
|
|
6712 |
break
|
|
|
6713 |
if fid == 1:
|
|
|
6714 |
if ftype == TType.I64:
|
|
|
6715 |
self.fromCartId = iprot.readI64();
|
|
|
6716 |
else:
|
|
|
6717 |
iprot.skip(ftype)
|
|
|
6718 |
elif fid == 2:
|
|
|
6719 |
if ftype == TType.I64:
|
|
|
6720 |
self.toCartId = iprot.readI64();
|
|
|
6721 |
else:
|
|
|
6722 |
iprot.skip(ftype)
|
|
|
6723 |
else:
|
|
|
6724 |
iprot.skip(ftype)
|
|
|
6725 |
iprot.readFieldEnd()
|
|
|
6726 |
iprot.readStructEnd()
|
|
|
6727 |
|
|
|
6728 |
def write(self, oprot):
|
|
|
6729 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6730 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6731 |
return
|
|
|
6732 |
oprot.writeStructBegin('mergeCart_args')
|
|
|
6733 |
if self.fromCartId != None:
|
|
|
6734 |
oprot.writeFieldBegin('fromCartId', TType.I64, 1)
|
|
|
6735 |
oprot.writeI64(self.fromCartId)
|
|
|
6736 |
oprot.writeFieldEnd()
|
|
|
6737 |
if self.toCartId != None:
|
|
|
6738 |
oprot.writeFieldBegin('toCartId', TType.I64, 2)
|
|
|
6739 |
oprot.writeI64(self.toCartId)
|
|
|
6740 |
oprot.writeFieldEnd()
|
|
|
6741 |
oprot.writeFieldStop()
|
|
|
6742 |
oprot.writeStructEnd()
|
|
|
6743 |
|
|
|
6744 |
def __repr__(self):
|
|
|
6745 |
L = ['%s=%r' % (key, value)
|
|
|
6746 |
for key, value in self.__dict__.iteritems()]
|
|
|
6747 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6748 |
|
|
|
6749 |
def __eq__(self, other):
|
|
|
6750 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6751 |
|
|
|
6752 |
def __ne__(self, other):
|
|
|
6753 |
return not (self == other)
|
|
|
6754 |
|
|
|
6755 |
class mergeCart_result:
|
|
|
6756 |
|
|
|
6757 |
thrift_spec = (
|
|
|
6758 |
)
|
|
|
6759 |
|
|
|
6760 |
def read(self, iprot):
|
|
|
6761 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6762 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6763 |
return
|
|
|
6764 |
iprot.readStructBegin()
|
|
|
6765 |
while True:
|
|
|
6766 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6767 |
if ftype == TType.STOP:
|
|
|
6768 |
break
|
|
|
6769 |
else:
|
|
|
6770 |
iprot.skip(ftype)
|
|
|
6771 |
iprot.readFieldEnd()
|
|
|
6772 |
iprot.readStructEnd()
|
|
|
6773 |
|
|
|
6774 |
def write(self, oprot):
|
|
|
6775 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6776 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6777 |
return
|
|
|
6778 |
oprot.writeStructBegin('mergeCart_result')
|
|
|
6779 |
oprot.writeFieldStop()
|
|
|
6780 |
oprot.writeStructEnd()
|
|
|
6781 |
|
|
|
6782 |
def __repr__(self):
|
|
|
6783 |
L = ['%s=%r' % (key, value)
|
|
|
6784 |
for key, value in self.__dict__.iteritems()]
|
|
|
6785 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6786 |
|
|
|
6787 |
def __eq__(self, other):
|
|
|
6788 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6789 |
|
|
|
6790 |
def __ne__(self, other):
|
|
|
6791 |
return not (self == other)
|
|
|
6792 |
|
|
|
6793 |
class checkOut_args:
|
|
|
6794 |
"""
|
|
|
6795 |
Attributes:
|
| 575 |
chandransh |
6796 |
- cartId
|
|
|
6797 |
"""
|
|
|
6798 |
|
|
|
6799 |
thrift_spec = (
|
|
|
6800 |
None, # 0
|
|
|
6801 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
|
|
6802 |
)
|
|
|
6803 |
|
|
|
6804 |
def __init__(self, cartId=None,):
|
|
|
6805 |
self.cartId = cartId
|
|
|
6806 |
|
|
|
6807 |
def read(self, iprot):
|
|
|
6808 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6809 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6810 |
return
|
|
|
6811 |
iprot.readStructBegin()
|
|
|
6812 |
while True:
|
|
|
6813 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6814 |
if ftype == TType.STOP:
|
|
|
6815 |
break
|
|
|
6816 |
if fid == 1:
|
|
|
6817 |
if ftype == TType.I64:
|
|
|
6818 |
self.cartId = iprot.readI64();
|
|
|
6819 |
else:
|
|
|
6820 |
iprot.skip(ftype)
|
|
|
6821 |
else:
|
|
|
6822 |
iprot.skip(ftype)
|
|
|
6823 |
iprot.readFieldEnd()
|
|
|
6824 |
iprot.readStructEnd()
|
|
|
6825 |
|
|
|
6826 |
def write(self, oprot):
|
|
|
6827 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6828 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6829 |
return
|
| 690 |
chandransh |
6830 |
oprot.writeStructBegin('checkOut_args')
|
| 575 |
chandransh |
6831 |
if self.cartId != None:
|
|
|
6832 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6833 |
oprot.writeI64(self.cartId)
|
|
|
6834 |
oprot.writeFieldEnd()
|
|
|
6835 |
oprot.writeFieldStop()
|
|
|
6836 |
oprot.writeStructEnd()
|
|
|
6837 |
|
|
|
6838 |
def __repr__(self):
|
|
|
6839 |
L = ['%s=%r' % (key, value)
|
|
|
6840 |
for key, value in self.__dict__.iteritems()]
|
|
|
6841 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6842 |
|
|
|
6843 |
def __eq__(self, other):
|
|
|
6844 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6845 |
|
|
|
6846 |
def __ne__(self, other):
|
|
|
6847 |
return not (self == other)
|
|
|
6848 |
|
| 690 |
chandransh |
6849 |
class checkOut_result:
|
| 575 |
chandransh |
6850 |
"""
|
|
|
6851 |
Attributes:
|
|
|
6852 |
- success
|
|
|
6853 |
- scex
|
|
|
6854 |
"""
|
|
|
6855 |
|
|
|
6856 |
thrift_spec = (
|
|
|
6857 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
6858 |
(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
|
|
6859 |
)
|
|
|
6860 |
|
|
|
6861 |
def __init__(self, success=None, scex=None,):
|
|
|
6862 |
self.success = success
|
|
|
6863 |
self.scex = scex
|
|
|
6864 |
|
|
|
6865 |
def read(self, iprot):
|
|
|
6866 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6867 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6868 |
return
|
|
|
6869 |
iprot.readStructBegin()
|
|
|
6870 |
while True:
|
|
|
6871 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6872 |
if ftype == TType.STOP:
|
|
|
6873 |
break
|
|
|
6874 |
if fid == 0:
|
|
|
6875 |
if ftype == TType.BOOL:
|
|
|
6876 |
self.success = iprot.readBool();
|
|
|
6877 |
else:
|
|
|
6878 |
iprot.skip(ftype)
|
|
|
6879 |
elif fid == 1:
|
|
|
6880 |
if ftype == TType.STRUCT:
|
|
|
6881 |
self.scex = ShoppingCartException()
|
|
|
6882 |
self.scex.read(iprot)
|
|
|
6883 |
else:
|
|
|
6884 |
iprot.skip(ftype)
|
|
|
6885 |
else:
|
|
|
6886 |
iprot.skip(ftype)
|
|
|
6887 |
iprot.readFieldEnd()
|
|
|
6888 |
iprot.readStructEnd()
|
|
|
6889 |
|
|
|
6890 |
def write(self, oprot):
|
|
|
6891 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6892 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6893 |
return
|
| 690 |
chandransh |
6894 |
oprot.writeStructBegin('checkOut_result')
|
| 575 |
chandransh |
6895 |
if self.success != None:
|
|
|
6896 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
6897 |
oprot.writeBool(self.success)
|
|
|
6898 |
oprot.writeFieldEnd()
|
|
|
6899 |
if self.scex != None:
|
|
|
6900 |
oprot.writeFieldBegin('scex', TType.STRUCT, 1)
|
|
|
6901 |
self.scex.write(oprot)
|
|
|
6902 |
oprot.writeFieldEnd()
|
|
|
6903 |
oprot.writeFieldStop()
|
|
|
6904 |
oprot.writeStructEnd()
|
|
|
6905 |
|
|
|
6906 |
def __repr__(self):
|
|
|
6907 |
L = ['%s=%r' % (key, value)
|
|
|
6908 |
for key, value in self.__dict__.iteritems()]
|
|
|
6909 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6910 |
|
|
|
6911 |
def __eq__(self, other):
|
|
|
6912 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6913 |
|
|
|
6914 |
def __ne__(self, other):
|
|
|
6915 |
return not (self == other)
|
|
|
6916 |
|
| 690 |
chandransh |
6917 |
class resetCart_args:
|
| 559 |
chandransh |
6918 |
"""
|
|
|
6919 |
Attributes:
|
| 690 |
chandransh |
6920 |
- cartId
|
|
|
6921 |
- items
|
| 559 |
chandransh |
6922 |
"""
|
|
|
6923 |
|
|
|
6924 |
thrift_spec = (
|
|
|
6925 |
None, # 0
|
| 690 |
chandransh |
6926 |
(1, TType.I64, 'cartId', None, None, ), # 1
|
| 707 |
rajveer |
6927 |
(2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
|
| 559 |
chandransh |
6928 |
)
|
|
|
6929 |
|
| 690 |
chandransh |
6930 |
def __init__(self, cartId=None, items=None,):
|
|
|
6931 |
self.cartId = cartId
|
|
|
6932 |
self.items = items
|
| 559 |
chandransh |
6933 |
|
|
|
6934 |
def read(self, iprot):
|
|
|
6935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6937 |
return
|
|
|
6938 |
iprot.readStructBegin()
|
|
|
6939 |
while True:
|
|
|
6940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6941 |
if ftype == TType.STOP:
|
|
|
6942 |
break
|
|
|
6943 |
if fid == 1:
|
|
|
6944 |
if ftype == TType.I64:
|
| 690 |
chandransh |
6945 |
self.cartId = iprot.readI64();
|
| 559 |
chandransh |
6946 |
else:
|
|
|
6947 |
iprot.skip(ftype)
|
|
|
6948 |
elif fid == 2:
|
| 690 |
chandransh |
6949 |
if ftype == TType.MAP:
|
|
|
6950 |
self.items = {}
|
| 772 |
rajveer |
6951 |
(_ktype57, _vtype58, _size56 ) = iprot.readMapBegin()
|
|
|
6952 |
for _i60 in xrange(_size56):
|
|
|
6953 |
_key61 = iprot.readI64();
|
|
|
6954 |
_val62 = iprot.readDouble();
|
|
|
6955 |
self.items[_key61] = _val62
|
| 690 |
chandransh |
6956 |
iprot.readMapEnd()
|
| 559 |
chandransh |
6957 |
else:
|
|
|
6958 |
iprot.skip(ftype)
|
|
|
6959 |
else:
|
|
|
6960 |
iprot.skip(ftype)
|
|
|
6961 |
iprot.readFieldEnd()
|
|
|
6962 |
iprot.readStructEnd()
|
|
|
6963 |
|
|
|
6964 |
def write(self, oprot):
|
|
|
6965 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6966 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6967 |
return
|
| 690 |
chandransh |
6968 |
oprot.writeStructBegin('resetCart_args')
|
|
|
6969 |
if self.cartId != None:
|
|
|
6970 |
oprot.writeFieldBegin('cartId', TType.I64, 1)
|
|
|
6971 |
oprot.writeI64(self.cartId)
|
| 94 |
ashish |
6972 |
oprot.writeFieldEnd()
|
| 690 |
chandransh |
6973 |
if self.items != None:
|
|
|
6974 |
oprot.writeFieldBegin('items', TType.MAP, 2)
|
| 707 |
rajveer |
6975 |
oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
|
| 772 |
rajveer |
6976 |
for kiter63,viter64 in self.items.items():
|
|
|
6977 |
oprot.writeI64(kiter63)
|
|
|
6978 |
oprot.writeDouble(viter64)
|
| 690 |
chandransh |
6979 |
oprot.writeMapEnd()
|
| 559 |
chandransh |
6980 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
6981 |
oprot.writeFieldStop()
|
|
|
6982 |
oprot.writeStructEnd()
|
|
|
6983 |
|
|
|
6984 |
def __repr__(self):
|
|
|
6985 |
L = ['%s=%r' % (key, value)
|
|
|
6986 |
for key, value in self.__dict__.iteritems()]
|
|
|
6987 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6988 |
|
|
|
6989 |
def __eq__(self, other):
|
|
|
6990 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6991 |
|
|
|
6992 |
def __ne__(self, other):
|
|
|
6993 |
return not (self == other)
|
|
|
6994 |
|
| 690 |
chandransh |
6995 |
class resetCart_result:
|
|
|
6996 |
"""
|
|
|
6997 |
Attributes:
|
|
|
6998 |
- success
|
|
|
6999 |
- scex
|
|
|
7000 |
"""
|
| 559 |
chandransh |
7001 |
|
|
|
7002 |
thrift_spec = (
|
| 690 |
chandransh |
7003 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
7004 |
(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
|
| 559 |
chandransh |
7005 |
)
|
|
|
7006 |
|
| 690 |
chandransh |
7007 |
def __init__(self, success=None, scex=None,):
|
|
|
7008 |
self.success = success
|
|
|
7009 |
self.scex = scex
|
|
|
7010 |
|
| 559 |
chandransh |
7011 |
def read(self, iprot):
|
|
|
7012 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7013 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7014 |
return
|
|
|
7015 |
iprot.readStructBegin()
|
|
|
7016 |
while True:
|
|
|
7017 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7018 |
if ftype == TType.STOP:
|
|
|
7019 |
break
|
| 690 |
chandransh |
7020 |
if fid == 0:
|
|
|
7021 |
if ftype == TType.BOOL:
|
|
|
7022 |
self.success = iprot.readBool();
|
|
|
7023 |
else:
|
|
|
7024 |
iprot.skip(ftype)
|
|
|
7025 |
elif fid == 1:
|
|
|
7026 |
if ftype == TType.STRUCT:
|
|
|
7027 |
self.scex = ShoppingCartException()
|
|
|
7028 |
self.scex.read(iprot)
|
|
|
7029 |
else:
|
|
|
7030 |
iprot.skip(ftype)
|
| 559 |
chandransh |
7031 |
else:
|
|
|
7032 |
iprot.skip(ftype)
|
|
|
7033 |
iprot.readFieldEnd()
|
|
|
7034 |
iprot.readStructEnd()
|
|
|
7035 |
|
|
|
7036 |
def write(self, oprot):
|
|
|
7037 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7038 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7039 |
return
|
| 690 |
chandransh |
7040 |
oprot.writeStructBegin('resetCart_result')
|
|
|
7041 |
if self.success != None:
|
|
|
7042 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
7043 |
oprot.writeBool(self.success)
|
|
|
7044 |
oprot.writeFieldEnd()
|
|
|
7045 |
if self.scex != None:
|
|
|
7046 |
oprot.writeFieldBegin('scex', TType.STRUCT, 1)
|
|
|
7047 |
self.scex.write(oprot)
|
|
|
7048 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
7049 |
oprot.writeFieldStop()
|
|
|
7050 |
oprot.writeStructEnd()
|
|
|
7051 |
|
|
|
7052 |
def __repr__(self):
|
|
|
7053 |
L = ['%s=%r' % (key, value)
|
|
|
7054 |
for key, value in self.__dict__.iteritems()]
|
|
|
7055 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7056 |
|
|
|
7057 |
def __eq__(self, other):
|
|
|
7058 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7059 |
|
|
|
7060 |
def __ne__(self, other):
|
|
|
7061 |
return not (self == other)
|
|
|
7062 |
|
| 772 |
rajveer |
7063 |
class getMyResearch_args:
|
| 94 |
ashish |
7064 |
"""
|
|
|
7065 |
Attributes:
|
| 559 |
chandransh |
7066 |
- userId
|
|
|
7067 |
"""
|
|
|
7068 |
|
|
|
7069 |
thrift_spec = (
|
|
|
7070 |
None, # 0
|
| 772 |
rajveer |
7071 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 559 |
chandransh |
7072 |
)
|
|
|
7073 |
|
| 772 |
rajveer |
7074 |
def __init__(self, userId=None,):
|
| 559 |
chandransh |
7075 |
self.userId = userId
|
|
|
7076 |
|
|
|
7077 |
def read(self, iprot):
|
|
|
7078 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7079 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7080 |
return
|
|
|
7081 |
iprot.readStructBegin()
|
|
|
7082 |
while True:
|
|
|
7083 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7084 |
if ftype == TType.STOP:
|
|
|
7085 |
break
|
|
|
7086 |
if fid == 1:
|
|
|
7087 |
if ftype == TType.I64:
|
|
|
7088 |
self.userId = iprot.readI64();
|
|
|
7089 |
else:
|
|
|
7090 |
iprot.skip(ftype)
|
|
|
7091 |
else:
|
|
|
7092 |
iprot.skip(ftype)
|
|
|
7093 |
iprot.readFieldEnd()
|
|
|
7094 |
iprot.readStructEnd()
|
|
|
7095 |
|
|
|
7096 |
def write(self, oprot):
|
|
|
7097 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7098 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7099 |
return
|
| 772 |
rajveer |
7100 |
oprot.writeStructBegin('getMyResearch_args')
|
| 559 |
chandransh |
7101 |
if self.userId != None:
|
| 772 |
rajveer |
7102 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
| 559 |
chandransh |
7103 |
oprot.writeI64(self.userId)
|
|
|
7104 |
oprot.writeFieldEnd()
|
|
|
7105 |
oprot.writeFieldStop()
|
|
|
7106 |
oprot.writeStructEnd()
|
|
|
7107 |
|
|
|
7108 |
def __repr__(self):
|
|
|
7109 |
L = ['%s=%r' % (key, value)
|
|
|
7110 |
for key, value in self.__dict__.iteritems()]
|
|
|
7111 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7112 |
|
|
|
7113 |
def __eq__(self, other):
|
|
|
7114 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7115 |
|
|
|
7116 |
def __ne__(self, other):
|
|
|
7117 |
return not (self == other)
|
|
|
7118 |
|
|
|
7119 |
class getMyResearch_result:
|
| 94 |
ashish |
7120 |
"""
|
|
|
7121 |
Attributes:
|
|
|
7122 |
- success
|
| 559 |
chandransh |
7123 |
- scx
|
| 94 |
ashish |
7124 |
"""
|
|
|
7125 |
|
|
|
7126 |
thrift_spec = (
|
| 559 |
chandransh |
7127 |
(0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
|
|
|
7128 |
(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
7129 |
)
|
|
|
7130 |
|
| 559 |
chandransh |
7131 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
7132 |
self.success = success
|
| 559 |
chandransh |
7133 |
self.scx = scx
|
| 94 |
ashish |
7134 |
|
|
|
7135 |
def read(self, iprot):
|
|
|
7136 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7137 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7138 |
return
|
|
|
7139 |
iprot.readStructBegin()
|
|
|
7140 |
while True:
|
|
|
7141 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7142 |
if ftype == TType.STOP:
|
|
|
7143 |
break
|
|
|
7144 |
if fid == 0:
|
| 559 |
chandransh |
7145 |
if ftype == TType.STRUCT:
|
|
|
7146 |
self.success = Widget()
|
|
|
7147 |
self.success.read(iprot)
|
| 94 |
ashish |
7148 |
else:
|
|
|
7149 |
iprot.skip(ftype)
|
|
|
7150 |
elif fid == 1:
|
|
|
7151 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
7152 |
self.scx = WidgetException()
|
|
|
7153 |
self.scx.read(iprot)
|
| 94 |
ashish |
7154 |
else:
|
|
|
7155 |
iprot.skip(ftype)
|
|
|
7156 |
else:
|
|
|
7157 |
iprot.skip(ftype)
|
|
|
7158 |
iprot.readFieldEnd()
|
|
|
7159 |
iprot.readStructEnd()
|
|
|
7160 |
|
|
|
7161 |
def write(self, oprot):
|
|
|
7162 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7163 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7164 |
return
|
| 559 |
chandransh |
7165 |
oprot.writeStructBegin('getMyResearch_result')
|
| 94 |
ashish |
7166 |
if self.success != None:
|
| 559 |
chandransh |
7167 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
7168 |
self.success.write(oprot)
|
| 94 |
ashish |
7169 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
7170 |
if self.scx != None:
|
|
|
7171 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
7172 |
self.scx.write(oprot)
|
| 94 |
ashish |
7173 |
oprot.writeFieldEnd()
|
|
|
7174 |
oprot.writeFieldStop()
|
|
|
7175 |
oprot.writeStructEnd()
|
|
|
7176 |
|
|
|
7177 |
def __repr__(self):
|
|
|
7178 |
L = ['%s=%r' % (key, value)
|
|
|
7179 |
for key, value in self.__dict__.iteritems()]
|
|
|
7180 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7181 |
|
|
|
7182 |
def __eq__(self, other):
|
|
|
7183 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7184 |
|
|
|
7185 |
def __ne__(self, other):
|
|
|
7186 |
return not (self == other)
|
|
|
7187 |
|
| 559 |
chandransh |
7188 |
class updateMyResearch_args:
|
| 94 |
ashish |
7189 |
"""
|
|
|
7190 |
Attributes:
|
| 772 |
rajveer |
7191 |
- userId
|
|
|
7192 |
- itemId
|
| 94 |
ashish |
7193 |
"""
|
|
|
7194 |
|
|
|
7195 |
thrift_spec = (
|
|
|
7196 |
None, # 0
|
| 772 |
rajveer |
7197 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
7198 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
| 94 |
ashish |
7199 |
)
|
|
|
7200 |
|
| 772 |
rajveer |
7201 |
def __init__(self, userId=None, itemId=None,):
|
|
|
7202 |
self.userId = userId
|
|
|
7203 |
self.itemId = itemId
|
| 94 |
ashish |
7204 |
|
|
|
7205 |
def read(self, iprot):
|
|
|
7206 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7207 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7208 |
return
|
|
|
7209 |
iprot.readStructBegin()
|
|
|
7210 |
while True:
|
|
|
7211 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7212 |
if ftype == TType.STOP:
|
|
|
7213 |
break
|
|
|
7214 |
if fid == 1:
|
|
|
7215 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7216 |
self.userId = iprot.readI64();
|
| 94 |
ashish |
7217 |
else:
|
|
|
7218 |
iprot.skip(ftype)
|
|
|
7219 |
elif fid == 2:
|
| 559 |
chandransh |
7220 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7221 |
self.itemId = iprot.readI64();
|
| 94 |
ashish |
7222 |
else:
|
|
|
7223 |
iprot.skip(ftype)
|
|
|
7224 |
else:
|
|
|
7225 |
iprot.skip(ftype)
|
|
|
7226 |
iprot.readFieldEnd()
|
|
|
7227 |
iprot.readStructEnd()
|
|
|
7228 |
|
|
|
7229 |
def write(self, oprot):
|
|
|
7230 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7231 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7232 |
return
|
| 559 |
chandransh |
7233 |
oprot.writeStructBegin('updateMyResearch_args')
|
| 772 |
rajveer |
7234 |
if self.userId != None:
|
|
|
7235 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
7236 |
oprot.writeI64(self.userId)
|
| 94 |
ashish |
7237 |
oprot.writeFieldEnd()
|
| 772 |
rajveer |
7238 |
if self.itemId != None:
|
|
|
7239 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
7240 |
oprot.writeI64(self.itemId)
|
| 94 |
ashish |
7241 |
oprot.writeFieldEnd()
|
|
|
7242 |
oprot.writeFieldStop()
|
|
|
7243 |
oprot.writeStructEnd()
|
|
|
7244 |
|
|
|
7245 |
def __repr__(self):
|
|
|
7246 |
L = ['%s=%r' % (key, value)
|
|
|
7247 |
for key, value in self.__dict__.iteritems()]
|
|
|
7248 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7249 |
|
|
|
7250 |
def __eq__(self, other):
|
|
|
7251 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7252 |
|
|
|
7253 |
def __ne__(self, other):
|
|
|
7254 |
return not (self == other)
|
|
|
7255 |
|
| 559 |
chandransh |
7256 |
class updateMyResearch_result:
|
| 94 |
ashish |
7257 |
"""
|
|
|
7258 |
Attributes:
|
|
|
7259 |
- success
|
| 559 |
chandransh |
7260 |
- scx
|
| 94 |
ashish |
7261 |
"""
|
|
|
7262 |
|
|
|
7263 |
thrift_spec = (
|
|
|
7264 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 559 |
chandransh |
7265 |
(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
|
| 94 |
ashish |
7266 |
)
|
|
|
7267 |
|
| 559 |
chandransh |
7268 |
def __init__(self, success=None, scx=None,):
|
| 94 |
ashish |
7269 |
self.success = success
|
| 559 |
chandransh |
7270 |
self.scx = scx
|
| 94 |
ashish |
7271 |
|
|
|
7272 |
def read(self, iprot):
|
|
|
7273 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7274 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7275 |
return
|
|
|
7276 |
iprot.readStructBegin()
|
|
|
7277 |
while True:
|
|
|
7278 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7279 |
if ftype == TType.STOP:
|
|
|
7280 |
break
|
|
|
7281 |
if fid == 0:
|
|
|
7282 |
if ftype == TType.BOOL:
|
|
|
7283 |
self.success = iprot.readBool();
|
|
|
7284 |
else:
|
|
|
7285 |
iprot.skip(ftype)
|
|
|
7286 |
elif fid == 1:
|
|
|
7287 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
7288 |
self.scx = WidgetException()
|
|
|
7289 |
self.scx.read(iprot)
|
| 94 |
ashish |
7290 |
else:
|
|
|
7291 |
iprot.skip(ftype)
|
|
|
7292 |
else:
|
|
|
7293 |
iprot.skip(ftype)
|
|
|
7294 |
iprot.readFieldEnd()
|
|
|
7295 |
iprot.readStructEnd()
|
|
|
7296 |
|
|
|
7297 |
def write(self, oprot):
|
|
|
7298 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7299 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7300 |
return
|
| 559 |
chandransh |
7301 |
oprot.writeStructBegin('updateMyResearch_result')
|
| 94 |
ashish |
7302 |
if self.success != None:
|
|
|
7303 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
7304 |
oprot.writeBool(self.success)
|
|
|
7305 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
7306 |
if self.scx != None:
|
|
|
7307 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
7308 |
self.scx.write(oprot)
|
| 94 |
ashish |
7309 |
oprot.writeFieldEnd()
|
|
|
7310 |
oprot.writeFieldStop()
|
|
|
7311 |
oprot.writeStructEnd()
|
|
|
7312 |
|
|
|
7313 |
def __repr__(self):
|
|
|
7314 |
L = ['%s=%r' % (key, value)
|
|
|
7315 |
for key, value in self.__dict__.iteritems()]
|
|
|
7316 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7317 |
|
|
|
7318 |
def __eq__(self, other):
|
|
|
7319 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7320 |
|
|
|
7321 |
def __ne__(self, other):
|
|
|
7322 |
return not (self == other)
|
|
|
7323 |
|
| 559 |
chandransh |
7324 |
class deleteItemFromMyResearch_args:
|
| 130 |
ashish |
7325 |
"""
|
|
|
7326 |
Attributes:
|
| 772 |
rajveer |
7327 |
- userId
|
|
|
7328 |
- itemId
|
| 130 |
ashish |
7329 |
"""
|
| 94 |
ashish |
7330 |
|
| 130 |
ashish |
7331 |
thrift_spec = (
|
|
|
7332 |
None, # 0
|
| 772 |
rajveer |
7333 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
7334 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
| 130 |
ashish |
7335 |
)
|
|
|
7336 |
|
| 772 |
rajveer |
7337 |
def __init__(self, userId=None, itemId=None,):
|
|
|
7338 |
self.userId = userId
|
|
|
7339 |
self.itemId = itemId
|
| 130 |
ashish |
7340 |
|
|
|
7341 |
def read(self, iprot):
|
|
|
7342 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7343 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7344 |
return
|
|
|
7345 |
iprot.readStructBegin()
|
|
|
7346 |
while True:
|
|
|
7347 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7348 |
if ftype == TType.STOP:
|
|
|
7349 |
break
|
|
|
7350 |
if fid == 1:
|
|
|
7351 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7352 |
self.userId = iprot.readI64();
|
| 130 |
ashish |
7353 |
else:
|
|
|
7354 |
iprot.skip(ftype)
|
| 559 |
chandransh |
7355 |
elif fid == 2:
|
|
|
7356 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7357 |
self.itemId = iprot.readI64();
|
| 559 |
chandransh |
7358 |
else:
|
|
|
7359 |
iprot.skip(ftype)
|
| 130 |
ashish |
7360 |
else:
|
|
|
7361 |
iprot.skip(ftype)
|
|
|
7362 |
iprot.readFieldEnd()
|
|
|
7363 |
iprot.readStructEnd()
|
|
|
7364 |
|
|
|
7365 |
def write(self, oprot):
|
|
|
7366 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7367 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7368 |
return
|
| 559 |
chandransh |
7369 |
oprot.writeStructBegin('deleteItemFromMyResearch_args')
|
| 772 |
rajveer |
7370 |
if self.userId != None:
|
|
|
7371 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
7372 |
oprot.writeI64(self.userId)
|
| 130 |
ashish |
7373 |
oprot.writeFieldEnd()
|
| 772 |
rajveer |
7374 |
if self.itemId != None:
|
|
|
7375 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
7376 |
oprot.writeI64(self.itemId)
|
| 559 |
chandransh |
7377 |
oprot.writeFieldEnd()
|
| 130 |
ashish |
7378 |
oprot.writeFieldStop()
|
|
|
7379 |
oprot.writeStructEnd()
|
|
|
7380 |
|
|
|
7381 |
def __repr__(self):
|
|
|
7382 |
L = ['%s=%r' % (key, value)
|
|
|
7383 |
for key, value in self.__dict__.iteritems()]
|
|
|
7384 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7385 |
|
|
|
7386 |
def __eq__(self, other):
|
|
|
7387 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7388 |
|
|
|
7389 |
def __ne__(self, other):
|
|
|
7390 |
return not (self == other)
|
|
|
7391 |
|
| 559 |
chandransh |
7392 |
class deleteItemFromMyResearch_result:
|
| 130 |
ashish |
7393 |
"""
|
|
|
7394 |
Attributes:
|
| 559 |
chandransh |
7395 |
- scx
|
|
|
7396 |
"""
|
|
|
7397 |
|
|
|
7398 |
thrift_spec = (
|
|
|
7399 |
None, # 0
|
|
|
7400 |
(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
|
|
|
7401 |
)
|
|
|
7402 |
|
|
|
7403 |
def __init__(self, scx=None,):
|
|
|
7404 |
self.scx = scx
|
|
|
7405 |
|
|
|
7406 |
def read(self, iprot):
|
|
|
7407 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7408 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7409 |
return
|
|
|
7410 |
iprot.readStructBegin()
|
|
|
7411 |
while True:
|
|
|
7412 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7413 |
if ftype == TType.STOP:
|
|
|
7414 |
break
|
|
|
7415 |
if fid == 1:
|
|
|
7416 |
if ftype == TType.STRUCT:
|
|
|
7417 |
self.scx = WidgetException()
|
|
|
7418 |
self.scx.read(iprot)
|
|
|
7419 |
else:
|
|
|
7420 |
iprot.skip(ftype)
|
|
|
7421 |
else:
|
|
|
7422 |
iprot.skip(ftype)
|
|
|
7423 |
iprot.readFieldEnd()
|
|
|
7424 |
iprot.readStructEnd()
|
|
|
7425 |
|
|
|
7426 |
def write(self, oprot):
|
|
|
7427 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7428 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7429 |
return
|
|
|
7430 |
oprot.writeStructBegin('deleteItemFromMyResearch_result')
|
|
|
7431 |
if self.scx != None:
|
|
|
7432 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
7433 |
self.scx.write(oprot)
|
|
|
7434 |
oprot.writeFieldEnd()
|
|
|
7435 |
oprot.writeFieldStop()
|
|
|
7436 |
oprot.writeStructEnd()
|
|
|
7437 |
|
|
|
7438 |
def __repr__(self):
|
|
|
7439 |
L = ['%s=%r' % (key, value)
|
|
|
7440 |
for key, value in self.__dict__.iteritems()]
|
|
|
7441 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7442 |
|
|
|
7443 |
def __eq__(self, other):
|
|
|
7444 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7445 |
|
|
|
7446 |
def __ne__(self, other):
|
|
|
7447 |
return not (self == other)
|
|
|
7448 |
|
| 772 |
rajveer |
7449 |
class updateBrowseHistory_args:
|
| 559 |
chandransh |
7450 |
"""
|
|
|
7451 |
Attributes:
|
| 772 |
rajveer |
7452 |
- userId
|
|
|
7453 |
- itemId
|
| 559 |
chandransh |
7454 |
"""
|
|
|
7455 |
|
|
|
7456 |
thrift_spec = (
|
|
|
7457 |
None, # 0
|
| 772 |
rajveer |
7458 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
7459 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
| 559 |
chandransh |
7460 |
)
|
|
|
7461 |
|
| 772 |
rajveer |
7462 |
def __init__(self, userId=None, itemId=None,):
|
|
|
7463 |
self.userId = userId
|
|
|
7464 |
self.itemId = itemId
|
| 559 |
chandransh |
7465 |
|
|
|
7466 |
def read(self, iprot):
|
|
|
7467 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7468 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7469 |
return
|
|
|
7470 |
iprot.readStructBegin()
|
|
|
7471 |
while True:
|
|
|
7472 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7473 |
if ftype == TType.STOP:
|
|
|
7474 |
break
|
|
|
7475 |
if fid == 1:
|
|
|
7476 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7477 |
self.userId = iprot.readI64();
|
| 559 |
chandransh |
7478 |
else:
|
|
|
7479 |
iprot.skip(ftype)
|
|
|
7480 |
elif fid == 2:
|
|
|
7481 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7482 |
self.itemId = iprot.readI64();
|
| 559 |
chandransh |
7483 |
else:
|
|
|
7484 |
iprot.skip(ftype)
|
|
|
7485 |
else:
|
|
|
7486 |
iprot.skip(ftype)
|
|
|
7487 |
iprot.readFieldEnd()
|
|
|
7488 |
iprot.readStructEnd()
|
|
|
7489 |
|
|
|
7490 |
def write(self, oprot):
|
|
|
7491 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7492 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7493 |
return
|
| 772 |
rajveer |
7494 |
oprot.writeStructBegin('updateBrowseHistory_args')
|
|
|
7495 |
if self.userId != None:
|
|
|
7496 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
7497 |
oprot.writeI64(self.userId)
|
| 559 |
chandransh |
7498 |
oprot.writeFieldEnd()
|
| 772 |
rajveer |
7499 |
if self.itemId != None:
|
|
|
7500 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
7501 |
oprot.writeI64(self.itemId)
|
| 559 |
chandransh |
7502 |
oprot.writeFieldEnd()
|
|
|
7503 |
oprot.writeFieldStop()
|
|
|
7504 |
oprot.writeStructEnd()
|
|
|
7505 |
|
|
|
7506 |
def __repr__(self):
|
|
|
7507 |
L = ['%s=%r' % (key, value)
|
|
|
7508 |
for key, value in self.__dict__.iteritems()]
|
|
|
7509 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7510 |
|
|
|
7511 |
def __eq__(self, other):
|
|
|
7512 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7513 |
|
|
|
7514 |
def __ne__(self, other):
|
|
|
7515 |
return not (self == other)
|
|
|
7516 |
|
| 772 |
rajveer |
7517 |
class updateBrowseHistory_result:
|
| 559 |
chandransh |
7518 |
|
|
|
7519 |
thrift_spec = (
|
|
|
7520 |
)
|
|
|
7521 |
|
|
|
7522 |
def read(self, iprot):
|
|
|
7523 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7524 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7525 |
return
|
|
|
7526 |
iprot.readStructBegin()
|
|
|
7527 |
while True:
|
|
|
7528 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7529 |
if ftype == TType.STOP:
|
|
|
7530 |
break
|
|
|
7531 |
else:
|
|
|
7532 |
iprot.skip(ftype)
|
|
|
7533 |
iprot.readFieldEnd()
|
|
|
7534 |
iprot.readStructEnd()
|
|
|
7535 |
|
|
|
7536 |
def write(self, oprot):
|
|
|
7537 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7538 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7539 |
return
|
| 772 |
rajveer |
7540 |
oprot.writeStructBegin('updateBrowseHistory_result')
|
| 559 |
chandransh |
7541 |
oprot.writeFieldStop()
|
|
|
7542 |
oprot.writeStructEnd()
|
|
|
7543 |
|
|
|
7544 |
def __repr__(self):
|
|
|
7545 |
L = ['%s=%r' % (key, value)
|
|
|
7546 |
for key, value in self.__dict__.iteritems()]
|
|
|
7547 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7548 |
|
|
|
7549 |
def __eq__(self, other):
|
|
|
7550 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7551 |
|
|
|
7552 |
def __ne__(self, other):
|
|
|
7553 |
return not (self == other)
|
|
|
7554 |
|
| 772 |
rajveer |
7555 |
class getBrowseHistory_args:
|
| 559 |
chandransh |
7556 |
"""
|
|
|
7557 |
Attributes:
|
| 772 |
rajveer |
7558 |
- userId
|
| 559 |
chandransh |
7559 |
"""
|
|
|
7560 |
|
|
|
7561 |
thrift_spec = (
|
|
|
7562 |
None, # 0
|
| 772 |
rajveer |
7563 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 559 |
chandransh |
7564 |
)
|
|
|
7565 |
|
| 772 |
rajveer |
7566 |
def __init__(self, userId=None,):
|
|
|
7567 |
self.userId = userId
|
| 559 |
chandransh |
7568 |
|
|
|
7569 |
def read(self, iprot):
|
|
|
7570 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7571 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7572 |
return
|
|
|
7573 |
iprot.readStructBegin()
|
|
|
7574 |
while True:
|
|
|
7575 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7576 |
if ftype == TType.STOP:
|
|
|
7577 |
break
|
|
|
7578 |
if fid == 1:
|
|
|
7579 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7580 |
self.userId = iprot.readI64();
|
| 559 |
chandransh |
7581 |
else:
|
|
|
7582 |
iprot.skip(ftype)
|
|
|
7583 |
else:
|
|
|
7584 |
iprot.skip(ftype)
|
|
|
7585 |
iprot.readFieldEnd()
|
|
|
7586 |
iprot.readStructEnd()
|
|
|
7587 |
|
|
|
7588 |
def write(self, oprot):
|
|
|
7589 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7590 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7591 |
return
|
| 772 |
rajveer |
7592 |
oprot.writeStructBegin('getBrowseHistory_args')
|
|
|
7593 |
if self.userId != None:
|
|
|
7594 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
7595 |
oprot.writeI64(self.userId)
|
| 559 |
chandransh |
7596 |
oprot.writeFieldEnd()
|
|
|
7597 |
oprot.writeFieldStop()
|
|
|
7598 |
oprot.writeStructEnd()
|
|
|
7599 |
|
|
|
7600 |
def __repr__(self):
|
|
|
7601 |
L = ['%s=%r' % (key, value)
|
|
|
7602 |
for key, value in self.__dict__.iteritems()]
|
|
|
7603 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7604 |
|
|
|
7605 |
def __eq__(self, other):
|
|
|
7606 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7607 |
|
|
|
7608 |
def __ne__(self, other):
|
|
|
7609 |
return not (self == other)
|
|
|
7610 |
|
| 772 |
rajveer |
7611 |
class getBrowseHistory_result:
|
| 559 |
chandransh |
7612 |
"""
|
|
|
7613 |
Attributes:
|
| 130 |
ashish |
7614 |
- success
|
| 559 |
chandransh |
7615 |
- scx
|
| 130 |
ashish |
7616 |
"""
|
|
|
7617 |
|
|
|
7618 |
thrift_spec = (
|
| 772 |
rajveer |
7619 |
(0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
|
| 559 |
chandransh |
7620 |
(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
|
| 130 |
ashish |
7621 |
)
|
|
|
7622 |
|
| 559 |
chandransh |
7623 |
def __init__(self, success=None, scx=None,):
|
| 130 |
ashish |
7624 |
self.success = success
|
| 559 |
chandransh |
7625 |
self.scx = scx
|
| 130 |
ashish |
7626 |
|
|
|
7627 |
def read(self, iprot):
|
|
|
7628 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7629 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7630 |
return
|
|
|
7631 |
iprot.readStructBegin()
|
|
|
7632 |
while True:
|
|
|
7633 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7634 |
if ftype == TType.STOP:
|
|
|
7635 |
break
|
|
|
7636 |
if fid == 0:
|
| 559 |
chandransh |
7637 |
if ftype == TType.STRUCT:
|
| 772 |
rajveer |
7638 |
self.success = Widget()
|
| 559 |
chandransh |
7639 |
self.success.read(iprot)
|
| 130 |
ashish |
7640 |
else:
|
|
|
7641 |
iprot.skip(ftype)
|
|
|
7642 |
elif fid == 1:
|
|
|
7643 |
if ftype == TType.STRUCT:
|
| 559 |
chandransh |
7644 |
self.scx = WidgetException()
|
|
|
7645 |
self.scx.read(iprot)
|
| 130 |
ashish |
7646 |
else:
|
|
|
7647 |
iprot.skip(ftype)
|
|
|
7648 |
else:
|
|
|
7649 |
iprot.skip(ftype)
|
|
|
7650 |
iprot.readFieldEnd()
|
|
|
7651 |
iprot.readStructEnd()
|
|
|
7652 |
|
|
|
7653 |
def write(self, oprot):
|
|
|
7654 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7655 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7656 |
return
|
| 772 |
rajveer |
7657 |
oprot.writeStructBegin('getBrowseHistory_result')
|
| 130 |
ashish |
7658 |
if self.success != None:
|
| 559 |
chandransh |
7659 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
7660 |
self.success.write(oprot)
|
| 130 |
ashish |
7661 |
oprot.writeFieldEnd()
|
| 559 |
chandransh |
7662 |
if self.scx != None:
|
|
|
7663 |
oprot.writeFieldBegin('scx', TType.STRUCT, 1)
|
|
|
7664 |
self.scx.write(oprot)
|
| 130 |
ashish |
7665 |
oprot.writeFieldEnd()
|
|
|
7666 |
oprot.writeFieldStop()
|
|
|
7667 |
oprot.writeStructEnd()
|
|
|
7668 |
|
|
|
7669 |
def __repr__(self):
|
|
|
7670 |
L = ['%s=%r' % (key, value)
|
|
|
7671 |
for key, value in self.__dict__.iteritems()]
|
|
|
7672 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7673 |
|
|
|
7674 |
def __eq__(self, other):
|
|
|
7675 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7676 |
|
|
|
7677 |
def __ne__(self, other):
|
|
|
7678 |
return not (self == other)
|
|
|
7679 |
|
| 772 |
rajveer |
7680 |
class mergeBrowseHistory_args:
|
| 130 |
ashish |
7681 |
"""
|
|
|
7682 |
Attributes:
|
| 772 |
rajveer |
7683 |
- fromUserId
|
|
|
7684 |
- toUserId
|
| 130 |
ashish |
7685 |
"""
|
|
|
7686 |
|
|
|
7687 |
thrift_spec = (
|
|
|
7688 |
None, # 0
|
| 772 |
rajveer |
7689 |
(1, TType.I64, 'fromUserId', None, None, ), # 1
|
|
|
7690 |
(2, TType.I64, 'toUserId', None, None, ), # 2
|
| 130 |
ashish |
7691 |
)
|
|
|
7692 |
|
| 772 |
rajveer |
7693 |
def __init__(self, fromUserId=None, toUserId=None,):
|
|
|
7694 |
self.fromUserId = fromUserId
|
|
|
7695 |
self.toUserId = toUserId
|
| 130 |
ashish |
7696 |
|
|
|
7697 |
def read(self, iprot):
|
|
|
7698 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7699 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7700 |
return
|
|
|
7701 |
iprot.readStructBegin()
|
|
|
7702 |
while True:
|
|
|
7703 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7704 |
if ftype == TType.STOP:
|
|
|
7705 |
break
|
|
|
7706 |
if fid == 1:
|
| 559 |
chandransh |
7707 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7708 |
self.fromUserId = iprot.readI64();
|
| 130 |
ashish |
7709 |
else:
|
|
|
7710 |
iprot.skip(ftype)
|
|
|
7711 |
elif fid == 2:
|
| 559 |
chandransh |
7712 |
if ftype == TType.I64:
|
| 772 |
rajveer |
7713 |
self.toUserId = iprot.readI64();
|
| 559 |
chandransh |
7714 |
else:
|
|
|
7715 |
iprot.skip(ftype)
|
| 130 |
ashish |
7716 |
else:
|
|
|
7717 |
iprot.skip(ftype)
|
|
|
7718 |
iprot.readFieldEnd()
|
|
|
7719 |
iprot.readStructEnd()
|
|
|
7720 |
|
|
|
7721 |
def write(self, oprot):
|
|
|
7722 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7723 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7724 |
return
|
| 772 |
rajveer |
7725 |
oprot.writeStructBegin('mergeBrowseHistory_args')
|
|
|
7726 |
if self.fromUserId != None:
|
|
|
7727 |
oprot.writeFieldBegin('fromUserId', TType.I64, 1)
|
|
|
7728 |
oprot.writeI64(self.fromUserId)
|
| 130 |
ashish |
7729 |
oprot.writeFieldEnd()
|
| 772 |
rajveer |
7730 |
if self.toUserId != None:
|
|
|
7731 |
oprot.writeFieldBegin('toUserId', TType.I64, 2)
|
|
|
7732 |
oprot.writeI64(self.toUserId)
|
| 130 |
ashish |
7733 |
oprot.writeFieldEnd()
|
|
|
7734 |
oprot.writeFieldStop()
|
|
|
7735 |
oprot.writeStructEnd()
|
|
|
7736 |
|
|
|
7737 |
def __repr__(self):
|
|
|
7738 |
L = ['%s=%r' % (key, value)
|
|
|
7739 |
for key, value in self.__dict__.iteritems()]
|
|
|
7740 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7741 |
|
|
|
7742 |
def __eq__(self, other):
|
|
|
7743 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7744 |
|
|
|
7745 |
def __ne__(self, other):
|
|
|
7746 |
return not (self == other)
|
|
|
7747 |
|
| 772 |
rajveer |
7748 |
class mergeBrowseHistory_result:
|
| 559 |
chandransh |
7749 |
|
|
|
7750 |
thrift_spec = (
|
|
|
7751 |
)
|
|
|
7752 |
|
|
|
7753 |
def read(self, iprot):
|
|
|
7754 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7755 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7756 |
return
|
|
|
7757 |
iprot.readStructBegin()
|
|
|
7758 |
while True:
|
|
|
7759 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7760 |
if ftype == TType.STOP:
|
|
|
7761 |
break
|
|
|
7762 |
else:
|
|
|
7763 |
iprot.skip(ftype)
|
|
|
7764 |
iprot.readFieldEnd()
|
|
|
7765 |
iprot.readStructEnd()
|
|
|
7766 |
|
|
|
7767 |
def write(self, oprot):
|
|
|
7768 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7769 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7770 |
return
|
| 772 |
rajveer |
7771 |
oprot.writeStructBegin('mergeBrowseHistory_result')
|
| 559 |
chandransh |
7772 |
oprot.writeFieldStop()
|
|
|
7773 |
oprot.writeStructEnd()
|
|
|
7774 |
|
|
|
7775 |
def __repr__(self):
|
|
|
7776 |
L = ['%s=%r' % (key, value)
|
|
|
7777 |
for key, value in self.__dict__.iteritems()]
|
|
|
7778 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7779 |
|
|
|
7780 |
def __eq__(self, other):
|
|
|
7781 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7782 |
|
|
|
7783 |
def __ne__(self, other):
|
|
|
7784 |
return not (self == other)
|
|
|
7785 |
|
|
|
7786 |
|