Subversion Repositories SmartDukaan

Rev

Rev 4668 | Rev 5334 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4668 Rev 5326
Line 32... Line 32...
32
    Parameters:
32
    Parameters:
33
     - userId
33
     - userId
34
    """
34
    """
35
    pass
35
    pass
36
 
36
 
-
 
37
  def getUserByCartId(self, cartId):
-
 
38
    """
-
 
39
    Parameters:
-
 
40
     - cartId
-
 
41
    """
-
 
42
    pass
-
 
43
 
37
  def getUserByEmail(self, email):
44
  def getUserByEmail(self, email):
38
    """
45
    """
39
    Parameters:
46
    Parameters:
40
     - email
47
     - email
41
    """
48
    """
Line 67... Line 74...
67
    Parameters:
74
    Parameters:
68
     - userId
75
     - userId
69
    """
76
    """
70
    pass
77
    pass
71
 
78
 
72
  def getUserState(self, userId):
-
 
73
    """
-
 
74
    Parameters:
-
 
75
     - userId
-
 
76
    """
-
 
77
    pass
-
 
78
 
-
 
79
  def authenticateUser(self, email, password):
79
  def authenticateUser(self, email, password):
80
    """
80
    """
81
    Parameters:
81
    Parameters:
82
     - email
82
     - email
83
     - password
83
     - password
Line 334... Line 334...
334
    Parameters:
334
    Parameters:
335
     - cartId
335
     - cartId
336
    """
336
    """
337
    pass
337
    pass
338
 
338
 
339
  def getCartsForUser(self, userId, status):
-
 
340
    """
-
 
341
    Parameters:
-
 
342
     - userId
-
 
343
     - status
-
 
344
    """
-
 
345
    pass
-
 
346
 
-
 
347
  def getCartsByStatus(self, status):
-
 
348
    """
-
 
349
    Parameters:
-
 
350
     - status
-
 
351
    """
-
 
352
    pass
-
 
353
 
-
 
354
  def getCartsByTime(self, from_time, to_time, status):
339
  def getCartsByTime(self, from_time, to_time, status):
355
    """
340
    """
356
    Parameters:
341
    Parameters:
357
     - from_time
342
     - from_time
358
     - to_time
343
     - to_time
359
     - status
344
     - status
360
    """
345
    """
361
    pass
346
    pass
362
 
347
 
363
  def changeCartStatus(self, cartId, status):
-
 
364
    """
-
 
365
    Parameters:
-
 
366
     - cartId
-
 
367
     - status
-
 
368
    """
-
 
369
    pass
-
 
370
 
-
 
371
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
348
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
372
    """
349
    """
373
    Parameters:
350
    Parameters:
374
     - cartId
351
     - cartId
375
     - itemId
352
     - itemId
Line 436... Line 413...
436
    Parameters:
413
    Parameters:
437
     - discounts
414
     - discounts
438
    """
415
    """
439
    pass
416
    pass
440
 
417
 
441
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
418
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
442
    """
419
    """
443
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
420
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
444
 
421
 
445
    Parameters:
422
    Parameters:
446
     - cartId
423
     - cartId
447
     - sessionSource
424
     - sessionSource
448
     - sessionStartTime
425
     - sessionStartTime
449
     - firstSource
426
     - firstSource
450
     - firstSourceTime
427
     - firstSourceTime
-
 
428
     - userId
451
    """
429
    """
452
    pass
430
    pass
453
 
431
 
454
  def validateCart(self, cartId, sourceId):
432
  def validateCart(self, cartId, sourceId):
455
    """
433
    """
Line 687... Line 665...
687
      return result.success
665
      return result.success
688
    if result.ucex is not None:
666
    if result.ucex is not None:
689
      raise result.ucex
667
      raise result.ucex
690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
691
 
669
 
-
 
670
  def getUserByCartId(self, cartId):
-
 
671
    """
-
 
672
    Parameters:
-
 
673
     - cartId
-
 
674
    """
-
 
675
    self.send_getUserByCartId(cartId)
-
 
676
    return self.recv_getUserByCartId()
-
 
677
 
-
 
678
  def send_getUserByCartId(self, cartId):
-
 
679
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
-
 
680
    args = getUserByCartId_args()
-
 
681
    args.cartId = cartId
-
 
682
    args.write(self._oprot)
-
 
683
    self._oprot.writeMessageEnd()
-
 
684
    self._oprot.trans.flush()
-
 
685
 
-
 
686
  def recv_getUserByCartId(self, ):
-
 
687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
688
    if mtype == TMessageType.EXCEPTION:
-
 
689
      x = TApplicationException()
-
 
690
      x.read(self._iprot)
-
 
691
      self._iprot.readMessageEnd()
-
 
692
      raise x
-
 
693
    result = getUserByCartId_result()
-
 
694
    result.read(self._iprot)
-
 
695
    self._iprot.readMessageEnd()
-
 
696
    if result.success is not None:
-
 
697
      return result.success
-
 
698
    if result.ucex is not None:
-
 
699
      raise result.ucex
-
 
700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
-
 
701
 
692
  def getUserByEmail(self, email):
702
  def getUserByEmail(self, email):
693
    """
703
    """
694
    Parameters:
704
    Parameters:
695
     - email
705
     - email
696
    """
706
    """
Line 847... Line 857...
847
      return result.success
857
      return result.success
848
    if result.ucex is not None:
858
    if result.ucex is not None:
849
      raise result.ucex
859
      raise result.ucex
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
851
 
861
 
852
  def getUserState(self, userId):
-
 
853
    """
-
 
854
    Parameters:
-
 
855
     - userId
-
 
856
    """
-
 
857
    self.send_getUserState(userId)
-
 
858
    return self.recv_getUserState()
-
 
859
 
-
 
860
  def send_getUserState(self, userId):
-
 
861
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
-
 
862
    args = getUserState_args()
-
 
863
    args.userId = userId
-
 
864
    args.write(self._oprot)
-
 
865
    self._oprot.writeMessageEnd()
-
 
866
    self._oprot.trans.flush()
-
 
867
 
-
 
868
  def recv_getUserState(self, ):
-
 
869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
870
    if mtype == TMessageType.EXCEPTION:
-
 
871
      x = TApplicationException()
-
 
872
      x.read(self._iprot)
-
 
873
      self._iprot.readMessageEnd()
-
 
874
      raise x
-
 
875
    result = getUserState_result()
-
 
876
    result.read(self._iprot)
-
 
877
    self._iprot.readMessageEnd()
-
 
878
    if result.success is not None:
-
 
879
      return result.success
-
 
880
    if result.ucex is not None:
-
 
881
      raise result.ucex
-
 
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
-
 
883
 
-
 
884
  def authenticateUser(self, email, password):
862
  def authenticateUser(self, email, password):
885
    """
863
    """
886
    Parameters:
864
    Parameters:
887
     - email
865
     - email
888
     - password
866
     - password
Line 2017... Line 1995...
2017
      return result.success
1995
      return result.success
2018
    if result.scx is not None:
1996
    if result.scx is not None:
2019
      raise result.scx
1997
      raise result.scx
2020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
1998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
2021
 
1999
 
2022
  def getCartsForUser(self, userId, status):
-
 
2023
    """
-
 
2024
    Parameters:
-
 
2025
     - userId
-
 
2026
     - status
-
 
2027
    """
-
 
2028
    self.send_getCartsForUser(userId, status)
-
 
2029
    return self.recv_getCartsForUser()
-
 
2030
 
-
 
2031
  def send_getCartsForUser(self, userId, status):
-
 
2032
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
-
 
2033
    args = getCartsForUser_args()
-
 
2034
    args.userId = userId
-
 
2035
    args.status = status
-
 
2036
    args.write(self._oprot)
-
 
2037
    self._oprot.writeMessageEnd()
-
 
2038
    self._oprot.trans.flush()
-
 
2039
 
-
 
2040
  def recv_getCartsForUser(self, ):
-
 
2041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2042
    if mtype == TMessageType.EXCEPTION:
-
 
2043
      x = TApplicationException()
-
 
2044
      x.read(self._iprot)
-
 
2045
      self._iprot.readMessageEnd()
-
 
2046
      raise x
-
 
2047
    result = getCartsForUser_result()
-
 
2048
    result.read(self._iprot)
-
 
2049
    self._iprot.readMessageEnd()
-
 
2050
    if result.success is not None:
-
 
2051
      return result.success
-
 
2052
    if result.scx is not None:
-
 
2053
      raise result.scx
-
 
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
-
 
2055
 
-
 
2056
  def getCartsByStatus(self, status):
-
 
2057
    """
-
 
2058
    Parameters:
-
 
2059
     - status
-
 
2060
    """
-
 
2061
    self.send_getCartsByStatus(status)
-
 
2062
    return self.recv_getCartsByStatus()
-
 
2063
 
-
 
2064
  def send_getCartsByStatus(self, status):
-
 
2065
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
-
 
2066
    args = getCartsByStatus_args()
-
 
2067
    args.status = status
-
 
2068
    args.write(self._oprot)
-
 
2069
    self._oprot.writeMessageEnd()
-
 
2070
    self._oprot.trans.flush()
-
 
2071
 
-
 
2072
  def recv_getCartsByStatus(self, ):
-
 
2073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2074
    if mtype == TMessageType.EXCEPTION:
-
 
2075
      x = TApplicationException()
-
 
2076
      x.read(self._iprot)
-
 
2077
      self._iprot.readMessageEnd()
-
 
2078
      raise x
-
 
2079
    result = getCartsByStatus_result()
-
 
2080
    result.read(self._iprot)
-
 
2081
    self._iprot.readMessageEnd()
-
 
2082
    if result.success is not None:
-
 
2083
      return result.success
-
 
2084
    if result.scx is not None:
-
 
2085
      raise result.scx
-
 
2086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
-
 
2087
 
-
 
2088
  def getCartsByTime(self, from_time, to_time, status):
2000
  def getCartsByTime(self, from_time, to_time, status):
2089
    """
2001
    """
2090
    Parameters:
2002
    Parameters:
2091
     - from_time
2003
     - from_time
2092
     - to_time
2004
     - to_time
Line 2119... Line 2031...
2119
      return result.success
2031
      return result.success
2120
    if result.scx is not None:
2032
    if result.scx is not None:
2121
      raise result.scx
2033
      raise result.scx
2122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
2034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
2123
 
2035
 
2124
  def changeCartStatus(self, cartId, status):
-
 
2125
    """
-
 
2126
    Parameters:
-
 
2127
     - cartId
-
 
2128
     - status
-
 
2129
    """
-
 
2130
    self.send_changeCartStatus(cartId, status)
-
 
2131
    self.recv_changeCartStatus()
-
 
2132
 
-
 
2133
  def send_changeCartStatus(self, cartId, status):
-
 
2134
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
-
 
2135
    args = changeCartStatus_args()
-
 
2136
    args.cartId = cartId
-
 
2137
    args.status = status
-
 
2138
    args.write(self._oprot)
-
 
2139
    self._oprot.writeMessageEnd()
-
 
2140
    self._oprot.trans.flush()
-
 
2141
 
-
 
2142
  def recv_changeCartStatus(self, ):
-
 
2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2144
    if mtype == TMessageType.EXCEPTION:
-
 
2145
      x = TApplicationException()
-
 
2146
      x.read(self._iprot)
-
 
2147
      self._iprot.readMessageEnd()
-
 
2148
      raise x
-
 
2149
    result = changeCartStatus_result()
-
 
2150
    result.read(self._iprot)
-
 
2151
    self._iprot.readMessageEnd()
-
 
2152
    if result.scx is not None:
-
 
2153
      raise result.scx
-
 
2154
    return
-
 
2155
 
-
 
2156
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
2036
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
2157
    """
2037
    """
2158
    Parameters:
2038
    Parameters:
2159
     - cartId
2039
     - cartId
2160
     - itemId
2040
     - itemId
Line 2417... Line 2297...
2417
    self._iprot.readMessageEnd()
2297
    self._iprot.readMessageEnd()
2418
    if result.scx is not None:
2298
    if result.scx is not None:
2419
      raise result.scx
2299
      raise result.scx
2420
    return
2300
    return
2421
 
2301
 
2422
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
2302
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
2423
    """
2303
    """
2424
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2304
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2425
 
2305
 
2426
    Parameters:
2306
    Parameters:
2427
     - cartId
2307
     - cartId
2428
     - sessionSource
2308
     - sessionSource
2429
     - sessionStartTime
2309
     - sessionStartTime
2430
     - firstSource
2310
     - firstSource
2431
     - firstSourceTime
2311
     - firstSourceTime
-
 
2312
     - userId
2432
    """
2313
    """
2433
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime)
2314
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
2434
    return self.recv_createOrders()
2315
    return self.recv_createOrders()
2435
 
2316
 
2436
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
2317
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
2437
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2318
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2438
    args = createOrders_args()
2319
    args = createOrders_args()
2439
    args.cartId = cartId
2320
    args.cartId = cartId
2440
    args.sessionSource = sessionSource
2321
    args.sessionSource = sessionSource
2441
    args.sessionStartTime = sessionStartTime
2322
    args.sessionStartTime = sessionStartTime
2442
    args.firstSource = firstSource
2323
    args.firstSource = firstSource
2443
    args.firstSourceTime = firstSourceTime
2324
    args.firstSourceTime = firstSourceTime
-
 
2325
    args.userId = userId
2444
    args.write(self._oprot)
2326
    args.write(self._oprot)
2445
    self._oprot.writeMessageEnd()
2327
    self._oprot.writeMessageEnd()
2446
    self._oprot.trans.flush()
2328
    self._oprot.trans.flush()
2447
 
2329
 
2448
  def recv_createOrders(self, ):
2330
  def recv_createOrders(self, ):
Line 3004... Line 2886...
3004
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2886
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3005
  def __init__(self, handler):
2887
  def __init__(self, handler):
3006
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2888
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3007
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2889
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3008
    self._processMap["getUserById"] = Processor.process_getUserById
2890
    self._processMap["getUserById"] = Processor.process_getUserById
-
 
2891
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
3009
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
2892
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3010
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
2893
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
3011
    self._processMap["createUser"] = Processor.process_createUser
2894
    self._processMap["createUser"] = Processor.process_createUser
3012
    self._processMap["updateUser"] = Processor.process_updateUser
2895
    self._processMap["updateUser"] = Processor.process_updateUser
3013
    self._processMap["deleteUser"] = Processor.process_deleteUser
2896
    self._processMap["deleteUser"] = Processor.process_deleteUser
3014
    self._processMap["getUserState"] = Processor.process_getUserState
-
 
3015
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
2897
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
3016
    self._processMap["userExists"] = Processor.process_userExists
2898
    self._processMap["userExists"] = Processor.process_userExists
3017
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2899
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3018
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2900
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3019
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2901
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
Line 3044... Line 2926...
3044
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2926
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3045
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
2927
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
3046
    self._processMap["createCart"] = Processor.process_createCart
2928
    self._processMap["createCart"] = Processor.process_createCart
3047
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2929
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3048
    self._processMap["getCart"] = Processor.process_getCart
2930
    self._processMap["getCart"] = Processor.process_getCart
3049
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
-
 
3050
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
-
 
3051
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2931
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3052
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
-
 
3053
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2932
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3054
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2933
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3055
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2934
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3056
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
2935
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
3057
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2936
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
Line 3117... Line 2996...
3117
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
2996
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
3118
    result.write(oprot)
2997
    result.write(oprot)
3119
    oprot.writeMessageEnd()
2998
    oprot.writeMessageEnd()
3120
    oprot.trans.flush()
2999
    oprot.trans.flush()
3121
 
3000
 
-
 
3001
  def process_getUserByCartId(self, seqid, iprot, oprot):
-
 
3002
    args = getUserByCartId_args()
-
 
3003
    args.read(iprot)
-
 
3004
    iprot.readMessageEnd()
-
 
3005
    result = getUserByCartId_result()
-
 
3006
    try:
-
 
3007
      result.success = self._handler.getUserByCartId(args.cartId)
-
 
3008
    except UserContextException, ucex:
-
 
3009
      result.ucex = ucex
-
 
3010
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
-
 
3011
    result.write(oprot)
-
 
3012
    oprot.writeMessageEnd()
-
 
3013
    oprot.trans.flush()
-
 
3014
 
3122
  def process_getUserByEmail(self, seqid, iprot, oprot):
3015
  def process_getUserByEmail(self, seqid, iprot, oprot):
3123
    args = getUserByEmail_args()
3016
    args = getUserByEmail_args()
3124
    args.read(iprot)
3017
    args.read(iprot)
3125
    iprot.readMessageEnd()
3018
    iprot.readMessageEnd()
3126
    result = getUserByEmail_result()
3019
    result = getUserByEmail_result()
Line 3187... Line 3080...
3187
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
3080
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
3188
    result.write(oprot)
3081
    result.write(oprot)
3189
    oprot.writeMessageEnd()
3082
    oprot.writeMessageEnd()
3190
    oprot.trans.flush()
3083
    oprot.trans.flush()
3191
 
3084
 
3192
  def process_getUserState(self, seqid, iprot, oprot):
-
 
3193
    args = getUserState_args()
-
 
3194
    args.read(iprot)
-
 
3195
    iprot.readMessageEnd()
-
 
3196
    result = getUserState_result()
-
 
3197
    try:
-
 
3198
      result.success = self._handler.getUserState(args.userId)
-
 
3199
    except UserContextException, ucex:
-
 
3200
      result.ucex = ucex
-
 
3201
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
-
 
3202
    result.write(oprot)
-
 
3203
    oprot.writeMessageEnd()
-
 
3204
    oprot.trans.flush()
-
 
3205
 
-
 
3206
  def process_authenticateUser(self, seqid, iprot, oprot):
3085
  def process_authenticateUser(self, seqid, iprot, oprot):
3207
    args = authenticateUser_args()
3086
    args = authenticateUser_args()
3208
    args.read(iprot)
3087
    args.read(iprot)
3209
    iprot.readMessageEnd()
3088
    iprot.readMessageEnd()
3210
    result = authenticateUser_result()
3089
    result = authenticateUser_result()
Line 3677... Line 3556...
3677
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
3556
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
3678
    result.write(oprot)
3557
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3558
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3559
    oprot.trans.flush()
3681
 
3560
 
3682
  def process_getCartsForUser(self, seqid, iprot, oprot):
-
 
3683
    args = getCartsForUser_args()
-
 
3684
    args.read(iprot)
-
 
3685
    iprot.readMessageEnd()
-
 
3686
    result = getCartsForUser_result()
-
 
3687
    try:
-
 
3688
      result.success = self._handler.getCartsForUser(args.userId, args.status)
-
 
3689
    except ShoppingCartException, scx:
-
 
3690
      result.scx = scx
-
 
3691
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
-
 
3692
    result.write(oprot)
-
 
3693
    oprot.writeMessageEnd()
-
 
3694
    oprot.trans.flush()
-
 
3695
 
-
 
3696
  def process_getCartsByStatus(self, seqid, iprot, oprot):
-
 
3697
    args = getCartsByStatus_args()
-
 
3698
    args.read(iprot)
-
 
3699
    iprot.readMessageEnd()
-
 
3700
    result = getCartsByStatus_result()
-
 
3701
    try:
-
 
3702
      result.success = self._handler.getCartsByStatus(args.status)
-
 
3703
    except ShoppingCartException, scx:
-
 
3704
      result.scx = scx
-
 
3705
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
-
 
3706
    result.write(oprot)
-
 
3707
    oprot.writeMessageEnd()
-
 
3708
    oprot.trans.flush()
-
 
3709
 
-
 
3710
  def process_getCartsByTime(self, seqid, iprot, oprot):
3561
  def process_getCartsByTime(self, seqid, iprot, oprot):
3711
    args = getCartsByTime_args()
3562
    args = getCartsByTime_args()
3712
    args.read(iprot)
3563
    args.read(iprot)
3713
    iprot.readMessageEnd()
3564
    iprot.readMessageEnd()
3714
    result = getCartsByTime_result()
3565
    result = getCartsByTime_result()
Line 3719... Line 3570...
3719
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
3570
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
3720
    result.write(oprot)
3571
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3572
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
3573
    oprot.trans.flush()
3723
 
3574
 
3724
  def process_changeCartStatus(self, seqid, iprot, oprot):
-
 
3725
    args = changeCartStatus_args()
-
 
3726
    args.read(iprot)
-
 
3727
    iprot.readMessageEnd()
-
 
3728
    result = changeCartStatus_result()
-
 
3729
    try:
-
 
3730
      self._handler.changeCartStatus(args.cartId, args.status)
-
 
3731
    except ShoppingCartException, scx:
-
 
3732
      result.scx = scx
-
 
3733
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
-
 
3734
    result.write(oprot)
-
 
3735
    oprot.writeMessageEnd()
-
 
3736
    oprot.trans.flush()
-
 
3737
 
-
 
3738
  def process_addItemToCart(self, seqid, iprot, oprot):
3575
  def process_addItemToCart(self, seqid, iprot, oprot):
3739
    args = addItemToCart_args()
3576
    args = addItemToCart_args()
3740
    args.read(iprot)
3577
    args.read(iprot)
3741
    iprot.readMessageEnd()
3578
    iprot.readMessageEnd()
3742
    result = addItemToCart_result()
3579
    result = addItemToCart_result()
Line 3851... Line 3688...
3851
    args = createOrders_args()
3688
    args = createOrders_args()
3852
    args.read(iprot)
3689
    args.read(iprot)
3853
    iprot.readMessageEnd()
3690
    iprot.readMessageEnd()
3854
    result = createOrders_result()
3691
    result = createOrders_result()
3855
    try:
3692
    try:
3856
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime)
3693
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
3857
    except ShoppingCartException, scx:
3694
    except ShoppingCartException, scx:
3858
      result.scx = scx
3695
      result.scx = scx
3859
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
3696
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
3860
    result.write(oprot)
3697
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3698
    oprot.writeMessageEnd()
Line 4321... Line 4158...
4321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4322
 
4159
 
4323
  def __ne__(self, other):
4160
  def __ne__(self, other):
4324
    return not (self == other)
4161
    return not (self == other)
4325
 
4162
 
4326
class getUserByEmail_args:
4163
class getUserByCartId_args:
4327
  """
4164
  """
4328
  Attributes:
4165
  Attributes:
4329
   - email
4166
   - cartId
4330
  """
4167
  """
4331
 
4168
 
4332
  thrift_spec = (
4169
  thrift_spec = (
4333
    None, # 0
4170
    None, # 0
4334
    (1, TType.STRING, 'email', None, None, ), # 1
4171
    (1, TType.I64, 'cartId', None, None, ), # 1
4335
  )
4172
  )
4336
 
4173
 
4337
  def __init__(self, email=None,):
4174
  def __init__(self, cartId=None,):
4338
    self.email = email
4175
    self.cartId = cartId
4339
 
4176
 
4340
  def read(self, iprot):
4177
  def read(self, iprot):
4341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4343
      return
4180
      return
Line 4345... Line 4182...
4345
    while True:
4182
    while True:
4346
      (fname, ftype, fid) = iprot.readFieldBegin()
4183
      (fname, ftype, fid) = iprot.readFieldBegin()
4347
      if ftype == TType.STOP:
4184
      if ftype == TType.STOP:
4348
        break
4185
        break
4349
      if fid == 1:
4186
      if fid == 1:
4350
        if ftype == TType.STRING:
4187
        if ftype == TType.I64:
4351
          self.email = iprot.readString();
4188
          self.cartId = iprot.readI64();
4352
        else:
4189
        else:
4353
          iprot.skip(ftype)
4190
          iprot.skip(ftype)
4354
      else:
4191
      else:
4355
        iprot.skip(ftype)
4192
        iprot.skip(ftype)
4356
      iprot.readFieldEnd()
4193
      iprot.readFieldEnd()
Line 4358... Line 4195...
4358
 
4195
 
4359
  def write(self, oprot):
4196
  def write(self, oprot):
4360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4362
      return
4199
      return
4363
    oprot.writeStructBegin('getUserByEmail_args')
4200
    oprot.writeStructBegin('getUserByCartId_args')
4364
    if self.email is not None:
4201
    if self.cartId is not None:
4365
      oprot.writeFieldBegin('email', TType.STRING, 1)
4202
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4366
      oprot.writeString(self.email)
4203
      oprot.writeI64(self.cartId)
4367
      oprot.writeFieldEnd()
4204
      oprot.writeFieldEnd()
4368
    oprot.writeFieldStop()
4205
    oprot.writeFieldStop()
4369
    oprot.writeStructEnd()
4206
    oprot.writeStructEnd()
4370
 
4207
 
4371
  def validate(self):
4208
  def validate(self):
Line 4381... Line 4218...
4381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4382
 
4219
 
4383
  def __ne__(self, other):
4220
  def __ne__(self, other):
4384
    return not (self == other)
4221
    return not (self == other)
4385
 
4222
 
4386
class getUserByEmail_result:
4223
class getUserByCartId_result:
4387
  """
4224
  """
4388
  Attributes:
4225
  Attributes:
4389
   - success
4226
   - success
4390
   - ucex
4227
   - ucex
4391
  """
4228
  """
Line 4427... Line 4264...
4427
 
4264
 
4428
  def write(self, oprot):
4265
  def write(self, oprot):
4429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4431
      return
4268
      return
4432
    oprot.writeStructBegin('getUserByEmail_result')
4269
    oprot.writeStructBegin('getUserByCartId_result')
4433
    if self.success is not None:
4270
    if self.success is not None:
4434
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4271
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4435
      self.success.write(oprot)
4272
      self.success.write(oprot)
4436
      oprot.writeFieldEnd()
4273
      oprot.writeFieldEnd()
4437
    if self.ucex is not None:
4274
    if self.ucex is not None:
Line 4454... Line 4291...
4454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4455
 
4292
 
4456
  def __ne__(self, other):
4293
  def __ne__(self, other):
4457
    return not (self == other)
4294
    return not (self == other)
4458
 
4295
 
4459
class getUserByMobileNumber_args:
4296
class getUserByEmail_args:
4460
  """
4297
  """
4461
  Attributes:
4298
  Attributes:
4462
   - mobileNumber
4299
   - email
4463
  """
4300
  """
4464
 
4301
 
4465
  thrift_spec = (
4302
  thrift_spec = (
4466
    None, # 0
4303
    None, # 0
4467
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4304
    (1, TType.STRING, 'email', None, None, ), # 1
4468
  )
4305
  )
4469
 
4306
 
4470
  def __init__(self, mobileNumber=None,):
4307
  def __init__(self, email=None,):
4471
    self.mobileNumber = mobileNumber
4308
    self.email = email
4472
 
4309
 
4473
  def read(self, iprot):
4310
  def read(self, iprot):
4474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4476
      return
4313
      return
Line 4478... Line 4315...
4478
    while True:
4315
    while True:
4479
      (fname, ftype, fid) = iprot.readFieldBegin()
4316
      (fname, ftype, fid) = iprot.readFieldBegin()
4480
      if ftype == TType.STOP:
4317
      if ftype == TType.STOP:
4481
        break
4318
        break
4482
      if fid == 1:
4319
      if fid == 1:
4483
        if ftype == TType.I64:
4320
        if ftype == TType.STRING:
4484
          self.mobileNumber = iprot.readI64();
4321
          self.email = iprot.readString();
4485
        else:
4322
        else:
4486
          iprot.skip(ftype)
4323
          iprot.skip(ftype)
4487
      else:
4324
      else:
4488
        iprot.skip(ftype)
4325
        iprot.skip(ftype)
4489
      iprot.readFieldEnd()
4326
      iprot.readFieldEnd()
Line 4491... Line 4328...
4491
 
4328
 
4492
  def write(self, oprot):
4329
  def write(self, oprot):
4493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4495
      return
4332
      return
4496
    oprot.writeStructBegin('getUserByMobileNumber_args')
4333
    oprot.writeStructBegin('getUserByEmail_args')
4497
    if self.mobileNumber is not None:
4334
    if self.email is not None:
4498
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4335
      oprot.writeFieldBegin('email', TType.STRING, 1)
4499
      oprot.writeI64(self.mobileNumber)
4336
      oprot.writeString(self.email)
4500
      oprot.writeFieldEnd()
4337
      oprot.writeFieldEnd()
4501
    oprot.writeFieldStop()
4338
    oprot.writeFieldStop()
4502
    oprot.writeStructEnd()
4339
    oprot.writeStructEnd()
4503
 
4340
 
4504
  def validate(self):
4341
  def validate(self):
Line 4514... Line 4351...
4514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4515
 
4352
 
4516
  def __ne__(self, other):
4353
  def __ne__(self, other):
4517
    return not (self == other)
4354
    return not (self == other)
4518
 
4355
 
4519
class getUserByMobileNumber_result:
4356
class getUserByEmail_result:
4520
  """
4357
  """
4521
  Attributes:
4358
  Attributes:
4522
   - success
4359
   - success
4523
   - ucex
4360
   - ucex
4524
  """
4361
  """
Line 4560... Line 4397...
4560
 
4397
 
4561
  def write(self, oprot):
4398
  def write(self, oprot):
4562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4564
      return
4401
      return
4565
    oprot.writeStructBegin('getUserByMobileNumber_result')
4402
    oprot.writeStructBegin('getUserByEmail_result')
4566
    if self.success is not None:
4403
    if self.success is not None:
4567
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4404
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4568
      self.success.write(oprot)
4405
      self.success.write(oprot)
4569
      oprot.writeFieldEnd()
4406
      oprot.writeFieldEnd()
4570
    if self.ucex is not None:
4407
    if self.ucex is not None:
Line 4587... Line 4424...
4587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4588
 
4425
 
4589
  def __ne__(self, other):
4426
  def __ne__(self, other):
4590
    return not (self == other)
4427
    return not (self == other)
4591
 
4428
 
4592
class createUser_args:
4429
class getUserByMobileNumber_args:
4593
  """
4430
  """
4594
  Attributes:
4431
  Attributes:
4595
   - user
4432
   - mobileNumber
4596
  """
4433
  """
4597
 
4434
 
4598
  thrift_spec = (
4435
  thrift_spec = (
4599
    None, # 0
4436
    None, # 0
4600
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
4437
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4601
  )
4438
  )
4602
 
4439
 
4603
  def __init__(self, user=None,):
4440
  def __init__(self, mobileNumber=None,):
4604
    self.user = user
4441
    self.mobileNumber = mobileNumber
4605
 
4442
 
4606
  def read(self, iprot):
4443
  def read(self, iprot):
4607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4609
      return
4446
      return
Line 4611... Line 4448...
4611
    while True:
4448
    while True:
4612
      (fname, ftype, fid) = iprot.readFieldBegin()
4449
      (fname, ftype, fid) = iprot.readFieldBegin()
4613
      if ftype == TType.STOP:
4450
      if ftype == TType.STOP:
4614
        break
4451
        break
4615
      if fid == 1:
4452
      if fid == 1:
4616
        if ftype == TType.STRUCT:
4453
        if ftype == TType.I64:
4617
          self.user = User()
4454
          self.mobileNumber = iprot.readI64();
4618
          self.user.read(iprot)
-
 
4619
        else:
4455
        else:
4620
          iprot.skip(ftype)
4456
          iprot.skip(ftype)
4621
      else:
4457
      else:
4622
        iprot.skip(ftype)
4458
        iprot.skip(ftype)
4623
      iprot.readFieldEnd()
4459
      iprot.readFieldEnd()
Line 4625... Line 4461...
4625
 
4461
 
4626
  def write(self, oprot):
4462
  def write(self, oprot):
4627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4629
      return
4465
      return
4630
    oprot.writeStructBegin('createUser_args')
4466
    oprot.writeStructBegin('getUserByMobileNumber_args')
4631
    if self.user is not None:
4467
    if self.mobileNumber is not None:
4632
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4468
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4633
      self.user.write(oprot)
4469
      oprot.writeI64(self.mobileNumber)
4634
      oprot.writeFieldEnd()
4470
      oprot.writeFieldEnd()
4635
    oprot.writeFieldStop()
4471
    oprot.writeFieldStop()
4636
    oprot.writeStructEnd()
4472
    oprot.writeStructEnd()
4637
 
4473
 
4638
  def validate(self):
4474
  def validate(self):
Line 4648... Line 4484...
4648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4649
 
4485
 
4650
  def __ne__(self, other):
4486
  def __ne__(self, other):
4651
    return not (self == other)
4487
    return not (self == other)
4652
 
4488
 
4653
class createUser_result:
4489
class getUserByMobileNumber_result:
4654
  """
4490
  """
4655
  Attributes:
4491
  Attributes:
4656
   - success
4492
   - success
4657
   - ucex
4493
   - ucex
4658
  """
4494
  """
Line 4694... Line 4530...
4694
 
4530
 
4695
  def write(self, oprot):
4531
  def write(self, oprot):
4696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4698
      return
4534
      return
4699
    oprot.writeStructBegin('createUser_result')
4535
    oprot.writeStructBegin('getUserByMobileNumber_result')
4700
    if self.success is not None:
4536
    if self.success is not None:
4701
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4537
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4702
      self.success.write(oprot)
4538
      self.success.write(oprot)
4703
      oprot.writeFieldEnd()
4539
      oprot.writeFieldEnd()
4704
    if self.ucex is not None:
4540
    if self.ucex is not None:
Line 4721... Line 4557...
4721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4722
 
4558
 
4723
  def __ne__(self, other):
4559
  def __ne__(self, other):
4724
    return not (self == other)
4560
    return not (self == other)
4725
 
4561
 
4726
class updateUser_args:
4562
class createUser_args:
4727
  """
4563
  """
4728
  Attributes:
4564
  Attributes:
4729
   - user
4565
   - user
4730
  """
4566
  """
4731
 
4567
 
Line 4759... Line 4595...
4759
 
4595
 
4760
  def write(self, oprot):
4596
  def write(self, oprot):
4761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4763
      return
4599
      return
4764
    oprot.writeStructBegin('updateUser_args')
4600
    oprot.writeStructBegin('createUser_args')
4765
    if self.user is not None:
4601
    if self.user is not None:
4766
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4602
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4767
      self.user.write(oprot)
4603
      self.user.write(oprot)
4768
      oprot.writeFieldEnd()
4604
      oprot.writeFieldEnd()
4769
    oprot.writeFieldStop()
4605
    oprot.writeFieldStop()
Line 4782... Line 4618...
4782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4783
 
4619
 
4784
  def __ne__(self, other):
4620
  def __ne__(self, other):
4785
    return not (self == other)
4621
    return not (self == other)
4786
 
4622
 
4787
class updateUser_result:
4623
class createUser_result:
4788
  """
4624
  """
4789
  Attributes:
4625
  Attributes:
4790
   - success
4626
   - success
4791
   - ucex
4627
   - ucex
4792
  """
4628
  """
Line 4828... Line 4664...
4828
 
4664
 
4829
  def write(self, oprot):
4665
  def write(self, oprot):
4830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4832
      return
4668
      return
4833
    oprot.writeStructBegin('updateUser_result')
4669
    oprot.writeStructBegin('createUser_result')
4834
    if self.success is not None:
4670
    if self.success is not None:
4835
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4671
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4836
      self.success.write(oprot)
4672
      self.success.write(oprot)
4837
      oprot.writeFieldEnd()
4673
      oprot.writeFieldEnd()
4838
    if self.ucex is not None:
4674
    if self.ucex is not None:
Line 4855... Line 4691...
4855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4856
 
4692
 
4857
  def __ne__(self, other):
4693
  def __ne__(self, other):
4858
    return not (self == other)
4694
    return not (self == other)
4859
 
4695
 
4860
class deleteUser_args:
4696
class updateUser_args:
4861
  """
4697
  """
4862
  Attributes:
4698
  Attributes:
4863
   - userId
4699
   - user
4864
  """
4700
  """
4865
 
4701
 
4866
  thrift_spec = (
4702
  thrift_spec = (
4867
    None, # 0
4703
    None, # 0
4868
    (1, TType.I64, 'userId', None, None, ), # 1
4704
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
4869
  )
4705
  )
4870
 
4706
 
4871
  def __init__(self, userId=None,):
4707
  def __init__(self, user=None,):
4872
    self.userId = userId
4708
    self.user = user
4873
 
4709
 
4874
  def read(self, iprot):
4710
  def read(self, iprot):
4875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4877
      return
4713
      return
Line 4879... Line 4715...
4879
    while True:
4715
    while True:
4880
      (fname, ftype, fid) = iprot.readFieldBegin()
4716
      (fname, ftype, fid) = iprot.readFieldBegin()
4881
      if ftype == TType.STOP:
4717
      if ftype == TType.STOP:
4882
        break
4718
        break
4883
      if fid == 1:
4719
      if fid == 1:
4884
        if ftype == TType.I64:
4720
        if ftype == TType.STRUCT:
4885
          self.userId = iprot.readI64();
4721
          self.user = User()
-
 
4722
          self.user.read(iprot)
4886
        else:
4723
        else:
4887
          iprot.skip(ftype)
4724
          iprot.skip(ftype)
4888
      else:
4725
      else:
4889
        iprot.skip(ftype)
4726
        iprot.skip(ftype)
4890
      iprot.readFieldEnd()
4727
      iprot.readFieldEnd()
Line 4892... Line 4729...
4892
 
4729
 
4893
  def write(self, oprot):
4730
  def write(self, oprot):
4894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4896
      return
4733
      return
4897
    oprot.writeStructBegin('deleteUser_args')
4734
    oprot.writeStructBegin('updateUser_args')
4898
    if self.userId is not None:
4735
    if self.user is not None:
4899
      oprot.writeFieldBegin('userId', TType.I64, 1)
4736
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4900
      oprot.writeI64(self.userId)
4737
      self.user.write(oprot)
4901
      oprot.writeFieldEnd()
4738
      oprot.writeFieldEnd()
4902
    oprot.writeFieldStop()
4739
    oprot.writeFieldStop()
4903
    oprot.writeStructEnd()
4740
    oprot.writeStructEnd()
4904
 
4741
 
4905
  def validate(self):
4742
  def validate(self):
Line 4915... Line 4752...
4915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4916
 
4753
 
4917
  def __ne__(self, other):
4754
  def __ne__(self, other):
4918
    return not (self == other)
4755
    return not (self == other)
4919
 
4756
 
4920
class deleteUser_result:
4757
class updateUser_result:
4921
  """
4758
  """
4922
  Attributes:
4759
  Attributes:
4923
   - success
4760
   - success
4924
   - ucex
4761
   - ucex
4925
  """
4762
  """
4926
 
4763
 
4927
  thrift_spec = (
4764
  thrift_spec = (
4928
    (0, TType.BOOL, 'success', None, None, ), # 0
4765
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4929
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4766
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4930
  )
4767
  )
4931
 
4768
 
4932
  def __init__(self, success=None, ucex=None,):
4769
  def __init__(self, success=None, ucex=None,):
4933
    self.success = success
4770
    self.success = success
Line 4941... Line 4778...
4941
    while True:
4778
    while True:
4942
      (fname, ftype, fid) = iprot.readFieldBegin()
4779
      (fname, ftype, fid) = iprot.readFieldBegin()
4943
      if ftype == TType.STOP:
4780
      if ftype == TType.STOP:
4944
        break
4781
        break
4945
      if fid == 0:
4782
      if fid == 0:
4946
        if ftype == TType.BOOL:
4783
        if ftype == TType.STRUCT:
4947
          self.success = iprot.readBool();
4784
          self.success = User()
-
 
4785
          self.success.read(iprot)
4948
        else:
4786
        else:
4949
          iprot.skip(ftype)
4787
          iprot.skip(ftype)
4950
      elif fid == 1:
4788
      elif fid == 1:
4951
        if ftype == TType.STRUCT:
4789
        if ftype == TType.STRUCT:
4952
          self.ucex = UserContextException()
4790
          self.ucex = UserContextException()
Line 4960... Line 4798...
4960
 
4798
 
4961
  def write(self, oprot):
4799
  def write(self, oprot):
4962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4964
      return
4802
      return
4965
    oprot.writeStructBegin('deleteUser_result')
4803
    oprot.writeStructBegin('updateUser_result')
4966
    if self.success is not None:
4804
    if self.success is not None:
4967
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4805
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4968
      oprot.writeBool(self.success)
4806
      self.success.write(oprot)
4969
      oprot.writeFieldEnd()
4807
      oprot.writeFieldEnd()
4970
    if self.ucex is not None:
4808
    if self.ucex is not None:
4971
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4809
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4972
      self.ucex.write(oprot)
4810
      self.ucex.write(oprot)
4973
      oprot.writeFieldEnd()
4811
      oprot.writeFieldEnd()
Line 4987... Line 4825...
4987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4988
 
4826
 
4989
  def __ne__(self, other):
4827
  def __ne__(self, other):
4990
    return not (self == other)
4828
    return not (self == other)
4991
 
4829
 
4992
class getUserState_args:
4830
class deleteUser_args:
4993
  """
4831
  """
4994
  Attributes:
4832
  Attributes:
4995
   - userId
4833
   - userId
4996
  """
4834
  """
4997
 
4835
 
Line 5024... Line 4862...
5024
 
4862
 
5025
  def write(self, oprot):
4863
  def write(self, oprot):
5026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5028
      return
4866
      return
5029
    oprot.writeStructBegin('getUserState_args')
4867
    oprot.writeStructBegin('deleteUser_args')
5030
    if self.userId is not None:
4868
    if self.userId is not None:
5031
      oprot.writeFieldBegin('userId', TType.I64, 1)
4869
      oprot.writeFieldBegin('userId', TType.I64, 1)
5032
      oprot.writeI64(self.userId)
4870
      oprot.writeI64(self.userId)
5033
      oprot.writeFieldEnd()
4871
      oprot.writeFieldEnd()
5034
    oprot.writeFieldStop()
4872
    oprot.writeFieldStop()
Line 5047... Line 4885...
5047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5048
 
4886
 
5049
  def __ne__(self, other):
4887
  def __ne__(self, other):
5050
    return not (self == other)
4888
    return not (self == other)
5051
 
4889
 
5052
class getUserState_result:
4890
class deleteUser_result:
5053
  """
4891
  """
5054
  Attributes:
4892
  Attributes:
5055
   - success
4893
   - success
5056
   - ucex
4894
   - ucex
5057
  """
4895
  """
5058
 
4896
 
5059
  thrift_spec = (
4897
  thrift_spec = (
5060
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
4898
    (0, TType.BOOL, 'success', None, None, ), # 0
5061
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4899
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5062
  )
4900
  )
5063
 
4901
 
5064
  def __init__(self, success=None, ucex=None,):
4902
  def __init__(self, success=None, ucex=None,):
5065
    self.success = success
4903
    self.success = success
Line 5073... Line 4911...
5073
    while True:
4911
    while True:
5074
      (fname, ftype, fid) = iprot.readFieldBegin()
4912
      (fname, ftype, fid) = iprot.readFieldBegin()
5075
      if ftype == TType.STOP:
4913
      if ftype == TType.STOP:
5076
        break
4914
        break
5077
      if fid == 0:
4915
      if fid == 0:
5078
        if ftype == TType.STRUCT:
4916
        if ftype == TType.BOOL:
5079
          self.success = UserState()
4917
          self.success = iprot.readBool();
5080
          self.success.read(iprot)
-
 
5081
        else:
4918
        else:
5082
          iprot.skip(ftype)
4919
          iprot.skip(ftype)
5083
      elif fid == 1:
4920
      elif fid == 1:
5084
        if ftype == TType.STRUCT:
4921
        if ftype == TType.STRUCT:
5085
          self.ucex = UserContextException()
4922
          self.ucex = UserContextException()
Line 5093... Line 4930...
5093
 
4930
 
5094
  def write(self, oprot):
4931
  def write(self, oprot):
5095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5097
      return
4934
      return
5098
    oprot.writeStructBegin('getUserState_result')
4935
    oprot.writeStructBegin('deleteUser_result')
5099
    if self.success is not None:
4936
    if self.success is not None:
5100
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4937
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5101
      self.success.write(oprot)
4938
      oprot.writeBool(self.success)
5102
      oprot.writeFieldEnd()
4939
      oprot.writeFieldEnd()
5103
    if self.ucex is not None:
4940
    if self.ucex is not None:
5104
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4941
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5105
      self.ucex.write(oprot)
4942
      self.ucex.write(oprot)
5106
      oprot.writeFieldEnd()
4943
      oprot.writeFieldEnd()
Line 6518... Line 6355...
6518
      if ftype == TType.STOP:
6355
      if ftype == TType.STOP:
6519
        break
6356
        break
6520
      if fid == 0:
6357
      if fid == 0:
6521
        if ftype == TType.LIST:
6358
        if ftype == TType.LIST:
6522
          self.success = []
6359
          self.success = []
6523
          (_etype68, _size65) = iprot.readListBegin()
6360
          (_etype61, _size58) = iprot.readListBegin()
6524
          for _i69 in xrange(_size65):
6361
          for _i62 in xrange(_size58):
6525
            _elem70 = Address()
6362
            _elem63 = Address()
6526
            _elem70.read(iprot)
6363
            _elem63.read(iprot)
6527
            self.success.append(_elem70)
6364
            self.success.append(_elem63)
6528
          iprot.readListEnd()
6365
          iprot.readListEnd()
6529
        else:
6366
        else:
6530
          iprot.skip(ftype)
6367
          iprot.skip(ftype)
6531
      elif fid == 1:
6368
      elif fid == 1:
6532
        if ftype == TType.STRUCT:
6369
        if ftype == TType.STRUCT:
Line 6545... Line 6382...
6545
      return
6382
      return
6546
    oprot.writeStructBegin('getAllAddressesForUser_result')
6383
    oprot.writeStructBegin('getAllAddressesForUser_result')
6547
    if self.success is not None:
6384
    if self.success is not None:
6548
      oprot.writeFieldBegin('success', TType.LIST, 0)
6385
      oprot.writeFieldBegin('success', TType.LIST, 0)
6549
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6386
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6550
      for iter71 in self.success:
6387
      for iter64 in self.success:
6551
        iter71.write(oprot)
6388
        iter64.write(oprot)
6552
      oprot.writeListEnd()
6389
      oprot.writeListEnd()
6553
      oprot.writeFieldEnd()
6390
      oprot.writeFieldEnd()
6554
    if self.ucx is not None:
6391
    if self.ucx is not None:
6555
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6392
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6556
      self.ucx.write(oprot)
6393
      self.ucx.write(oprot)
Line 7405... Line 7242...
7405
      if ftype == TType.STOP:
7242
      if ftype == TType.STOP:
7406
        break
7243
        break
7407
      if fid == 0:
7244
      if fid == 0:
7408
        if ftype == TType.LIST:
7245
        if ftype == TType.LIST:
7409
          self.success = []
7246
          self.success = []
7410
          (_etype75, _size72) = iprot.readListBegin()
7247
          (_etype68, _size65) = iprot.readListBegin()
7411
          for _i76 in xrange(_size72):
7248
          for _i69 in xrange(_size65):
7412
            _elem77 = UserCommunication()
7249
            _elem70 = UserCommunication()
7413
            _elem77.read(iprot)
7250
            _elem70.read(iprot)
7414
            self.success.append(_elem77)
7251
            self.success.append(_elem70)
7415
          iprot.readListEnd()
7252
          iprot.readListEnd()
7416
        else:
7253
        else:
7417
          iprot.skip(ftype)
7254
          iprot.skip(ftype)
7418
      elif fid == 1:
7255
      elif fid == 1:
7419
        if ftype == TType.STRUCT:
7256
        if ftype == TType.STRUCT:
Line 7432... Line 7269...
7432
      return
7269
      return
7433
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7270
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7434
    if self.success is not None:
7271
    if self.success is not None:
7435
      oprot.writeFieldBegin('success', TType.LIST, 0)
7272
      oprot.writeFieldBegin('success', TType.LIST, 0)
7436
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7273
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7437
      for iter78 in self.success:
7274
      for iter71 in self.success:
7438
        iter78.write(oprot)
7275
        iter71.write(oprot)
7439
      oprot.writeListEnd()
7276
      oprot.writeListEnd()
7440
      oprot.writeFieldEnd()
7277
      oprot.writeFieldEnd()
7441
    if self.ucx is not None:
7278
    if self.ucx is not None:
7442
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7279
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7443
      self.ucx.write(oprot)
7280
      self.ucx.write(oprot)
Line 7528... Line 7365...
7528
      if ftype == TType.STOP:
7365
      if ftype == TType.STOP:
7529
        break
7366
        break
7530
      if fid == 0:
7367
      if fid == 0:
7531
        if ftype == TType.LIST:
7368
        if ftype == TType.LIST:
7532
          self.success = []
7369
          self.success = []
7533
          (_etype82, _size79) = iprot.readListBegin()
7370
          (_etype75, _size72) = iprot.readListBegin()
7534
          for _i83 in xrange(_size79):
7371
          for _i76 in xrange(_size72):
7535
            _elem84 = UserCommunication()
7372
            _elem77 = UserCommunication()
7536
            _elem84.read(iprot)
7373
            _elem77.read(iprot)
7537
            self.success.append(_elem84)
7374
            self.success.append(_elem77)
7538
          iprot.readListEnd()
7375
          iprot.readListEnd()
7539
        else:
7376
        else:
7540
          iprot.skip(ftype)
7377
          iprot.skip(ftype)
7541
      elif fid == 1:
7378
      elif fid == 1:
7542
        if ftype == TType.STRUCT:
7379
        if ftype == TType.STRUCT:
Line 7555... Line 7392...
7555
      return
7392
      return
7556
    oprot.writeStructBegin('getAllUserCommunications_result')
7393
    oprot.writeStructBegin('getAllUserCommunications_result')
7557
    if self.success is not None:
7394
    if self.success is not None:
7558
      oprot.writeFieldBegin('success', TType.LIST, 0)
7395
      oprot.writeFieldBegin('success', TType.LIST, 0)
7559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7396
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7560
      for iter85 in self.success:
7397
      for iter78 in self.success:
7561
        iter85.write(oprot)
7398
        iter78.write(oprot)
7562
      oprot.writeListEnd()
7399
      oprot.writeListEnd()
7563
      oprot.writeFieldEnd()
7400
      oprot.writeFieldEnd()
7564
    if self.ucx is not None:
7401
    if self.ucx is not None:
7565
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7402
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7566
      self.ucx.write(oprot)
7403
      self.ucx.write(oprot)
Line 7796... Line 7633...
7796
      if ftype == TType.STOP:
7633
      if ftype == TType.STOP:
7797
        break
7634
        break
7798
      if fid == 0:
7635
      if fid == 0:
7799
        if ftype == TType.LIST:
7636
        if ftype == TType.LIST:
7800
          self.success = []
7637
          self.success = []
7801
          (_etype89, _size86) = iprot.readListBegin()
7638
          (_etype82, _size79) = iprot.readListBegin()
7802
          for _i90 in xrange(_size86):
7639
          for _i83 in xrange(_size79):
7803
            _elem91 = MasterAffiliate()
7640
            _elem84 = MasterAffiliate()
7804
            _elem91.read(iprot)
7641
            _elem84.read(iprot)
7805
            self.success.append(_elem91)
7642
            self.success.append(_elem84)
7806
          iprot.readListEnd()
7643
          iprot.readListEnd()
7807
        else:
7644
        else:
7808
          iprot.skip(ftype)
7645
          iprot.skip(ftype)
7809
      elif fid == 1:
7646
      elif fid == 1:
7810
        if ftype == TType.STRUCT:
7647
        if ftype == TType.STRUCT:
Line 7823... Line 7660...
7823
      return
7660
      return
7824
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7661
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7825
    if self.success is not None:
7662
    if self.success is not None:
7826
      oprot.writeFieldBegin('success', TType.LIST, 0)
7663
      oprot.writeFieldBegin('success', TType.LIST, 0)
7827
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7664
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7828
      for iter92 in self.success:
7665
      for iter85 in self.success:
7829
        iter92.write(oprot)
7666
        iter85.write(oprot)
7830
      oprot.writeListEnd()
7667
      oprot.writeListEnd()
7831
      oprot.writeFieldEnd()
7668
      oprot.writeFieldEnd()
7832
    if self.utx is not None:
7669
    if self.utx is not None:
7833
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7670
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7834
      self.utx.write(oprot)
7671
      self.utx.write(oprot)
Line 8771... Line 8608...
8771
      if ftype == TType.STOP:
8608
      if ftype == TType.STOP:
8772
        break
8609
        break
8773
      if fid == 0:
8610
      if fid == 0:
8774
        if ftype == TType.LIST:
8611
        if ftype == TType.LIST:
8775
          self.success = []
8612
          self.success = []
8776
          (_etype96, _size93) = iprot.readListBegin()
8613
          (_etype89, _size86) = iprot.readListBegin()
8777
          for _i97 in xrange(_size93):
8614
          for _i90 in xrange(_size86):
8778
            _elem98 = Affiliate()
8615
            _elem91 = Affiliate()
8779
            _elem98.read(iprot)
8616
            _elem91.read(iprot)
8780
            self.success.append(_elem98)
8617
            self.success.append(_elem91)
8781
          iprot.readListEnd()
8618
          iprot.readListEnd()
8782
        else:
8619
        else:
8783
          iprot.skip(ftype)
8620
          iprot.skip(ftype)
8784
      elif fid == 1:
8621
      elif fid == 1:
8785
        if ftype == TType.STRUCT:
8622
        if ftype == TType.STRUCT:
Line 8798... Line 8635...
8798
      return
8635
      return
8799
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8636
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8800
    if self.success is not None:
8637
    if self.success is not None:
8801
      oprot.writeFieldBegin('success', TType.LIST, 0)
8638
      oprot.writeFieldBegin('success', TType.LIST, 0)
8802
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8639
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8803
      for iter99 in self.success:
8640
      for iter92 in self.success:
8804
        iter99.write(oprot)
8641
        iter92.write(oprot)
8805
      oprot.writeListEnd()
8642
      oprot.writeListEnd()
8806
      oprot.writeFieldEnd()
8643
      oprot.writeFieldEnd()
8807
    if self.utx is not None:
8644
    if self.utx is not None:
8808
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8645
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8809
      self.utx.write(oprot)
8646
      self.utx.write(oprot)
Line 9261... Line 9098...
9261
      if ftype == TType.STOP:
9098
      if ftype == TType.STOP:
9262
        break
9099
        break
9263
      if fid == 0:
9100
      if fid == 0:
9264
        if ftype == TType.LIST:
9101
        if ftype == TType.LIST:
9265
          self.success = []
9102
          self.success = []
9266
          (_etype103, _size100) = iprot.readListBegin()
9103
          (_etype96, _size93) = iprot.readListBegin()
9267
          for _i104 in xrange(_size100):
9104
          for _i97 in xrange(_size93):
9268
            _elem105 = TrackLog()
9105
            _elem98 = TrackLog()
9269
            _elem105.read(iprot)
9106
            _elem98.read(iprot)
9270
            self.success.append(_elem105)
9107
            self.success.append(_elem98)
9271
          iprot.readListEnd()
9108
          iprot.readListEnd()
9272
        else:
9109
        else:
9273
          iprot.skip(ftype)
9110
          iprot.skip(ftype)
9274
      elif fid == 1:
9111
      elif fid == 1:
9275
        if ftype == TType.STRUCT:
9112
        if ftype == TType.STRUCT:
Line 9288... Line 9125...
9288
      return
9125
      return
9289
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9126
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9290
    if self.success is not None:
9127
    if self.success is not None:
9291
      oprot.writeFieldBegin('success', TType.LIST, 0)
9128
      oprot.writeFieldBegin('success', TType.LIST, 0)
9292
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9293
      for iter106 in self.success:
9130
      for iter99 in self.success:
9294
        iter106.write(oprot)
9131
        iter99.write(oprot)
9295
      oprot.writeListEnd()
9132
      oprot.writeListEnd()
9296
      oprot.writeFieldEnd()
9133
      oprot.writeFieldEnd()
9297
    if self.utx is not None:
9134
    if self.utx is not None:
9298
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9135
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9299
      self.utx.write(oprot)
9136
      self.utx.write(oprot)
Line 9402... Line 9239...
9402
      if ftype == TType.STOP:
9239
      if ftype == TType.STOP:
9403
        break
9240
        break
9404
      if fid == 0:
9241
      if fid == 0:
9405
        if ftype == TType.LIST:
9242
        if ftype == TType.LIST:
9406
          self.success = []
9243
          self.success = []
9407
          (_etype110, _size107) = iprot.readListBegin()
9244
          (_etype103, _size100) = iprot.readListBegin()
9408
          for _i111 in xrange(_size107):
9245
          for _i104 in xrange(_size100):
9409
            _elem112 = TrackLog()
9246
            _elem105 = TrackLog()
9410
            _elem112.read(iprot)
9247
            _elem105.read(iprot)
9411
            self.success.append(_elem112)
9248
            self.success.append(_elem105)
9412
          iprot.readListEnd()
9249
          iprot.readListEnd()
9413
        else:
9250
        else:
9414
          iprot.skip(ftype)
9251
          iprot.skip(ftype)
9415
      elif fid == 1:
9252
      elif fid == 1:
9416
        if ftype == TType.STRUCT:
9253
        if ftype == TType.STRUCT:
Line 9429... Line 9266...
9429
      return
9266
      return
9430
    oprot.writeStructBegin('getTrackLogsByUser_result')
9267
    oprot.writeStructBegin('getTrackLogsByUser_result')
9431
    if self.success is not None:
9268
    if self.success is not None:
9432
      oprot.writeFieldBegin('success', TType.LIST, 0)
9269
      oprot.writeFieldBegin('success', TType.LIST, 0)
9433
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9270
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9434
      for iter113 in self.success:
9271
      for iter106 in self.success:
9435
        iter113.write(oprot)
9272
        iter106.write(oprot)
9436
      oprot.writeListEnd()
9273
      oprot.writeListEnd()
9437
      oprot.writeFieldEnd()
9274
      oprot.writeFieldEnd()
9438
    if self.utx is not None:
9275
    if self.utx is not None:
9439
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9276
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9440
      self.utx.write(oprot)
9277
      self.utx.write(oprot)
Line 9567... Line 9404...
9567
      if ftype == TType.STOP:
9404
      if ftype == TType.STOP:
9568
        break
9405
        break
9569
      if fid == 0:
9406
      if fid == 0:
9570
        if ftype == TType.LIST:
9407
        if ftype == TType.LIST:
9571
          self.success = []
9408
          self.success = []
9572
          (_etype117, _size114) = iprot.readListBegin()
9409
          (_etype110, _size107) = iprot.readListBegin()
9573
          for _i118 in xrange(_size114):
9410
          for _i111 in xrange(_size107):
9574
            _elem119 = TrackLog()
9411
            _elem112 = TrackLog()
9575
            _elem119.read(iprot)
9412
            _elem112.read(iprot)
9576
            self.success.append(_elem119)
9413
            self.success.append(_elem112)
9577
          iprot.readListEnd()
9414
          iprot.readListEnd()
9578
        else:
9415
        else:
9579
          iprot.skip(ftype)
9416
          iprot.skip(ftype)
9580
      elif fid == 1:
9417
      elif fid == 1:
9581
        if ftype == TType.STRUCT:
9418
        if ftype == TType.STRUCT:
Line 9594... Line 9431...
9594
      return
9431
      return
9595
    oprot.writeStructBegin('getTrackLogs_result')
9432
    oprot.writeStructBegin('getTrackLogs_result')
9596
    if self.success is not None:
9433
    if self.success is not None:
9597
      oprot.writeFieldBegin('success', TType.LIST, 0)
9434
      oprot.writeFieldBegin('success', TType.LIST, 0)
9598
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9435
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9599
      for iter120 in self.success:
9436
      for iter113 in self.success:
9600
        iter120.write(oprot)
9437
        iter113.write(oprot)
9601
      oprot.writeListEnd()
9438
      oprot.writeListEnd()
9602
      oprot.writeFieldEnd()
9439
      oprot.writeFieldEnd()
9603
    if self.utx is not None:
9440
    if self.utx is not None:
9604
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9441
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9605
      self.utx.write(oprot)
9442
      self.utx.write(oprot)
Line 10018... Line 9855...
10018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10019
 
9856
 
10020
  def __ne__(self, other):
9857
  def __ne__(self, other):
10021
    return not (self == other)
9858
    return not (self == other)
10022
 
9859
 
10023
class getCartsForUser_args:
-
 
10024
  """
-
 
10025
  Attributes:
-
 
10026
   - userId
-
 
10027
   - status
-
 
10028
  """
-
 
10029
 
-
 
10030
  thrift_spec = (
-
 
10031
    None, # 0
-
 
10032
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
10033
    (2, TType.I32, 'status', None, None, ), # 2
-
 
10034
  )
-
 
10035
 
-
 
10036
  def __init__(self, userId=None, status=None,):
-
 
10037
    self.userId = userId
-
 
10038
    self.status = status
-
 
10039
 
-
 
10040
  def read(self, iprot):
-
 
10041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10043
      return
-
 
10044
    iprot.readStructBegin()
-
 
10045
    while True:
-
 
10046
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10047
      if ftype == TType.STOP:
-
 
10048
        break
-
 
10049
      if fid == 1:
-
 
10050
        if ftype == TType.I64:
-
 
10051
          self.userId = iprot.readI64();
-
 
10052
        else:
-
 
10053
          iprot.skip(ftype)
-
 
10054
      elif fid == 2:
-
 
10055
        if ftype == TType.I32:
-
 
10056
          self.status = iprot.readI32();
-
 
10057
        else:
-
 
10058
          iprot.skip(ftype)
-
 
10059
      else:
-
 
10060
        iprot.skip(ftype)
-
 
10061
      iprot.readFieldEnd()
-
 
10062
    iprot.readStructEnd()
-
 
10063
 
-
 
10064
  def write(self, oprot):
-
 
10065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10067
      return
-
 
10068
    oprot.writeStructBegin('getCartsForUser_args')
-
 
10069
    if self.userId is not None:
-
 
10070
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
10071
      oprot.writeI64(self.userId)
-
 
10072
      oprot.writeFieldEnd()
-
 
10073
    if self.status is not None:
-
 
10074
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
10075
      oprot.writeI32(self.status)
-
 
10076
      oprot.writeFieldEnd()
-
 
10077
    oprot.writeFieldStop()
-
 
10078
    oprot.writeStructEnd()
-
 
10079
 
-
 
10080
  def validate(self):
-
 
10081
    return
-
 
10082
 
-
 
10083
 
-
 
10084
  def __repr__(self):
-
 
10085
    L = ['%s=%r' % (key, value)
-
 
10086
      for key, value in self.__dict__.iteritems()]
-
 
10087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10088
 
-
 
10089
  def __eq__(self, other):
-
 
10090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10091
 
-
 
10092
  def __ne__(self, other):
-
 
10093
    return not (self == other)
-
 
10094
 
-
 
10095
class getCartsForUser_result:
-
 
10096
  """
-
 
10097
  Attributes:
-
 
10098
   - success
-
 
10099
   - scx
-
 
10100
  """
-
 
10101
 
-
 
10102
  thrift_spec = (
-
 
10103
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
-
 
10104
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
10105
  )
-
 
10106
 
-
 
10107
  def __init__(self, success=None, scx=None,):
-
 
10108
    self.success = success
-
 
10109
    self.scx = scx
-
 
10110
 
-
 
10111
  def read(self, iprot):
-
 
10112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10114
      return
-
 
10115
    iprot.readStructBegin()
-
 
10116
    while True:
-
 
10117
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10118
      if ftype == TType.STOP:
-
 
10119
        break
-
 
10120
      if fid == 0:
-
 
10121
        if ftype == TType.LIST:
-
 
10122
          self.success = []
-
 
10123
          (_etype124, _size121) = iprot.readListBegin()
-
 
10124
          for _i125 in xrange(_size121):
-
 
10125
            _elem126 = Cart()
-
 
10126
            _elem126.read(iprot)
-
 
10127
            self.success.append(_elem126)
-
 
10128
          iprot.readListEnd()
-
 
10129
        else:
-
 
10130
          iprot.skip(ftype)
-
 
10131
      elif fid == 1:
-
 
10132
        if ftype == TType.STRUCT:
-
 
10133
          self.scx = ShoppingCartException()
-
 
10134
          self.scx.read(iprot)
-
 
10135
        else:
-
 
10136
          iprot.skip(ftype)
-
 
10137
      else:
-
 
10138
        iprot.skip(ftype)
-
 
10139
      iprot.readFieldEnd()
-
 
10140
    iprot.readStructEnd()
-
 
10141
 
-
 
10142
  def write(self, oprot):
-
 
10143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10145
      return
-
 
10146
    oprot.writeStructBegin('getCartsForUser_result')
-
 
10147
    if self.success is not None:
-
 
10148
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
10149
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
10150
      for iter127 in self.success:
-
 
10151
        iter127.write(oprot)
-
 
10152
      oprot.writeListEnd()
-
 
10153
      oprot.writeFieldEnd()
-
 
10154
    if self.scx is not None:
-
 
10155
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
10156
      self.scx.write(oprot)
-
 
10157
      oprot.writeFieldEnd()
-
 
10158
    oprot.writeFieldStop()
-
 
10159
    oprot.writeStructEnd()
-
 
10160
 
-
 
10161
  def validate(self):
-
 
10162
    return
-
 
10163
 
-
 
10164
 
-
 
10165
  def __repr__(self):
-
 
10166
    L = ['%s=%r' % (key, value)
-
 
10167
      for key, value in self.__dict__.iteritems()]
-
 
10168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10169
 
-
 
10170
  def __eq__(self, other):
-
 
10171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10172
 
-
 
10173
  def __ne__(self, other):
-
 
10174
    return not (self == other)
-
 
10175
 
-
 
10176
class getCartsByStatus_args:
-
 
10177
  """
-
 
10178
  Attributes:
-
 
10179
   - status
-
 
10180
  """
-
 
10181
 
-
 
10182
  thrift_spec = (
-
 
10183
    None, # 0
-
 
10184
    (1, TType.I32, 'status', None, None, ), # 1
-
 
10185
  )
-
 
10186
 
-
 
10187
  def __init__(self, status=None,):
-
 
10188
    self.status = status
-
 
10189
 
-
 
10190
  def read(self, iprot):
-
 
10191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10193
      return
-
 
10194
    iprot.readStructBegin()
-
 
10195
    while True:
-
 
10196
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10197
      if ftype == TType.STOP:
-
 
10198
        break
-
 
10199
      if fid == 1:
-
 
10200
        if ftype == TType.I32:
-
 
10201
          self.status = iprot.readI32();
-
 
10202
        else:
-
 
10203
          iprot.skip(ftype)
-
 
10204
      else:
-
 
10205
        iprot.skip(ftype)
-
 
10206
      iprot.readFieldEnd()
-
 
10207
    iprot.readStructEnd()
-
 
10208
 
-
 
10209
  def write(self, oprot):
-
 
10210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10212
      return
-
 
10213
    oprot.writeStructBegin('getCartsByStatus_args')
-
 
10214
    if self.status is not None:
-
 
10215
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
10216
      oprot.writeI32(self.status)
-
 
10217
      oprot.writeFieldEnd()
-
 
10218
    oprot.writeFieldStop()
-
 
10219
    oprot.writeStructEnd()
-
 
10220
 
-
 
10221
  def validate(self):
-
 
10222
    return
-
 
10223
 
-
 
10224
 
-
 
10225
  def __repr__(self):
-
 
10226
    L = ['%s=%r' % (key, value)
-
 
10227
      for key, value in self.__dict__.iteritems()]
-
 
10228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10229
 
-
 
10230
  def __eq__(self, other):
-
 
10231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10232
 
-
 
10233
  def __ne__(self, other):
-
 
10234
    return not (self == other)
-
 
10235
 
-
 
10236
class getCartsByStatus_result:
-
 
10237
  """
-
 
10238
  Attributes:
-
 
10239
   - success
-
 
10240
   - scx
-
 
10241
  """
-
 
10242
 
-
 
10243
  thrift_spec = (
-
 
10244
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
-
 
10245
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
10246
  )
-
 
10247
 
-
 
10248
  def __init__(self, success=None, scx=None,):
-
 
10249
    self.success = success
-
 
10250
    self.scx = scx
-
 
10251
 
-
 
10252
  def read(self, iprot):
-
 
10253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10255
      return
-
 
10256
    iprot.readStructBegin()
-
 
10257
    while True:
-
 
10258
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10259
      if ftype == TType.STOP:
-
 
10260
        break
-
 
10261
      if fid == 0:
-
 
10262
        if ftype == TType.LIST:
-
 
10263
          self.success = []
-
 
10264
          (_etype131, _size128) = iprot.readListBegin()
-
 
10265
          for _i132 in xrange(_size128):
-
 
10266
            _elem133 = Cart()
-
 
10267
            _elem133.read(iprot)
-
 
10268
            self.success.append(_elem133)
-
 
10269
          iprot.readListEnd()
-
 
10270
        else:
-
 
10271
          iprot.skip(ftype)
-
 
10272
      elif fid == 1:
-
 
10273
        if ftype == TType.STRUCT:
-
 
10274
          self.scx = ShoppingCartException()
-
 
10275
          self.scx.read(iprot)
-
 
10276
        else:
-
 
10277
          iprot.skip(ftype)
-
 
10278
      else:
-
 
10279
        iprot.skip(ftype)
-
 
10280
      iprot.readFieldEnd()
-
 
10281
    iprot.readStructEnd()
-
 
10282
 
-
 
10283
  def write(self, oprot):
-
 
10284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10286
      return
-
 
10287
    oprot.writeStructBegin('getCartsByStatus_result')
-
 
10288
    if self.success is not None:
-
 
10289
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
10290
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
10291
      for iter134 in self.success:
-
 
10292
        iter134.write(oprot)
-
 
10293
      oprot.writeListEnd()
-
 
10294
      oprot.writeFieldEnd()
-
 
10295
    if self.scx is not None:
-
 
10296
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
10297
      self.scx.write(oprot)
-
 
10298
      oprot.writeFieldEnd()
-
 
10299
    oprot.writeFieldStop()
-
 
10300
    oprot.writeStructEnd()
-
 
10301
 
-
 
10302
  def validate(self):
-
 
10303
    return
-
 
10304
 
-
 
10305
 
-
 
10306
  def __repr__(self):
-
 
10307
    L = ['%s=%r' % (key, value)
-
 
10308
      for key, value in self.__dict__.iteritems()]
-
 
10309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10310
 
-
 
10311
  def __eq__(self, other):
-
 
10312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10313
 
-
 
10314
  def __ne__(self, other):
-
 
10315
    return not (self == other)
-
 
10316
 
-
 
10317
class getCartsByTime_args:
9860
class getCartsByTime_args:
10318
  """
9861
  """
10319
  Attributes:
9862
  Attributes:
10320
   - from_time
9863
   - from_time
10321
   - to_time
9864
   - to_time
Line 10424... Line 9967...
10424
      if ftype == TType.STOP:
9967
      if ftype == TType.STOP:
10425
        break
9968
        break
10426
      if fid == 0:
9969
      if fid == 0:
10427
        if ftype == TType.LIST:
9970
        if ftype == TType.LIST:
10428
          self.success = []
9971
          self.success = []
10429
          (_etype138, _size135) = iprot.readListBegin()
9972
          (_etype117, _size114) = iprot.readListBegin()
10430
          for _i139 in xrange(_size135):
9973
          for _i118 in xrange(_size114):
10431
            _elem140 = Cart()
9974
            _elem119 = Cart()
10432
            _elem140.read(iprot)
9975
            _elem119.read(iprot)
10433
            self.success.append(_elem140)
9976
            self.success.append(_elem119)
10434
          iprot.readListEnd()
9977
          iprot.readListEnd()
10435
        else:
9978
        else:
10436
          iprot.skip(ftype)
9979
          iprot.skip(ftype)
10437
      elif fid == 1:
9980
      elif fid == 1:
10438
        if ftype == TType.STRUCT:
9981
        if ftype == TType.STRUCT:
Line 10451... Line 9994...
10451
      return
9994
      return
10452
    oprot.writeStructBegin('getCartsByTime_result')
9995
    oprot.writeStructBegin('getCartsByTime_result')
10453
    if self.success is not None:
9996
    if self.success is not None:
10454
      oprot.writeFieldBegin('success', TType.LIST, 0)
9997
      oprot.writeFieldBegin('success', TType.LIST, 0)
10455
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9998
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10456
      for iter141 in self.success:
9999
      for iter120 in self.success:
10457
        iter141.write(oprot)
10000
        iter120.write(oprot)
10458
      oprot.writeListEnd()
10001
      oprot.writeListEnd()
10459
      oprot.writeFieldEnd()
10002
      oprot.writeFieldEnd()
10460
    if self.scx is not None:
10003
    if self.scx is not None:
10461
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10004
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10462
      self.scx.write(oprot)
10005
      self.scx.write(oprot)
Line 10477... Line 10020...
10477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10478
 
10021
 
10479
  def __ne__(self, other):
10022
  def __ne__(self, other):
10480
    return not (self == other)
10023
    return not (self == other)
10481
 
10024
 
10482
class changeCartStatus_args:
-
 
10483
  """
-
 
10484
  Attributes:
-
 
10485
   - cartId
-
 
10486
   - status
-
 
10487
  """
-
 
10488
 
-
 
10489
  thrift_spec = (
-
 
10490
    None, # 0
-
 
10491
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
10492
    (2, TType.I32, 'status', None, None, ), # 2
-
 
10493
  )
-
 
10494
 
-
 
10495
  def __init__(self, cartId=None, status=None,):
-
 
10496
    self.cartId = cartId
-
 
10497
    self.status = status
-
 
10498
 
-
 
10499
  def read(self, iprot):
-
 
10500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10502
      return
-
 
10503
    iprot.readStructBegin()
-
 
10504
    while True:
-
 
10505
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10506
      if ftype == TType.STOP:
-
 
10507
        break
-
 
10508
      if fid == 1:
-
 
10509
        if ftype == TType.I64:
-
 
10510
          self.cartId = iprot.readI64();
-
 
10511
        else:
-
 
10512
          iprot.skip(ftype)
-
 
10513
      elif fid == 2:
-
 
10514
        if ftype == TType.I32:
-
 
10515
          self.status = iprot.readI32();
-
 
10516
        else:
-
 
10517
          iprot.skip(ftype)
-
 
10518
      else:
-
 
10519
        iprot.skip(ftype)
-
 
10520
      iprot.readFieldEnd()
-
 
10521
    iprot.readStructEnd()
-
 
10522
 
-
 
10523
  def write(self, oprot):
-
 
10524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10526
      return
-
 
10527
    oprot.writeStructBegin('changeCartStatus_args')
-
 
10528
    if self.cartId is not None:
-
 
10529
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
10530
      oprot.writeI64(self.cartId)
-
 
10531
      oprot.writeFieldEnd()
-
 
10532
    if self.status is not None:
-
 
10533
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
10534
      oprot.writeI32(self.status)
-
 
10535
      oprot.writeFieldEnd()
-
 
10536
    oprot.writeFieldStop()
-
 
10537
    oprot.writeStructEnd()
-
 
10538
 
-
 
10539
  def validate(self):
-
 
10540
    return
-
 
10541
 
-
 
10542
 
-
 
10543
  def __repr__(self):
-
 
10544
    L = ['%s=%r' % (key, value)
-
 
10545
      for key, value in self.__dict__.iteritems()]
-
 
10546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10547
 
-
 
10548
  def __eq__(self, other):
-
 
10549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10550
 
-
 
10551
  def __ne__(self, other):
-
 
10552
    return not (self == other)
-
 
10553
 
-
 
10554
class changeCartStatus_result:
-
 
10555
  """
-
 
10556
  Attributes:
-
 
10557
   - scx
-
 
10558
  """
-
 
10559
 
-
 
10560
  thrift_spec = (
-
 
10561
    None, # 0
-
 
10562
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
10563
  )
-
 
10564
 
-
 
10565
  def __init__(self, scx=None,):
-
 
10566
    self.scx = scx
-
 
10567
 
-
 
10568
  def read(self, iprot):
-
 
10569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10571
      return
-
 
10572
    iprot.readStructBegin()
-
 
10573
    while True:
-
 
10574
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10575
      if ftype == TType.STOP:
-
 
10576
        break
-
 
10577
      if fid == 1:
-
 
10578
        if ftype == TType.STRUCT:
-
 
10579
          self.scx = ShoppingCartException()
-
 
10580
          self.scx.read(iprot)
-
 
10581
        else:
-
 
10582
          iprot.skip(ftype)
-
 
10583
      else:
-
 
10584
        iprot.skip(ftype)
-
 
10585
      iprot.readFieldEnd()
-
 
10586
    iprot.readStructEnd()
-
 
10587
 
-
 
10588
  def write(self, oprot):
-
 
10589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10591
      return
-
 
10592
    oprot.writeStructBegin('changeCartStatus_result')
-
 
10593
    if self.scx is not None:
-
 
10594
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
10595
      self.scx.write(oprot)
-
 
10596
      oprot.writeFieldEnd()
-
 
10597
    oprot.writeFieldStop()
-
 
10598
    oprot.writeStructEnd()
-
 
10599
 
-
 
10600
  def validate(self):
-
 
10601
    return
-
 
10602
 
-
 
10603
 
-
 
10604
  def __repr__(self):
-
 
10605
    L = ['%s=%r' % (key, value)
-
 
10606
      for key, value in self.__dict__.iteritems()]
-
 
10607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10608
 
-
 
10609
  def __eq__(self, other):
-
 
10610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10611
 
-
 
10612
  def __ne__(self, other):
-
 
10613
    return not (self == other)
-
 
10614
 
-
 
10615
class addItemToCart_args:
10025
class addItemToCart_args:
10616
  """
10026
  """
10617
  Attributes:
10027
  Attributes:
10618
   - cartId
10028
   - cartId
10619
   - itemId
10029
   - itemId
Line 11614... Line 11024...
11614
      if ftype == TType.STOP:
11024
      if ftype == TType.STOP:
11615
        break
11025
        break
11616
      if fid == 1:
11026
      if fid == 1:
11617
        if ftype == TType.LIST:
11027
        if ftype == TType.LIST:
11618
          self.discounts = []
11028
          self.discounts = []
11619
          (_etype145, _size142) = iprot.readListBegin()
11029
          (_etype124, _size121) = iprot.readListBegin()
11620
          for _i146 in xrange(_size142):
11030
          for _i125 in xrange(_size121):
11621
            _elem147 = Discount()
11031
            _elem126 = Discount()
11622
            _elem147.read(iprot)
11032
            _elem126.read(iprot)
11623
            self.discounts.append(_elem147)
11033
            self.discounts.append(_elem126)
11624
          iprot.readListEnd()
11034
          iprot.readListEnd()
11625
        else:
11035
        else:
11626
          iprot.skip(ftype)
11036
          iprot.skip(ftype)
11627
      else:
11037
      else:
11628
        iprot.skip(ftype)
11038
        iprot.skip(ftype)
Line 11635... Line 11045...
11635
      return
11045
      return
11636
    oprot.writeStructBegin('saveDiscounts_args')
11046
    oprot.writeStructBegin('saveDiscounts_args')
11637
    if self.discounts is not None:
11047
    if self.discounts is not None:
11638
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11048
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11639
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11049
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11640
      for iter148 in self.discounts:
11050
      for iter127 in self.discounts:
11641
        iter148.write(oprot)
11051
        iter127.write(oprot)
11642
      oprot.writeListEnd()
11052
      oprot.writeListEnd()
11643
      oprot.writeFieldEnd()
11053
      oprot.writeFieldEnd()
11644
    oprot.writeFieldStop()
11054
    oprot.writeFieldStop()
11645
    oprot.writeStructEnd()
11055
    oprot.writeStructEnd()
11646
 
11056
 
Line 11726... Line 11136...
11726
   - cartId
11136
   - cartId
11727
   - sessionSource
11137
   - sessionSource
11728
   - sessionStartTime
11138
   - sessionStartTime
11729
   - firstSource
11139
   - firstSource
11730
   - firstSourceTime
11140
   - firstSourceTime
-
 
11141
   - userId
11731
  """
11142
  """
11732
 
11143
 
11733
  thrift_spec = (
11144
  thrift_spec = (
11734
    None, # 0
11145
    None, # 0
11735
    (1, TType.I64, 'cartId', None, None, ), # 1
11146
    (1, TType.I64, 'cartId', None, None, ), # 1
11736
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11147
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11737
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
11148
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
11738
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11149
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11739
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
11150
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
-
 
11151
    (6, TType.I64, 'userId', None, None, ), # 6
11740
  )
11152
  )
11741
 
11153
 
11742
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None,):
11154
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
11743
    self.cartId = cartId
11155
    self.cartId = cartId
11744
    self.sessionSource = sessionSource
11156
    self.sessionSource = sessionSource
11745
    self.sessionStartTime = sessionStartTime
11157
    self.sessionStartTime = sessionStartTime
11746
    self.firstSource = firstSource
11158
    self.firstSource = firstSource
11747
    self.firstSourceTime = firstSourceTime
11159
    self.firstSourceTime = firstSourceTime
-
 
11160
    self.userId = userId
11748
 
11161
 
11749
  def read(self, iprot):
11162
  def read(self, iprot):
11750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11752
      return
11165
      return
Line 11778... Line 11191...
11778
      elif fid == 5:
11191
      elif fid == 5:
11779
        if ftype == TType.I64:
11192
        if ftype == TType.I64:
11780
          self.firstSourceTime = iprot.readI64();
11193
          self.firstSourceTime = iprot.readI64();
11781
        else:
11194
        else:
11782
          iprot.skip(ftype)
11195
          iprot.skip(ftype)
-
 
11196
      elif fid == 6:
-
 
11197
        if ftype == TType.I64:
-
 
11198
          self.userId = iprot.readI64();
-
 
11199
        else:
-
 
11200
          iprot.skip(ftype)
11783
      else:
11201
      else:
11784
        iprot.skip(ftype)
11202
        iprot.skip(ftype)
11785
      iprot.readFieldEnd()
11203
      iprot.readFieldEnd()
11786
    iprot.readStructEnd()
11204
    iprot.readStructEnd()
11787
 
11205
 
Line 11808... Line 11226...
11808
      oprot.writeFieldEnd()
11226
      oprot.writeFieldEnd()
11809
    if self.firstSourceTime is not None:
11227
    if self.firstSourceTime is not None:
11810
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11228
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11811
      oprot.writeI64(self.firstSourceTime)
11229
      oprot.writeI64(self.firstSourceTime)
11812
      oprot.writeFieldEnd()
11230
      oprot.writeFieldEnd()
-
 
11231
    if self.userId is not None:
-
 
11232
      oprot.writeFieldBegin('userId', TType.I64, 6)
-
 
11233
      oprot.writeI64(self.userId)
-
 
11234
      oprot.writeFieldEnd()
11813
    oprot.writeFieldStop()
11235
    oprot.writeFieldStop()
11814
    oprot.writeStructEnd()
11236
    oprot.writeStructEnd()
11815
 
11237
 
11816
  def validate(self):
11238
  def validate(self):
11817
    return
11239
    return
Line 12322... Line 11744...
12322
        else:
11744
        else:
12323
          iprot.skip(ftype)
11745
          iprot.skip(ftype)
12324
      elif fid == 2:
11746
      elif fid == 2:
12325
        if ftype == TType.MAP:
11747
        if ftype == TType.MAP:
12326
          self.items = {}
11748
          self.items = {}
12327
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
11749
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
12328
          for _i153 in xrange(_size149):
11750
          for _i132 in xrange(_size128):
12329
            _key154 = iprot.readI64();
11751
            _key133 = iprot.readI64();
12330
            _val155 = iprot.readDouble();
11752
            _val134 = iprot.readDouble();
12331
            self.items[_key154] = _val155
11753
            self.items[_key133] = _val134
12332
          iprot.readMapEnd()
11754
          iprot.readMapEnd()
12333
        else:
11755
        else:
12334
          iprot.skip(ftype)
11756
          iprot.skip(ftype)
12335
      else:
11757
      else:
12336
        iprot.skip(ftype)
11758
        iprot.skip(ftype)
Line 12347... Line 11769...
12347
      oprot.writeI64(self.cartId)
11769
      oprot.writeI64(self.cartId)
12348
      oprot.writeFieldEnd()
11770
      oprot.writeFieldEnd()
12349
    if self.items is not None:
11771
    if self.items is not None:
12350
      oprot.writeFieldBegin('items', TType.MAP, 2)
11772
      oprot.writeFieldBegin('items', TType.MAP, 2)
12351
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11773
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
12352
      for kiter156,viter157 in self.items.items():
11774
      for kiter135,viter136 in self.items.items():
12353
        oprot.writeI64(kiter156)
11775
        oprot.writeI64(kiter135)
12354
        oprot.writeDouble(viter157)
11776
        oprot.writeDouble(viter136)
12355
      oprot.writeMapEnd()
11777
      oprot.writeMapEnd()
12356
      oprot.writeFieldEnd()
11778
      oprot.writeFieldEnd()
12357
    oprot.writeFieldStop()
11779
    oprot.writeFieldStop()
12358
    oprot.writeStructEnd()
11780
    oprot.writeStructEnd()
12359
 
11781
 
Line 12670... Line 12092...
12670
      if ftype == TType.STOP:
12092
      if ftype == TType.STOP:
12671
        break
12093
        break
12672
      if fid == 0:
12094
      if fid == 0:
12673
        if ftype == TType.LIST:
12095
        if ftype == TType.LIST:
12674
          self.success = []
12096
          self.success = []
12675
          (_etype161, _size158) = iprot.readListBegin()
12097
          (_etype140, _size137) = iprot.readListBegin()
12676
          for _i162 in xrange(_size158):
12098
          for _i141 in xrange(_size137):
12677
            _elem163 = User()
12099
            _elem142 = User()
12678
            _elem163.read(iprot)
12100
            _elem142.read(iprot)
12679
            self.success.append(_elem163)
12101
            self.success.append(_elem142)
12680
          iprot.readListEnd()
12102
          iprot.readListEnd()
12681
        else:
12103
        else:
12682
          iprot.skip(ftype)
12104
          iprot.skip(ftype)
12683
      else:
12105
      else:
12684
        iprot.skip(ftype)
12106
        iprot.skip(ftype)
Line 12691... Line 12113...
12691
      return
12113
      return
12692
    oprot.writeStructBegin('getAllUsers_result')
12114
    oprot.writeStructBegin('getAllUsers_result')
12693
    if self.success is not None:
12115
    if self.success is not None:
12694
      oprot.writeFieldBegin('success', TType.LIST, 0)
12116
      oprot.writeFieldBegin('success', TType.LIST, 0)
12695
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12117
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12696
      for iter164 in self.success:
12118
      for iter143 in self.success:
12697
        iter164.write(oprot)
12119
        iter143.write(oprot)
12698
      oprot.writeListEnd()
12120
      oprot.writeListEnd()
12699
      oprot.writeFieldEnd()
12121
      oprot.writeFieldEnd()
12700
    oprot.writeFieldStop()
12122
    oprot.writeFieldStop()
12701
    oprot.writeStructEnd()
12123
    oprot.writeStructEnd()
12702
 
12124
 
Line 12948... Line 12370...
12948
      if ftype == TType.STOP:
12370
      if ftype == TType.STOP:
12949
        break
12371
        break
12950
      if fid == 0:
12372
      if fid == 0:
12951
        if ftype == TType.LIST:
12373
        if ftype == TType.LIST:
12952
          self.success = []
12374
          self.success = []
12953
          (_etype168, _size165) = iprot.readListBegin()
12375
          (_etype147, _size144) = iprot.readListBegin()
12954
          for _i169 in xrange(_size165):
12376
          for _i148 in xrange(_size144):
12955
            _elem170 = UserNote()
12377
            _elem149 = UserNote()
12956
            _elem170.read(iprot)
12378
            _elem149.read(iprot)
12957
            self.success.append(_elem170)
12379
            self.success.append(_elem149)
12958
          iprot.readListEnd()
12380
          iprot.readListEnd()
12959
        else:
12381
        else:
12960
          iprot.skip(ftype)
12382
          iprot.skip(ftype)
12961
      else:
12383
      else:
12962
        iprot.skip(ftype)
12384
        iprot.skip(ftype)
Line 12969... Line 12391...
12969
      return
12391
      return
12970
    oprot.writeStructBegin('getUserNotes_result')
12392
    oprot.writeStructBegin('getUserNotes_result')
12971
    if self.success is not None:
12393
    if self.success is not None:
12972
      oprot.writeFieldBegin('success', TType.LIST, 0)
12394
      oprot.writeFieldBegin('success', TType.LIST, 0)
12973
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12974
      for iter171 in self.success:
12396
      for iter150 in self.success:
12975
        iter171.write(oprot)
12397
        iter150.write(oprot)
12976
      oprot.writeListEnd()
12398
      oprot.writeListEnd()
12977
      oprot.writeFieldEnd()
12399
      oprot.writeFieldEnd()
12978
    oprot.writeFieldStop()
12400
    oprot.writeFieldStop()
12979
    oprot.writeStructEnd()
12401
    oprot.writeStructEnd()
12980
 
12402
 
Line 13079... Line 12501...
13079
      if ftype == TType.STOP:
12501
      if ftype == TType.STOP:
13080
        break
12502
        break
13081
      if fid == 0:
12503
      if fid == 0:
13082
        if ftype == TType.LIST:
12504
        if ftype == TType.LIST:
13083
          self.success = []
12505
          self.success = []
13084
          (_etype175, _size172) = iprot.readListBegin()
12506
          (_etype154, _size151) = iprot.readListBegin()
13085
          for _i176 in xrange(_size172):
12507
          for _i155 in xrange(_size151):
13086
            _elem177 = iprot.readI64();
12508
            _elem156 = iprot.readI64();
13087
            self.success.append(_elem177)
12509
            self.success.append(_elem156)
13088
          iprot.readListEnd()
12510
          iprot.readListEnd()
13089
        else:
12511
        else:
13090
          iprot.skip(ftype)
12512
          iprot.skip(ftype)
13091
      elif fid == 1:
12513
      elif fid == 1:
13092
        if ftype == TType.STRUCT:
12514
        if ftype == TType.STRUCT:
Line 13105... Line 12527...
13105
      return
12527
      return
13106
    oprot.writeStructBegin('getMyResearchItems_result')
12528
    oprot.writeStructBegin('getMyResearchItems_result')
13107
    if self.success is not None:
12529
    if self.success is not None:
13108
      oprot.writeFieldBegin('success', TType.LIST, 0)
12530
      oprot.writeFieldBegin('success', TType.LIST, 0)
13109
      oprot.writeListBegin(TType.I64, len(self.success))
12531
      oprot.writeListBegin(TType.I64, len(self.success))
13110
      for iter178 in self.success:
12532
      for iter157 in self.success:
13111
        oprot.writeI64(iter178)
12533
        oprot.writeI64(iter157)
13112
      oprot.writeListEnd()
12534
      oprot.writeListEnd()
13113
      oprot.writeFieldEnd()
12535
      oprot.writeFieldEnd()
13114
    if self.scx is not None:
12536
    if self.scx is not None:
13115
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12537
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13116
      self.scx.write(oprot)
12538
      self.scx.write(oprot)
Line 13496... Line 12918...
13496
      if ftype == TType.STOP:
12918
      if ftype == TType.STOP:
13497
        break
12919
        break
13498
      if fid == 0:
12920
      if fid == 0:
13499
        if ftype == TType.LIST:
12921
        if ftype == TType.LIST:
13500
          self.success = []
12922
          self.success = []
13501
          (_etype182, _size179) = iprot.readListBegin()
12923
          (_etype161, _size158) = iprot.readListBegin()
13502
          for _i183 in xrange(_size179):
12924
          for _i162 in xrange(_size158):
13503
            _elem184 = iprot.readI64();
12925
            _elem163 = iprot.readI64();
13504
            self.success.append(_elem184)
12926
            self.success.append(_elem163)
13505
          iprot.readListEnd()
12927
          iprot.readListEnd()
13506
        else:
12928
        else:
13507
          iprot.skip(ftype)
12929
          iprot.skip(ftype)
13508
      elif fid == 1:
12930
      elif fid == 1:
13509
        if ftype == TType.STRUCT:
12931
        if ftype == TType.STRUCT:
Line 13522... Line 12944...
13522
      return
12944
      return
13523
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12945
    oprot.writeStructBegin('getBrowseHistoryItems_result')
13524
    if self.success is not None:
12946
    if self.success is not None:
13525
      oprot.writeFieldBegin('success', TType.LIST, 0)
12947
      oprot.writeFieldBegin('success', TType.LIST, 0)
13526
      oprot.writeListBegin(TType.I64, len(self.success))
12948
      oprot.writeListBegin(TType.I64, len(self.success))
13527
      for iter185 in self.success:
12949
      for iter164 in self.success:
13528
        oprot.writeI64(iter185)
12950
        oprot.writeI64(iter164)
13529
      oprot.writeListEnd()
12951
      oprot.writeListEnd()
13530
      oprot.writeFieldEnd()
12952
      oprot.writeFieldEnd()
13531
    if self.scx is not None:
12953
    if self.scx is not None:
13532
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12954
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13533
      self.scx.write(oprot)
12955
      self.scx.write(oprot)