Subversion Repositories SmartDukaan

Rev

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

Rev 3530 Rev 3554
Line 426... Line 426...
426
    Parameters:
426
    Parameters:
427
     - cartId
427
     - cartId
428
    """
428
    """
429
    pass
429
    pass
430
 
430
 
-
 
431
  def deleteDiscountsFromCart(self, cartId):
-
 
432
    """
-
 
433
    Deletes all the discounts associated with the cart
-
 
434
 
-
 
435
    Parameters:
-
 
436
     - cartId
-
 
437
    """
-
 
438
    pass
-
 
439
 
-
 
440
  def saveDiscounts(self, discounts):
-
 
441
    """
-
 
442
    Accepts a list of thrift objects of Discount type and saves them
-
 
443
 
-
 
444
    Parameters:
-
 
445
     - discounts
-
 
446
    """
-
 
447
    pass
-
 
448
 
431
  def createOrders(self, cartId, sessionSource, sessionStartTime):
449
  def createOrders(self, cartId, sessionSource, sessionStartTime):
432
    """
450
    """
433
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
451
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
434
 
452
 
435
    Parameters:
453
    Parameters:
Line 2361... Line 2379...
2361
    self._iprot.readMessageEnd()
2379
    self._iprot.readMessageEnd()
2362
    if result.scx is not None:
2380
    if result.scx is not None:
2363
      raise result.scx
2381
      raise result.scx
2364
    return
2382
    return
2365
 
2383
 
-
 
2384
  def deleteDiscountsFromCart(self, cartId):
-
 
2385
    """
-
 
2386
    Deletes all the discounts associated with the cart
-
 
2387
 
-
 
2388
    Parameters:
-
 
2389
     - cartId
-
 
2390
    """
-
 
2391
    self.send_deleteDiscountsFromCart(cartId)
-
 
2392
    self.recv_deleteDiscountsFromCart()
-
 
2393
 
-
 
2394
  def send_deleteDiscountsFromCart(self, cartId):
-
 
2395
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
-
 
2396
    args = deleteDiscountsFromCart_args()
-
 
2397
    args.cartId = cartId
-
 
2398
    args.write(self._oprot)
-
 
2399
    self._oprot.writeMessageEnd()
-
 
2400
    self._oprot.trans.flush()
-
 
2401
 
-
 
2402
  def recv_deleteDiscountsFromCart(self, ):
-
 
2403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2404
    if mtype == TMessageType.EXCEPTION:
-
 
2405
      x = TApplicationException()
-
 
2406
      x.read(self._iprot)
-
 
2407
      self._iprot.readMessageEnd()
-
 
2408
      raise x
-
 
2409
    result = deleteDiscountsFromCart_result()
-
 
2410
    result.read(self._iprot)
-
 
2411
    self._iprot.readMessageEnd()
-
 
2412
    if result.scx is not None:
-
 
2413
      raise result.scx
-
 
2414
    return
-
 
2415
 
-
 
2416
  def saveDiscounts(self, discounts):
-
 
2417
    """
-
 
2418
    Accepts a list of thrift objects of Discount type and saves them
-
 
2419
 
-
 
2420
    Parameters:
-
 
2421
     - discounts
-
 
2422
    """
-
 
2423
    self.send_saveDiscounts(discounts)
-
 
2424
    self.recv_saveDiscounts()
-
 
2425
 
-
 
2426
  def send_saveDiscounts(self, discounts):
-
 
2427
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
-
 
2428
    args = saveDiscounts_args()
-
 
2429
    args.discounts = discounts
-
 
2430
    args.write(self._oprot)
-
 
2431
    self._oprot.writeMessageEnd()
-
 
2432
    self._oprot.trans.flush()
-
 
2433
 
-
 
2434
  def recv_saveDiscounts(self, ):
-
 
2435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2436
    if mtype == TMessageType.EXCEPTION:
-
 
2437
      x = TApplicationException()
-
 
2438
      x.read(self._iprot)
-
 
2439
      self._iprot.readMessageEnd()
-
 
2440
      raise x
-
 
2441
    result = saveDiscounts_result()
-
 
2442
    result.read(self._iprot)
-
 
2443
    self._iprot.readMessageEnd()
-
 
2444
    if result.scx is not None:
-
 
2445
      raise result.scx
-
 
2446
    return
-
 
2447
 
2366
  def createOrders(self, cartId, sessionSource, sessionStartTime):
2448
  def createOrders(self, cartId, sessionSource, sessionStartTime):
2367
    """
2449
    """
2368
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2450
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2369
 
2451
 
2370
    Parameters:
2452
    Parameters:
Line 2957... Line 3039...
2957
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
3039
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2958
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3040
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2959
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
3041
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
2960
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3042
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2961
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3043
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
-
 
3044
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
-
 
3045
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
2962
    self._processMap["createOrders"] = Processor.process_createOrders
3046
    self._processMap["createOrders"] = Processor.process_createOrders
2963
    self._processMap["validateCart"] = Processor.process_validateCart
3047
    self._processMap["validateCart"] = Processor.process_validateCart
2964
    self._processMap["mergeCart"] = Processor.process_mergeCart
3048
    self._processMap["mergeCart"] = Processor.process_mergeCart
2965
    self._processMap["checkOut"] = Processor.process_checkOut
3049
    self._processMap["checkOut"] = Processor.process_checkOut
2966
    self._processMap["resetCart"] = Processor.process_resetCart
3050
    self._processMap["resetCart"] = Processor.process_resetCart
Line 3731... Line 3815...
3731
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3815
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3816
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3817
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3818
    oprot.trans.flush()
3735
 
3819
 
-
 
3820
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
-
 
3821
    args = deleteDiscountsFromCart_args()
-
 
3822
    args.read(iprot)
-
 
3823
    iprot.readMessageEnd()
-
 
3824
    result = deleteDiscountsFromCart_result()
-
 
3825
    try:
-
 
3826
      self._handler.deleteDiscountsFromCart(args.cartId)
-
 
3827
    except ShoppingCartException, scx:
-
 
3828
      result.scx = scx
-
 
3829
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
-
 
3830
    result.write(oprot)
-
 
3831
    oprot.writeMessageEnd()
-
 
3832
    oprot.trans.flush()
-
 
3833
 
-
 
3834
  def process_saveDiscounts(self, seqid, iprot, oprot):
-
 
3835
    args = saveDiscounts_args()
-
 
3836
    args.read(iprot)
-
 
3837
    iprot.readMessageEnd()
-
 
3838
    result = saveDiscounts_result()
-
 
3839
    try:
-
 
3840
      self._handler.saveDiscounts(args.discounts)
-
 
3841
    except ShoppingCartException, scx:
-
 
3842
      result.scx = scx
-
 
3843
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
-
 
3844
    result.write(oprot)
-
 
3845
    oprot.writeMessageEnd()
-
 
3846
    oprot.trans.flush()
-
 
3847
 
3736
  def process_createOrders(self, seqid, iprot, oprot):
3848
  def process_createOrders(self, seqid, iprot, oprot):
3737
    args = createOrders_args()
3849
    args = createOrders_args()
3738
    args.read(iprot)
3850
    args.read(iprot)
3739
    iprot.readMessageEnd()
3851
    iprot.readMessageEnd()
3740
    result = createOrders_result()
3852
    result = createOrders_result()
Line 6393... Line 6505...
6393
      if ftype == TType.STOP:
6505
      if ftype == TType.STOP:
6394
        break
6506
        break
6395
      if fid == 0:
6507
      if fid == 0:
6396
        if ftype == TType.LIST:
6508
        if ftype == TType.LIST:
6397
          self.success = []
6509
          self.success = []
6398
          (_etype38, _size35) = iprot.readListBegin()
6510
          (_etype45, _size42) = iprot.readListBegin()
6399
          for _i39 in xrange(_size35):
6511
          for _i46 in xrange(_size42):
6400
            _elem40 = Address()
6512
            _elem47 = Address()
6401
            _elem40.read(iprot)
6513
            _elem47.read(iprot)
6402
            self.success.append(_elem40)
6514
            self.success.append(_elem47)
6403
          iprot.readListEnd()
6515
          iprot.readListEnd()
6404
        else:
6516
        else:
6405
          iprot.skip(ftype)
6517
          iprot.skip(ftype)
6406
      elif fid == 1:
6518
      elif fid == 1:
6407
        if ftype == TType.STRUCT:
6519
        if ftype == TType.STRUCT:
Line 6420... Line 6532...
6420
      return
6532
      return
6421
    oprot.writeStructBegin('getAllAddressesForUser_result')
6533
    oprot.writeStructBegin('getAllAddressesForUser_result')
6422
    if self.success is not None:
6534
    if self.success is not None:
6423
      oprot.writeFieldBegin('success', TType.LIST, 0)
6535
      oprot.writeFieldBegin('success', TType.LIST, 0)
6424
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6536
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6425
      for iter41 in self.success:
6537
      for iter48 in self.success:
6426
        iter41.write(oprot)
6538
        iter48.write(oprot)
6427
      oprot.writeListEnd()
6539
      oprot.writeListEnd()
6428
      oprot.writeFieldEnd()
6540
      oprot.writeFieldEnd()
6429
    if self.ucx is not None:
6541
    if self.ucx is not None:
6430
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6542
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6431
      self.ucx.write(oprot)
6543
      self.ucx.write(oprot)
Line 7280... Line 7392...
7280
      if ftype == TType.STOP:
7392
      if ftype == TType.STOP:
7281
        break
7393
        break
7282
      if fid == 0:
7394
      if fid == 0:
7283
        if ftype == TType.LIST:
7395
        if ftype == TType.LIST:
7284
          self.success = []
7396
          self.success = []
7285
          (_etype45, _size42) = iprot.readListBegin()
7397
          (_etype52, _size49) = iprot.readListBegin()
7286
          for _i46 in xrange(_size42):
7398
          for _i53 in xrange(_size49):
7287
            _elem47 = UserCommunication()
7399
            _elem54 = UserCommunication()
7288
            _elem47.read(iprot)
7400
            _elem54.read(iprot)
7289
            self.success.append(_elem47)
7401
            self.success.append(_elem54)
7290
          iprot.readListEnd()
7402
          iprot.readListEnd()
7291
        else:
7403
        else:
7292
          iprot.skip(ftype)
7404
          iprot.skip(ftype)
7293
      elif fid == 1:
7405
      elif fid == 1:
7294
        if ftype == TType.STRUCT:
7406
        if ftype == TType.STRUCT:
Line 7307... Line 7419...
7307
      return
7419
      return
7308
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7420
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7309
    if self.success is not None:
7421
    if self.success is not None:
7310
      oprot.writeFieldBegin('success', TType.LIST, 0)
7422
      oprot.writeFieldBegin('success', TType.LIST, 0)
7311
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7423
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7312
      for iter48 in self.success:
7424
      for iter55 in self.success:
7313
        iter48.write(oprot)
7425
        iter55.write(oprot)
7314
      oprot.writeListEnd()
7426
      oprot.writeListEnd()
7315
      oprot.writeFieldEnd()
7427
      oprot.writeFieldEnd()
7316
    if self.ucx is not None:
7428
    if self.ucx is not None:
7317
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7429
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7318
      self.ucx.write(oprot)
7430
      self.ucx.write(oprot)
Line 7403... Line 7515...
7403
      if ftype == TType.STOP:
7515
      if ftype == TType.STOP:
7404
        break
7516
        break
7405
      if fid == 0:
7517
      if fid == 0:
7406
        if ftype == TType.LIST:
7518
        if ftype == TType.LIST:
7407
          self.success = []
7519
          self.success = []
7408
          (_etype52, _size49) = iprot.readListBegin()
7520
          (_etype59, _size56) = iprot.readListBegin()
7409
          for _i53 in xrange(_size49):
7521
          for _i60 in xrange(_size56):
7410
            _elem54 = UserCommunication()
7522
            _elem61 = UserCommunication()
7411
            _elem54.read(iprot)
7523
            _elem61.read(iprot)
7412
            self.success.append(_elem54)
7524
            self.success.append(_elem61)
7413
          iprot.readListEnd()
7525
          iprot.readListEnd()
7414
        else:
7526
        else:
7415
          iprot.skip(ftype)
7527
          iprot.skip(ftype)
7416
      elif fid == 1:
7528
      elif fid == 1:
7417
        if ftype == TType.STRUCT:
7529
        if ftype == TType.STRUCT:
Line 7430... Line 7542...
7430
      return
7542
      return
7431
    oprot.writeStructBegin('getAllUserCommunications_result')
7543
    oprot.writeStructBegin('getAllUserCommunications_result')
7432
    if self.success is not None:
7544
    if self.success is not None:
7433
      oprot.writeFieldBegin('success', TType.LIST, 0)
7545
      oprot.writeFieldBegin('success', TType.LIST, 0)
7434
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7546
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7435
      for iter55 in self.success:
7547
      for iter62 in self.success:
7436
        iter55.write(oprot)
7548
        iter62.write(oprot)
7437
      oprot.writeListEnd()
7549
      oprot.writeListEnd()
7438
      oprot.writeFieldEnd()
7550
      oprot.writeFieldEnd()
7439
    if self.ucx is not None:
7551
    if self.ucx is not None:
7440
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7552
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7441
      self.ucx.write(oprot)
7553
      self.ucx.write(oprot)
Line 7671... Line 7783...
7671
      if ftype == TType.STOP:
7783
      if ftype == TType.STOP:
7672
        break
7784
        break
7673
      if fid == 0:
7785
      if fid == 0:
7674
        if ftype == TType.LIST:
7786
        if ftype == TType.LIST:
7675
          self.success = []
7787
          self.success = []
7676
          (_etype59, _size56) = iprot.readListBegin()
7788
          (_etype66, _size63) = iprot.readListBegin()
7677
          for _i60 in xrange(_size56):
7789
          for _i67 in xrange(_size63):
7678
            _elem61 = MasterAffiliate()
7790
            _elem68 = MasterAffiliate()
7679
            _elem61.read(iprot)
7791
            _elem68.read(iprot)
7680
            self.success.append(_elem61)
7792
            self.success.append(_elem68)
7681
          iprot.readListEnd()
7793
          iprot.readListEnd()
7682
        else:
7794
        else:
7683
          iprot.skip(ftype)
7795
          iprot.skip(ftype)
7684
      elif fid == 1:
7796
      elif fid == 1:
7685
        if ftype == TType.STRUCT:
7797
        if ftype == TType.STRUCT:
Line 7698... Line 7810...
7698
      return
7810
      return
7699
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7811
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7700
    if self.success is not None:
7812
    if self.success is not None:
7701
      oprot.writeFieldBegin('success', TType.LIST, 0)
7813
      oprot.writeFieldBegin('success', TType.LIST, 0)
7702
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7814
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7703
      for iter62 in self.success:
7815
      for iter69 in self.success:
7704
        iter62.write(oprot)
7816
        iter69.write(oprot)
7705
      oprot.writeListEnd()
7817
      oprot.writeListEnd()
7706
      oprot.writeFieldEnd()
7818
      oprot.writeFieldEnd()
7707
    if self.utx is not None:
7819
    if self.utx is not None:
7708
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7820
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7709
      self.utx.write(oprot)
7821
      self.utx.write(oprot)
Line 8646... Line 8758...
8646
      if ftype == TType.STOP:
8758
      if ftype == TType.STOP:
8647
        break
8759
        break
8648
      if fid == 0:
8760
      if fid == 0:
8649
        if ftype == TType.LIST:
8761
        if ftype == TType.LIST:
8650
          self.success = []
8762
          self.success = []
8651
          (_etype66, _size63) = iprot.readListBegin()
8763
          (_etype73, _size70) = iprot.readListBegin()
8652
          for _i67 in xrange(_size63):
8764
          for _i74 in xrange(_size70):
8653
            _elem68 = Affiliate()
8765
            _elem75 = Affiliate()
8654
            _elem68.read(iprot)
8766
            _elem75.read(iprot)
8655
            self.success.append(_elem68)
8767
            self.success.append(_elem75)
8656
          iprot.readListEnd()
8768
          iprot.readListEnd()
8657
        else:
8769
        else:
8658
          iprot.skip(ftype)
8770
          iprot.skip(ftype)
8659
      elif fid == 1:
8771
      elif fid == 1:
8660
        if ftype == TType.STRUCT:
8772
        if ftype == TType.STRUCT:
Line 8673... Line 8785...
8673
      return
8785
      return
8674
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8786
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8675
    if self.success is not None:
8787
    if self.success is not None:
8676
      oprot.writeFieldBegin('success', TType.LIST, 0)
8788
      oprot.writeFieldBegin('success', TType.LIST, 0)
8677
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8789
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8678
      for iter69 in self.success:
8790
      for iter76 in self.success:
8679
        iter69.write(oprot)
8791
        iter76.write(oprot)
8680
      oprot.writeListEnd()
8792
      oprot.writeListEnd()
8681
      oprot.writeFieldEnd()
8793
      oprot.writeFieldEnd()
8682
    if self.utx is not None:
8794
    if self.utx is not None:
8683
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8795
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8684
      self.utx.write(oprot)
8796
      self.utx.write(oprot)
Line 9136... Line 9248...
9136
      if ftype == TType.STOP:
9248
      if ftype == TType.STOP:
9137
        break
9249
        break
9138
      if fid == 0:
9250
      if fid == 0:
9139
        if ftype == TType.LIST:
9251
        if ftype == TType.LIST:
9140
          self.success = []
9252
          self.success = []
9141
          (_etype73, _size70) = iprot.readListBegin()
9253
          (_etype80, _size77) = iprot.readListBegin()
9142
          for _i74 in xrange(_size70):
9254
          for _i81 in xrange(_size77):
9143
            _elem75 = TrackLog()
9255
            _elem82 = TrackLog()
9144
            _elem75.read(iprot)
9256
            _elem82.read(iprot)
9145
            self.success.append(_elem75)
9257
            self.success.append(_elem82)
9146
          iprot.readListEnd()
9258
          iprot.readListEnd()
9147
        else:
9259
        else:
9148
          iprot.skip(ftype)
9260
          iprot.skip(ftype)
9149
      elif fid == 1:
9261
      elif fid == 1:
9150
        if ftype == TType.STRUCT:
9262
        if ftype == TType.STRUCT:
Line 9163... Line 9275...
9163
      return
9275
      return
9164
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9276
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9165
    if self.success is not None:
9277
    if self.success is not None:
9166
      oprot.writeFieldBegin('success', TType.LIST, 0)
9278
      oprot.writeFieldBegin('success', TType.LIST, 0)
9167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9279
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9168
      for iter76 in self.success:
9280
      for iter83 in self.success:
9169
        iter76.write(oprot)
9281
        iter83.write(oprot)
9170
      oprot.writeListEnd()
9282
      oprot.writeListEnd()
9171
      oprot.writeFieldEnd()
9283
      oprot.writeFieldEnd()
9172
    if self.utx is not None:
9284
    if self.utx is not None:
9173
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9285
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9174
      self.utx.write(oprot)
9286
      self.utx.write(oprot)
Line 9277... Line 9389...
9277
      if ftype == TType.STOP:
9389
      if ftype == TType.STOP:
9278
        break
9390
        break
9279
      if fid == 0:
9391
      if fid == 0:
9280
        if ftype == TType.LIST:
9392
        if ftype == TType.LIST:
9281
          self.success = []
9393
          self.success = []
9282
          (_etype80, _size77) = iprot.readListBegin()
9394
          (_etype87, _size84) = iprot.readListBegin()
9283
          for _i81 in xrange(_size77):
9395
          for _i88 in xrange(_size84):
9284
            _elem82 = TrackLog()
9396
            _elem89 = TrackLog()
9285
            _elem82.read(iprot)
9397
            _elem89.read(iprot)
9286
            self.success.append(_elem82)
9398
            self.success.append(_elem89)
9287
          iprot.readListEnd()
9399
          iprot.readListEnd()
9288
        else:
9400
        else:
9289
          iprot.skip(ftype)
9401
          iprot.skip(ftype)
9290
      elif fid == 1:
9402
      elif fid == 1:
9291
        if ftype == TType.STRUCT:
9403
        if ftype == TType.STRUCT:
Line 9304... Line 9416...
9304
      return
9416
      return
9305
    oprot.writeStructBegin('getTrackLogsByUser_result')
9417
    oprot.writeStructBegin('getTrackLogsByUser_result')
9306
    if self.success is not None:
9418
    if self.success is not None:
9307
      oprot.writeFieldBegin('success', TType.LIST, 0)
9419
      oprot.writeFieldBegin('success', TType.LIST, 0)
9308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9420
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9309
      for iter83 in self.success:
9421
      for iter90 in self.success:
9310
        iter83.write(oprot)
9422
        iter90.write(oprot)
9311
      oprot.writeListEnd()
9423
      oprot.writeListEnd()
9312
      oprot.writeFieldEnd()
9424
      oprot.writeFieldEnd()
9313
    if self.utx is not None:
9425
    if self.utx is not None:
9314
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9426
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9315
      self.utx.write(oprot)
9427
      self.utx.write(oprot)
Line 9442... Line 9554...
9442
      if ftype == TType.STOP:
9554
      if ftype == TType.STOP:
9443
        break
9555
        break
9444
      if fid == 0:
9556
      if fid == 0:
9445
        if ftype == TType.LIST:
9557
        if ftype == TType.LIST:
9446
          self.success = []
9558
          self.success = []
9447
          (_etype87, _size84) = iprot.readListBegin()
9559
          (_etype94, _size91) = iprot.readListBegin()
9448
          for _i88 in xrange(_size84):
9560
          for _i95 in xrange(_size91):
9449
            _elem89 = TrackLog()
9561
            _elem96 = TrackLog()
9450
            _elem89.read(iprot)
9562
            _elem96.read(iprot)
9451
            self.success.append(_elem89)
9563
            self.success.append(_elem96)
9452
          iprot.readListEnd()
9564
          iprot.readListEnd()
9453
        else:
9565
        else:
9454
          iprot.skip(ftype)
9566
          iprot.skip(ftype)
9455
      elif fid == 1:
9567
      elif fid == 1:
9456
        if ftype == TType.STRUCT:
9568
        if ftype == TType.STRUCT:
Line 9469... Line 9581...
9469
      return
9581
      return
9470
    oprot.writeStructBegin('getTrackLogs_result')
9582
    oprot.writeStructBegin('getTrackLogs_result')
9471
    if self.success is not None:
9583
    if self.success is not None:
9472
      oprot.writeFieldBegin('success', TType.LIST, 0)
9584
      oprot.writeFieldBegin('success', TType.LIST, 0)
9473
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9585
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9474
      for iter90 in self.success:
9586
      for iter97 in self.success:
9475
        iter90.write(oprot)
9587
        iter97.write(oprot)
9476
      oprot.writeListEnd()
9588
      oprot.writeListEnd()
9477
      oprot.writeFieldEnd()
9589
      oprot.writeFieldEnd()
9478
    if self.utx is not None:
9590
    if self.utx is not None:
9479
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9591
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9480
      self.utx.write(oprot)
9592
      self.utx.write(oprot)
Line 9993... Line 10105...
9993
      if ftype == TType.STOP:
10105
      if ftype == TType.STOP:
9994
        break
10106
        break
9995
      if fid == 0:
10107
      if fid == 0:
9996
        if ftype == TType.LIST:
10108
        if ftype == TType.LIST:
9997
          self.success = []
10109
          self.success = []
9998
          (_etype94, _size91) = iprot.readListBegin()
10110
          (_etype101, _size98) = iprot.readListBegin()
9999
          for _i95 in xrange(_size91):
10111
          for _i102 in xrange(_size98):
10000
            _elem96 = Cart()
10112
            _elem103 = Cart()
10001
            _elem96.read(iprot)
10113
            _elem103.read(iprot)
10002
            self.success.append(_elem96)
10114
            self.success.append(_elem103)
10003
          iprot.readListEnd()
10115
          iprot.readListEnd()
10004
        else:
10116
        else:
10005
          iprot.skip(ftype)
10117
          iprot.skip(ftype)
10006
      elif fid == 1:
10118
      elif fid == 1:
10007
        if ftype == TType.STRUCT:
10119
        if ftype == TType.STRUCT:
Line 10020... Line 10132...
10020
      return
10132
      return
10021
    oprot.writeStructBegin('getCartsForUser_result')
10133
    oprot.writeStructBegin('getCartsForUser_result')
10022
    if self.success is not None:
10134
    if self.success is not None:
10023
      oprot.writeFieldBegin('success', TType.LIST, 0)
10135
      oprot.writeFieldBegin('success', TType.LIST, 0)
10024
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10136
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10025
      for iter97 in self.success:
10137
      for iter104 in self.success:
10026
        iter97.write(oprot)
10138
        iter104.write(oprot)
10027
      oprot.writeListEnd()
10139
      oprot.writeListEnd()
10028
      oprot.writeFieldEnd()
10140
      oprot.writeFieldEnd()
10029
    if self.scx is not None:
10141
    if self.scx is not None:
10030
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10142
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10031
      self.scx.write(oprot)
10143
      self.scx.write(oprot)
Line 10134... Line 10246...
10134
      if ftype == TType.STOP:
10246
      if ftype == TType.STOP:
10135
        break
10247
        break
10136
      if fid == 0:
10248
      if fid == 0:
10137
        if ftype == TType.LIST:
10249
        if ftype == TType.LIST:
10138
          self.success = []
10250
          self.success = []
10139
          (_etype101, _size98) = iprot.readListBegin()
10251
          (_etype108, _size105) = iprot.readListBegin()
10140
          for _i102 in xrange(_size98):
10252
          for _i109 in xrange(_size105):
10141
            _elem103 = Cart()
10253
            _elem110 = Cart()
10142
            _elem103.read(iprot)
10254
            _elem110.read(iprot)
10143
            self.success.append(_elem103)
10255
            self.success.append(_elem110)
10144
          iprot.readListEnd()
10256
          iprot.readListEnd()
10145
        else:
10257
        else:
10146
          iprot.skip(ftype)
10258
          iprot.skip(ftype)
10147
      elif fid == 1:
10259
      elif fid == 1:
10148
        if ftype == TType.STRUCT:
10260
        if ftype == TType.STRUCT:
Line 10161... Line 10273...
10161
      return
10273
      return
10162
    oprot.writeStructBegin('getCartsByStatus_result')
10274
    oprot.writeStructBegin('getCartsByStatus_result')
10163
    if self.success is not None:
10275
    if self.success is not None:
10164
      oprot.writeFieldBegin('success', TType.LIST, 0)
10276
      oprot.writeFieldBegin('success', TType.LIST, 0)
10165
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10277
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10166
      for iter104 in self.success:
10278
      for iter111 in self.success:
10167
        iter104.write(oprot)
10279
        iter111.write(oprot)
10168
      oprot.writeListEnd()
10280
      oprot.writeListEnd()
10169
      oprot.writeFieldEnd()
10281
      oprot.writeFieldEnd()
10170
    if self.scx is not None:
10282
    if self.scx is not None:
10171
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10283
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10172
      self.scx.write(oprot)
10284
      self.scx.write(oprot)
Line 10299... Line 10411...
10299
      if ftype == TType.STOP:
10411
      if ftype == TType.STOP:
10300
        break
10412
        break
10301
      if fid == 0:
10413
      if fid == 0:
10302
        if ftype == TType.LIST:
10414
        if ftype == TType.LIST:
10303
          self.success = []
10415
          self.success = []
10304
          (_etype108, _size105) = iprot.readListBegin()
10416
          (_etype115, _size112) = iprot.readListBegin()
10305
          for _i109 in xrange(_size105):
10417
          for _i116 in xrange(_size112):
10306
            _elem110 = Cart()
10418
            _elem117 = Cart()
10307
            _elem110.read(iprot)
10419
            _elem117.read(iprot)
10308
            self.success.append(_elem110)
10420
            self.success.append(_elem117)
10309
          iprot.readListEnd()
10421
          iprot.readListEnd()
10310
        else:
10422
        else:
10311
          iprot.skip(ftype)
10423
          iprot.skip(ftype)
10312
      elif fid == 1:
10424
      elif fid == 1:
10313
        if ftype == TType.STRUCT:
10425
        if ftype == TType.STRUCT:
Line 10326... Line 10438...
10326
      return
10438
      return
10327
    oprot.writeStructBegin('getCartsByTime_result')
10439
    oprot.writeStructBegin('getCartsByTime_result')
10328
    if self.success is not None:
10440
    if self.success is not None:
10329
      oprot.writeFieldBegin('success', TType.LIST, 0)
10441
      oprot.writeFieldBegin('success', TType.LIST, 0)
10330
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10442
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10331
      for iter111 in self.success:
10443
      for iter118 in self.success:
10332
        iter111.write(oprot)
10444
        iter118.write(oprot)
10333
      oprot.writeListEnd()
10445
      oprot.writeListEnd()
10334
      oprot.writeFieldEnd()
10446
      oprot.writeFieldEnd()
10335
    if self.scx is not None:
10447
    if self.scx is not None:
10336
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10448
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10337
      self.scx.write(oprot)
10449
      self.scx.write(oprot)
Line 11475... Line 11587...
11475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11476
 
11588
 
11477
  def __ne__(self, other):
11589
  def __ne__(self, other):
11478
    return not (self == other)
11590
    return not (self == other)
11479
 
11591
 
-
 
11592
class deleteDiscountsFromCart_args:
-
 
11593
  """
-
 
11594
  Attributes:
-
 
11595
   - cartId
-
 
11596
  """
-
 
11597
 
-
 
11598
  thrift_spec = (
-
 
11599
    None, # 0
-
 
11600
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
11601
  )
-
 
11602
 
-
 
11603
  def __init__(self, cartId=None,):
-
 
11604
    self.cartId = cartId
-
 
11605
 
-
 
11606
  def read(self, iprot):
-
 
11607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11609
      return
-
 
11610
    iprot.readStructBegin()
-
 
11611
    while True:
-
 
11612
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11613
      if ftype == TType.STOP:
-
 
11614
        break
-
 
11615
      if fid == 1:
-
 
11616
        if ftype == TType.I64:
-
 
11617
          self.cartId = iprot.readI64();
-
 
11618
        else:
-
 
11619
          iprot.skip(ftype)
-
 
11620
      else:
-
 
11621
        iprot.skip(ftype)
-
 
11622
      iprot.readFieldEnd()
-
 
11623
    iprot.readStructEnd()
-
 
11624
 
-
 
11625
  def write(self, oprot):
-
 
11626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11628
      return
-
 
11629
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
-
 
11630
    if self.cartId is not None:
-
 
11631
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
11632
      oprot.writeI64(self.cartId)
-
 
11633
      oprot.writeFieldEnd()
-
 
11634
    oprot.writeFieldStop()
-
 
11635
    oprot.writeStructEnd()
-
 
11636
 
-
 
11637
  def validate(self):
-
 
11638
    return
-
 
11639
 
-
 
11640
 
-
 
11641
  def __repr__(self):
-
 
11642
    L = ['%s=%r' % (key, value)
-
 
11643
      for key, value in self.__dict__.iteritems()]
-
 
11644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11645
 
-
 
11646
  def __eq__(self, other):
-
 
11647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11648
 
-
 
11649
  def __ne__(self, other):
-
 
11650
    return not (self == other)
-
 
11651
 
-
 
11652
class deleteDiscountsFromCart_result:
-
 
11653
  """
-
 
11654
  Attributes:
-
 
11655
   - scx
-
 
11656
  """
-
 
11657
 
-
 
11658
  thrift_spec = (
-
 
11659
    None, # 0
-
 
11660
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
11661
  )
-
 
11662
 
-
 
11663
  def __init__(self, scx=None,):
-
 
11664
    self.scx = scx
-
 
11665
 
-
 
11666
  def read(self, iprot):
-
 
11667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11669
      return
-
 
11670
    iprot.readStructBegin()
-
 
11671
    while True:
-
 
11672
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11673
      if ftype == TType.STOP:
-
 
11674
        break
-
 
11675
      if fid == 1:
-
 
11676
        if ftype == TType.STRUCT:
-
 
11677
          self.scx = ShoppingCartException()
-
 
11678
          self.scx.read(iprot)
-
 
11679
        else:
-
 
11680
          iprot.skip(ftype)
-
 
11681
      else:
-
 
11682
        iprot.skip(ftype)
-
 
11683
      iprot.readFieldEnd()
-
 
11684
    iprot.readStructEnd()
-
 
11685
 
-
 
11686
  def write(self, oprot):
-
 
11687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11689
      return
-
 
11690
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
-
 
11691
    if self.scx is not None:
-
 
11692
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11693
      self.scx.write(oprot)
-
 
11694
      oprot.writeFieldEnd()
-
 
11695
    oprot.writeFieldStop()
-
 
11696
    oprot.writeStructEnd()
-
 
11697
 
-
 
11698
  def validate(self):
-
 
11699
    return
-
 
11700
 
-
 
11701
 
-
 
11702
  def __repr__(self):
-
 
11703
    L = ['%s=%r' % (key, value)
-
 
11704
      for key, value in self.__dict__.iteritems()]
-
 
11705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11706
 
-
 
11707
  def __eq__(self, other):
-
 
11708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11709
 
-
 
11710
  def __ne__(self, other):
-
 
11711
    return not (self == other)
-
 
11712
 
-
 
11713
class saveDiscounts_args:
-
 
11714
  """
-
 
11715
  Attributes:
-
 
11716
   - discounts
-
 
11717
  """
-
 
11718
 
-
 
11719
  thrift_spec = (
-
 
11720
    None, # 0
-
 
11721
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
-
 
11722
  )
-
 
11723
 
-
 
11724
  def __init__(self, discounts=None,):
-
 
11725
    self.discounts = discounts
-
 
11726
 
-
 
11727
  def read(self, iprot):
-
 
11728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11730
      return
-
 
11731
    iprot.readStructBegin()
-
 
11732
    while True:
-
 
11733
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11734
      if ftype == TType.STOP:
-
 
11735
        break
-
 
11736
      if fid == 1:
-
 
11737
        if ftype == TType.LIST:
-
 
11738
          self.discounts = []
-
 
11739
          (_etype122, _size119) = iprot.readListBegin()
-
 
11740
          for _i123 in xrange(_size119):
-
 
11741
            _elem124 = Discount()
-
 
11742
            _elem124.read(iprot)
-
 
11743
            self.discounts.append(_elem124)
-
 
11744
          iprot.readListEnd()
-
 
11745
        else:
-
 
11746
          iprot.skip(ftype)
-
 
11747
      else:
-
 
11748
        iprot.skip(ftype)
-
 
11749
      iprot.readFieldEnd()
-
 
11750
    iprot.readStructEnd()
-
 
11751
 
-
 
11752
  def write(self, oprot):
-
 
11753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11755
      return
-
 
11756
    oprot.writeStructBegin('saveDiscounts_args')
-
 
11757
    if self.discounts is not None:
-
 
11758
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
-
 
11759
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
-
 
11760
      for iter125 in self.discounts:
-
 
11761
        iter125.write(oprot)
-
 
11762
      oprot.writeListEnd()
-
 
11763
      oprot.writeFieldEnd()
-
 
11764
    oprot.writeFieldStop()
-
 
11765
    oprot.writeStructEnd()
-
 
11766
 
-
 
11767
  def validate(self):
-
 
11768
    return
-
 
11769
 
-
 
11770
 
-
 
11771
  def __repr__(self):
-
 
11772
    L = ['%s=%r' % (key, value)
-
 
11773
      for key, value in self.__dict__.iteritems()]
-
 
11774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11775
 
-
 
11776
  def __eq__(self, other):
-
 
11777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11778
 
-
 
11779
  def __ne__(self, other):
-
 
11780
    return not (self == other)
-
 
11781
 
-
 
11782
class saveDiscounts_result:
-
 
11783
  """
-
 
11784
  Attributes:
-
 
11785
   - scx
-
 
11786
  """
-
 
11787
 
-
 
11788
  thrift_spec = (
-
 
11789
    None, # 0
-
 
11790
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
11791
  )
-
 
11792
 
-
 
11793
  def __init__(self, scx=None,):
-
 
11794
    self.scx = scx
-
 
11795
 
-
 
11796
  def read(self, iprot):
-
 
11797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11799
      return
-
 
11800
    iprot.readStructBegin()
-
 
11801
    while True:
-
 
11802
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11803
      if ftype == TType.STOP:
-
 
11804
        break
-
 
11805
      if fid == 1:
-
 
11806
        if ftype == TType.STRUCT:
-
 
11807
          self.scx = ShoppingCartException()
-
 
11808
          self.scx.read(iprot)
-
 
11809
        else:
-
 
11810
          iprot.skip(ftype)
-
 
11811
      else:
-
 
11812
        iprot.skip(ftype)
-
 
11813
      iprot.readFieldEnd()
-
 
11814
    iprot.readStructEnd()
-
 
11815
 
-
 
11816
  def write(self, oprot):
-
 
11817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11819
      return
-
 
11820
    oprot.writeStructBegin('saveDiscounts_result')
-
 
11821
    if self.scx is not None:
-
 
11822
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11823
      self.scx.write(oprot)
-
 
11824
      oprot.writeFieldEnd()
-
 
11825
    oprot.writeFieldStop()
-
 
11826
    oprot.writeStructEnd()
-
 
11827
 
-
 
11828
  def validate(self):
-
 
11829
    return
-
 
11830
 
-
 
11831
 
-
 
11832
  def __repr__(self):
-
 
11833
    L = ['%s=%r' % (key, value)
-
 
11834
      for key, value in self.__dict__.iteritems()]
-
 
11835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11836
 
-
 
11837
  def __eq__(self, other):
-
 
11838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11839
 
-
 
11840
  def __ne__(self, other):
-
 
11841
    return not (self == other)
-
 
11842
 
11480
class createOrders_args:
11843
class createOrders_args:
11481
  """
11844
  """
11482
  Attributes:
11845
  Attributes:
11483
   - cartId
11846
   - cartId
11484
   - sessionSource
11847
   - sessionSource
Line 12043... Line 12406...
12043
        else:
12406
        else:
12044
          iprot.skip(ftype)
12407
          iprot.skip(ftype)
12045
      elif fid == 2:
12408
      elif fid == 2:
12046
        if ftype == TType.MAP:
12409
        if ftype == TType.MAP:
12047
          self.items = {}
12410
          self.items = {}
12048
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
12411
          (_ktype127, _vtype128, _size126 ) = iprot.readMapBegin() 
12049
          for _i116 in xrange(_size112):
12412
          for _i130 in xrange(_size126):
12050
            _key117 = iprot.readI64();
12413
            _key131 = iprot.readI64();
12051
            _val118 = iprot.readDouble();
12414
            _val132 = iprot.readDouble();
12052
            self.items[_key117] = _val118
12415
            self.items[_key131] = _val132
12053
          iprot.readMapEnd()
12416
          iprot.readMapEnd()
12054
        else:
12417
        else:
12055
          iprot.skip(ftype)
12418
          iprot.skip(ftype)
12056
      else:
12419
      else:
12057
        iprot.skip(ftype)
12420
        iprot.skip(ftype)
Line 12068... Line 12431...
12068
      oprot.writeI64(self.cartId)
12431
      oprot.writeI64(self.cartId)
12069
      oprot.writeFieldEnd()
12432
      oprot.writeFieldEnd()
12070
    if self.items is not None:
12433
    if self.items is not None:
12071
      oprot.writeFieldBegin('items', TType.MAP, 2)
12434
      oprot.writeFieldBegin('items', TType.MAP, 2)
12072
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
12435
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
12073
      for kiter119,viter120 in self.items.items():
12436
      for kiter133,viter134 in self.items.items():
12074
        oprot.writeI64(kiter119)
12437
        oprot.writeI64(kiter133)
12075
        oprot.writeDouble(viter120)
12438
        oprot.writeDouble(viter134)
12076
      oprot.writeMapEnd()
12439
      oprot.writeMapEnd()
12077
      oprot.writeFieldEnd()
12440
      oprot.writeFieldEnd()
12078
    oprot.writeFieldStop()
12441
    oprot.writeFieldStop()
12079
    oprot.writeStructEnd()
12442
    oprot.writeStructEnd()
12080
 
12443
 
Line 12391... Line 12754...
12391
      if ftype == TType.STOP:
12754
      if ftype == TType.STOP:
12392
        break
12755
        break
12393
      if fid == 0:
12756
      if fid == 0:
12394
        if ftype == TType.LIST:
12757
        if ftype == TType.LIST:
12395
          self.success = []
12758
          self.success = []
12396
          (_etype124, _size121) = iprot.readListBegin()
12759
          (_etype138, _size135) = iprot.readListBegin()
12397
          for _i125 in xrange(_size121):
12760
          for _i139 in xrange(_size135):
12398
            _elem126 = User()
12761
            _elem140 = User()
12399
            _elem126.read(iprot)
12762
            _elem140.read(iprot)
12400
            self.success.append(_elem126)
12763
            self.success.append(_elem140)
12401
          iprot.readListEnd()
12764
          iprot.readListEnd()
12402
        else:
12765
        else:
12403
          iprot.skip(ftype)
12766
          iprot.skip(ftype)
12404
      else:
12767
      else:
12405
        iprot.skip(ftype)
12768
        iprot.skip(ftype)
Line 12412... Line 12775...
12412
      return
12775
      return
12413
    oprot.writeStructBegin('getAllUsers_result')
12776
    oprot.writeStructBegin('getAllUsers_result')
12414
    if self.success is not None:
12777
    if self.success is not None:
12415
      oprot.writeFieldBegin('success', TType.LIST, 0)
12778
      oprot.writeFieldBegin('success', TType.LIST, 0)
12416
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12779
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12417
      for iter127 in self.success:
12780
      for iter141 in self.success:
12418
        iter127.write(oprot)
12781
        iter141.write(oprot)
12419
      oprot.writeListEnd()
12782
      oprot.writeListEnd()
12420
      oprot.writeFieldEnd()
12783
      oprot.writeFieldEnd()
12421
    oprot.writeFieldStop()
12784
    oprot.writeFieldStop()
12422
    oprot.writeStructEnd()
12785
    oprot.writeStructEnd()
12423
 
12786
 
Line 12669... Line 13032...
12669
      if ftype == TType.STOP:
13032
      if ftype == TType.STOP:
12670
        break
13033
        break
12671
      if fid == 0:
13034
      if fid == 0:
12672
        if ftype == TType.LIST:
13035
        if ftype == TType.LIST:
12673
          self.success = []
13036
          self.success = []
12674
          (_etype131, _size128) = iprot.readListBegin()
13037
          (_etype145, _size142) = iprot.readListBegin()
12675
          for _i132 in xrange(_size128):
13038
          for _i146 in xrange(_size142):
12676
            _elem133 = UserNote()
13039
            _elem147 = UserNote()
12677
            _elem133.read(iprot)
13040
            _elem147.read(iprot)
12678
            self.success.append(_elem133)
13041
            self.success.append(_elem147)
12679
          iprot.readListEnd()
13042
          iprot.readListEnd()
12680
        else:
13043
        else:
12681
          iprot.skip(ftype)
13044
          iprot.skip(ftype)
12682
      else:
13045
      else:
12683
        iprot.skip(ftype)
13046
        iprot.skip(ftype)
Line 12690... Line 13053...
12690
      return
13053
      return
12691
    oprot.writeStructBegin('getUserNotes_result')
13054
    oprot.writeStructBegin('getUserNotes_result')
12692
    if self.success is not None:
13055
    if self.success is not None:
12693
      oprot.writeFieldBegin('success', TType.LIST, 0)
13056
      oprot.writeFieldBegin('success', TType.LIST, 0)
12694
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13057
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12695
      for iter134 in self.success:
13058
      for iter148 in self.success:
12696
        iter134.write(oprot)
13059
        iter148.write(oprot)
12697
      oprot.writeListEnd()
13060
      oprot.writeListEnd()
12698
      oprot.writeFieldEnd()
13061
      oprot.writeFieldEnd()
12699
    oprot.writeFieldStop()
13062
    oprot.writeFieldStop()
12700
    oprot.writeStructEnd()
13063
    oprot.writeStructEnd()
12701
 
13064
 
Line 12800... Line 13163...
12800
      if ftype == TType.STOP:
13163
      if ftype == TType.STOP:
12801
        break
13164
        break
12802
      if fid == 0:
13165
      if fid == 0:
12803
        if ftype == TType.LIST:
13166
        if ftype == TType.LIST:
12804
          self.success = []
13167
          self.success = []
12805
          (_etype138, _size135) = iprot.readListBegin()
13168
          (_etype152, _size149) = iprot.readListBegin()
12806
          for _i139 in xrange(_size135):
13169
          for _i153 in xrange(_size149):
12807
            _elem140 = iprot.readI64();
13170
            _elem154 = iprot.readI64();
12808
            self.success.append(_elem140)
13171
            self.success.append(_elem154)
12809
          iprot.readListEnd()
13172
          iprot.readListEnd()
12810
        else:
13173
        else:
12811
          iprot.skip(ftype)
13174
          iprot.skip(ftype)
12812
      elif fid == 1:
13175
      elif fid == 1:
12813
        if ftype == TType.STRUCT:
13176
        if ftype == TType.STRUCT:
Line 12826... Line 13189...
12826
      return
13189
      return
12827
    oprot.writeStructBegin('getMyResearchItems_result')
13190
    oprot.writeStructBegin('getMyResearchItems_result')
12828
    if self.success is not None:
13191
    if self.success is not None:
12829
      oprot.writeFieldBegin('success', TType.LIST, 0)
13192
      oprot.writeFieldBegin('success', TType.LIST, 0)
12830
      oprot.writeListBegin(TType.I64, len(self.success))
13193
      oprot.writeListBegin(TType.I64, len(self.success))
12831
      for iter141 in self.success:
13194
      for iter155 in self.success:
12832
        oprot.writeI64(iter141)
13195
        oprot.writeI64(iter155)
12833
      oprot.writeListEnd()
13196
      oprot.writeListEnd()
12834
      oprot.writeFieldEnd()
13197
      oprot.writeFieldEnd()
12835
    if self.scx is not None:
13198
    if self.scx is not None:
12836
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13199
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12837
      self.scx.write(oprot)
13200
      self.scx.write(oprot)
Line 13217... Line 13580...
13217
      if ftype == TType.STOP:
13580
      if ftype == TType.STOP:
13218
        break
13581
        break
13219
      if fid == 0:
13582
      if fid == 0:
13220
        if ftype == TType.LIST:
13583
        if ftype == TType.LIST:
13221
          self.success = []
13584
          self.success = []
13222
          (_etype145, _size142) = iprot.readListBegin()
13585
          (_etype159, _size156) = iprot.readListBegin()
13223
          for _i146 in xrange(_size142):
13586
          for _i160 in xrange(_size156):
13224
            _elem147 = iprot.readI64();
13587
            _elem161 = iprot.readI64();
13225
            self.success.append(_elem147)
13588
            self.success.append(_elem161)
13226
          iprot.readListEnd()
13589
          iprot.readListEnd()
13227
        else:
13590
        else:
13228
          iprot.skip(ftype)
13591
          iprot.skip(ftype)
13229
      elif fid == 1:
13592
      elif fid == 1:
13230
        if ftype == TType.STRUCT:
13593
        if ftype == TType.STRUCT:
Line 13243... Line 13606...
13243
      return
13606
      return
13244
    oprot.writeStructBegin('getBrowseHistoryItems_result')
13607
    oprot.writeStructBegin('getBrowseHistoryItems_result')
13245
    if self.success is not None:
13608
    if self.success is not None:
13246
      oprot.writeFieldBegin('success', TType.LIST, 0)
13609
      oprot.writeFieldBegin('success', TType.LIST, 0)
13247
      oprot.writeListBegin(TType.I64, len(self.success))
13610
      oprot.writeListBegin(TType.I64, len(self.success))
13248
      for iter148 in self.success:
13611
      for iter162 in self.success:
13249
        oprot.writeI64(iter148)
13612
        oprot.writeI64(iter162)
13250
      oprot.writeListEnd()
13613
      oprot.writeListEnd()
13251
      oprot.writeFieldEnd()
13614
      oprot.writeFieldEnd()
13252
    if self.scx is not None:
13615
    if self.scx is not None:
13253
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13616
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13254
      self.scx.write(oprot)
13617
      self.scx.write(oprot)