Subversion Repositories SmartDukaan

Rev

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

Rev 9155 Rev 9242
Line 888... Line 888...
888
    pass
888
    pass
889
 
889
 
890
  def getAllItemstoListOnNonFba(self, ):
890
  def getAllItemstoListOnNonFba(self, ):
891
    pass
891
    pass
892
 
892
 
893
  def getAllSnapdealListedActiveItems(self, ):
-
 
894
    pass
-
 
895
 
-
 
896
  def updateAsin(self, item):
893
  def updateAsin(self, item):
897
    """
894
    """
898
    Parameters:
895
    Parameters:
899
     - item
896
     - item
900
    """
897
    """
Line 912... Line 909...
912
    Parameters:
909
    Parameters:
913
     - item_id
910
     - item_id
914
    """
911
    """
915
    pass
912
    pass
916
 
913
 
-
 
914
  def getSnapdealItemDetails(self, item_id):
-
 
915
    """
-
 
916
    Parameters:
-
 
917
     - item_id
-
 
918
    """
-
 
919
    pass
-
 
920
 
917
  def getAllSnapdealItems(self, ):
921
  def getAllSnapdealItems(self, ):
918
    pass
922
    pass
919
 
923
 
-
 
924
  def getSnapdealItems(self, offset, limit):
-
 
925
    """
-
 
926
    Parameters:
-
 
927
     - offset
-
 
928
     - limit
-
 
929
    """
-
 
930
    pass
-
 
931
 
-
 
932
  def searchSnapdealItems(self, searchTerm, offset, limit):
-
 
933
    """
-
 
934
    Parameters:
-
 
935
     - searchTerm
-
 
936
     - offset
-
 
937
     - limit
-
 
938
    """
-
 
939
    pass
-
 
940
 
-
 
941
  def getCountForSnapdealItems(self, ):
-
 
942
    pass
-
 
943
 
-
 
944
  def getSnapdealSearchResultCount(self, searchTerm):
-
 
945
    """
-
 
946
    Parameters:
-
 
947
     - searchTerm
-
 
948
    """
-
 
949
    pass
-
 
950
 
920
 
951
 
921
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
952
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
922
  def __init__(self, iprot, oprot=None):
953
  def __init__(self, iprot, oprot=None):
923
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
954
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
924
 
955
 
Line 4648... Line 4679...
4648
    self._iprot.readMessageEnd()
4679
    self._iprot.readMessageEnd()
4649
    if result.success is not None:
4680
    if result.success is not None:
4650
      return result.success
4681
      return result.success
4651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4652
 
4683
 
4653
  def getAllSnapdealListedActiveItems(self, ):
-
 
4654
    self.send_getAllSnapdealListedActiveItems()
-
 
4655
    return self.recv_getAllSnapdealListedActiveItems()
-
 
4656
 
-
 
4657
  def send_getAllSnapdealListedActiveItems(self, ):
-
 
4658
    self._oprot.writeMessageBegin('getAllSnapdealListedActiveItems', TMessageType.CALL, self._seqid)
-
 
4659
    args = getAllSnapdealListedActiveItems_args()
-
 
4660
    args.write(self._oprot)
-
 
4661
    self._oprot.writeMessageEnd()
-
 
4662
    self._oprot.trans.flush()
-
 
4663
 
-
 
4664
  def recv_getAllSnapdealListedActiveItems(self, ):
-
 
4665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4666
    if mtype == TMessageType.EXCEPTION:
-
 
4667
      x = TApplicationException()
-
 
4668
      x.read(self._iprot)
-
 
4669
      self._iprot.readMessageEnd()
-
 
4670
      raise x
-
 
4671
    result = getAllSnapdealListedActiveItems_result()
-
 
4672
    result.read(self._iprot)
-
 
4673
    self._iprot.readMessageEnd()
-
 
4674
    if result.success is not None:
-
 
4675
      return result.success
-
 
4676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
-
 
4677
 
-
 
4678
  def updateAsin(self, item):
4684
  def updateAsin(self, item):
4679
    """
4685
    """
4680
    Parameters:
4686
    Parameters:
4681
     - item
4687
     - item
4682
    """
4688
    """
Line 4761... Line 4767...
4761
    self._iprot.readMessageEnd()
4767
    self._iprot.readMessageEnd()
4762
    if result.success is not None:
4768
    if result.success is not None:
4763
      return result.success
4769
      return result.success
4764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
4765
 
4771
 
-
 
4772
  def getSnapdealItemDetails(self, item_id):
-
 
4773
    """
-
 
4774
    Parameters:
-
 
4775
     - item_id
-
 
4776
    """
-
 
4777
    self.send_getSnapdealItemDetails(item_id)
-
 
4778
    return self.recv_getSnapdealItemDetails()
-
 
4779
 
-
 
4780
  def send_getSnapdealItemDetails(self, item_id):
-
 
4781
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
-
 
4782
    args = getSnapdealItemDetails_args()
-
 
4783
    args.item_id = item_id
-
 
4784
    args.write(self._oprot)
-
 
4785
    self._oprot.writeMessageEnd()
-
 
4786
    self._oprot.trans.flush()
-
 
4787
 
-
 
4788
  def recv_getSnapdealItemDetails(self, ):
-
 
4789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4790
    if mtype == TMessageType.EXCEPTION:
-
 
4791
      x = TApplicationException()
-
 
4792
      x.read(self._iprot)
-
 
4793
      self._iprot.readMessageEnd()
-
 
4794
      raise x
-
 
4795
    result = getSnapdealItemDetails_result()
-
 
4796
    result.read(self._iprot)
-
 
4797
    self._iprot.readMessageEnd()
-
 
4798
    if result.success is not None:
-
 
4799
      return result.success
-
 
4800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
-
 
4801
 
4766
  def getAllSnapdealItems(self, ):
4802
  def getAllSnapdealItems(self, ):
4767
    self.send_getAllSnapdealItems()
4803
    self.send_getAllSnapdealItems()
4768
    return self.recv_getAllSnapdealItems()
4804
    return self.recv_getAllSnapdealItems()
4769
 
4805
 
4770
  def send_getAllSnapdealItems(self, ):
4806
  def send_getAllSnapdealItems(self, ):
Line 4786... Line 4822...
4786
    self._iprot.readMessageEnd()
4822
    self._iprot.readMessageEnd()
4787
    if result.success is not None:
4823
    if result.success is not None:
4788
      return result.success
4824
      return result.success
4789
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
4790
 
4826
 
-
 
4827
  def getSnapdealItems(self, offset, limit):
-
 
4828
    """
-
 
4829
    Parameters:
-
 
4830
     - offset
-
 
4831
     - limit
-
 
4832
    """
-
 
4833
    self.send_getSnapdealItems(offset, limit)
-
 
4834
    return self.recv_getSnapdealItems()
-
 
4835
 
-
 
4836
  def send_getSnapdealItems(self, offset, limit):
-
 
4837
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
-
 
4838
    args = getSnapdealItems_args()
-
 
4839
    args.offset = offset
-
 
4840
    args.limit = limit
-
 
4841
    args.write(self._oprot)
-
 
4842
    self._oprot.writeMessageEnd()
-
 
4843
    self._oprot.trans.flush()
-
 
4844
 
-
 
4845
  def recv_getSnapdealItems(self, ):
-
 
4846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4847
    if mtype == TMessageType.EXCEPTION:
-
 
4848
      x = TApplicationException()
-
 
4849
      x.read(self._iprot)
-
 
4850
      self._iprot.readMessageEnd()
-
 
4851
      raise x
-
 
4852
    result = getSnapdealItems_result()
-
 
4853
    result.read(self._iprot)
-
 
4854
    self._iprot.readMessageEnd()
-
 
4855
    if result.success is not None:
-
 
4856
      return result.success
-
 
4857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
-
 
4858
 
-
 
4859
  def searchSnapdealItems(self, searchTerm, offset, limit):
-
 
4860
    """
-
 
4861
    Parameters:
-
 
4862
     - searchTerm
-
 
4863
     - offset
-
 
4864
     - limit
-
 
4865
    """
-
 
4866
    self.send_searchSnapdealItems(searchTerm, offset, limit)
-
 
4867
    return self.recv_searchSnapdealItems()
-
 
4868
 
-
 
4869
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
-
 
4870
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
-
 
4871
    args = searchSnapdealItems_args()
-
 
4872
    args.searchTerm = searchTerm
-
 
4873
    args.offset = offset
-
 
4874
    args.limit = limit
-
 
4875
    args.write(self._oprot)
-
 
4876
    self._oprot.writeMessageEnd()
-
 
4877
    self._oprot.trans.flush()
-
 
4878
 
-
 
4879
  def recv_searchSnapdealItems(self, ):
-
 
4880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4881
    if mtype == TMessageType.EXCEPTION:
-
 
4882
      x = TApplicationException()
-
 
4883
      x.read(self._iprot)
-
 
4884
      self._iprot.readMessageEnd()
-
 
4885
      raise x
-
 
4886
    result = searchSnapdealItems_result()
-
 
4887
    result.read(self._iprot)
-
 
4888
    self._iprot.readMessageEnd()
-
 
4889
    if result.success is not None:
-
 
4890
      return result.success
-
 
4891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
-
 
4892
 
-
 
4893
  def getCountForSnapdealItems(self, ):
-
 
4894
    self.send_getCountForSnapdealItems()
-
 
4895
    return self.recv_getCountForSnapdealItems()
-
 
4896
 
-
 
4897
  def send_getCountForSnapdealItems(self, ):
-
 
4898
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
-
 
4899
    args = getCountForSnapdealItems_args()
-
 
4900
    args.write(self._oprot)
-
 
4901
    self._oprot.writeMessageEnd()
-
 
4902
    self._oprot.trans.flush()
-
 
4903
 
-
 
4904
  def recv_getCountForSnapdealItems(self, ):
-
 
4905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4906
    if mtype == TMessageType.EXCEPTION:
-
 
4907
      x = TApplicationException()
-
 
4908
      x.read(self._iprot)
-
 
4909
      self._iprot.readMessageEnd()
-
 
4910
      raise x
-
 
4911
    result = getCountForSnapdealItems_result()
-
 
4912
    result.read(self._iprot)
-
 
4913
    self._iprot.readMessageEnd()
-
 
4914
    if result.success is not None:
-
 
4915
      return result.success
-
 
4916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
-
 
4917
 
-
 
4918
  def getSnapdealSearchResultCount(self, searchTerm):
-
 
4919
    """
-
 
4920
    Parameters:
-
 
4921
     - searchTerm
-
 
4922
    """
-
 
4923
    self.send_getSnapdealSearchResultCount(searchTerm)
-
 
4924
    return self.recv_getSnapdealSearchResultCount()
-
 
4925
 
-
 
4926
  def send_getSnapdealSearchResultCount(self, searchTerm):
-
 
4927
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
-
 
4928
    args = getSnapdealSearchResultCount_args()
-
 
4929
    args.searchTerm = searchTerm
-
 
4930
    args.write(self._oprot)
-
 
4931
    self._oprot.writeMessageEnd()
-
 
4932
    self._oprot.trans.flush()
-
 
4933
 
-
 
4934
  def recv_getSnapdealSearchResultCount(self, ):
-
 
4935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4936
    if mtype == TMessageType.EXCEPTION:
-
 
4937
      x = TApplicationException()
-
 
4938
      x.read(self._iprot)
-
 
4939
      self._iprot.readMessageEnd()
-
 
4940
      raise x
-
 
4941
    result = getSnapdealSearchResultCount_result()
-
 
4942
    result.read(self._iprot)
-
 
4943
    self._iprot.readMessageEnd()
-
 
4944
    if result.success is not None:
-
 
4945
      return result.success
-
 
4946
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
-
 
4947
 
4791
 
4948
 
4792
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4949
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4793
  def __init__(self, handler):
4950
  def __init__(self, handler):
4794
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4951
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4795
    self._processMap["addItem"] = Processor.process_addItem
4952
    self._processMap["addItem"] = Processor.process_addItem
Line 4911... Line 5068...
4911
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
5068
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
4912
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
5069
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4913
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
5070
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4914
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
5071
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4915
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
5072
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4916
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
-
 
4917
    self._processMap["updateAsin"] = Processor.process_updateAsin
5073
    self._processMap["updateAsin"] = Processor.process_updateAsin
4918
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
5074
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
4919
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
5075
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
-
 
5076
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
4920
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
5077
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
-
 
5078
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
-
 
5079
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
-
 
5080
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
-
 
5081
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
4921
 
5082
 
4922
  def process(self, iprot, oprot):
5083
  def process(self, iprot, oprot):
4923
    (name, type, seqid) = iprot.readMessageBegin()
5084
    (name, type, seqid) = iprot.readMessageBegin()
4924
    if name not in self._processMap:
5085
    if name not in self._processMap:
4925
      iprot.skip(TType.STRUCT)
5086
      iprot.skip(TType.STRUCT)
Line 6377... Line 6538...
6377
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6538
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6378
    result.write(oprot)
6539
    result.write(oprot)
6379
    oprot.writeMessageEnd()
6540
    oprot.writeMessageEnd()
6380
    oprot.trans.flush()
6541
    oprot.trans.flush()
6381
 
6542
 
6382
  def process_getAllSnapdealListedActiveItems(self, seqid, iprot, oprot):
-
 
6383
    args = getAllSnapdealListedActiveItems_args()
-
 
6384
    args.read(iprot)
-
 
6385
    iprot.readMessageEnd()
-
 
6386
    result = getAllSnapdealListedActiveItems_result()
-
 
6387
    result.success = self._handler.getAllSnapdealListedActiveItems()
-
 
6388
    oprot.writeMessageBegin("getAllSnapdealListedActiveItems", TMessageType.REPLY, seqid)
-
 
6389
    result.write(oprot)
-
 
6390
    oprot.writeMessageEnd()
-
 
6391
    oprot.trans.flush()
-
 
6392
 
-
 
6393
  def process_updateAsin(self, seqid, iprot, oprot):
6543
  def process_updateAsin(self, seqid, iprot, oprot):
6394
    args = updateAsin_args()
6544
    args = updateAsin_args()
6395
    args.read(iprot)
6545
    args.read(iprot)
6396
    iprot.readMessageEnd()
6546
    iprot.readMessageEnd()
6397
    result = updateAsin_result()
6547
    result = updateAsin_result()
Line 6421... Line 6571...
6421
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
6571
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
6422
    result.write(oprot)
6572
    result.write(oprot)
6423
    oprot.writeMessageEnd()
6573
    oprot.writeMessageEnd()
6424
    oprot.trans.flush()
6574
    oprot.trans.flush()
6425
 
6575
 
-
 
6576
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
-
 
6577
    args = getSnapdealItemDetails_args()
-
 
6578
    args.read(iprot)
-
 
6579
    iprot.readMessageEnd()
-
 
6580
    result = getSnapdealItemDetails_result()
-
 
6581
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
-
 
6582
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
-
 
6583
    result.write(oprot)
-
 
6584
    oprot.writeMessageEnd()
-
 
6585
    oprot.trans.flush()
-
 
6586
 
6426
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
6587
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
6427
    args = getAllSnapdealItems_args()
6588
    args = getAllSnapdealItems_args()
6428
    args.read(iprot)
6589
    args.read(iprot)
6429
    iprot.readMessageEnd()
6590
    iprot.readMessageEnd()
6430
    result = getAllSnapdealItems_result()
6591
    result = getAllSnapdealItems_result()
Line 6432... Line 6593...
6432
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
6593
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
6433
    result.write(oprot)
6594
    result.write(oprot)
6434
    oprot.writeMessageEnd()
6595
    oprot.writeMessageEnd()
6435
    oprot.trans.flush()
6596
    oprot.trans.flush()
6436
 
6597
 
-
 
6598
  def process_getSnapdealItems(self, seqid, iprot, oprot):
-
 
6599
    args = getSnapdealItems_args()
-
 
6600
    args.read(iprot)
-
 
6601
    iprot.readMessageEnd()
-
 
6602
    result = getSnapdealItems_result()
-
 
6603
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
-
 
6604
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
-
 
6605
    result.write(oprot)
-
 
6606
    oprot.writeMessageEnd()
-
 
6607
    oprot.trans.flush()
-
 
6608
 
-
 
6609
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
-
 
6610
    args = searchSnapdealItems_args()
-
 
6611
    args.read(iprot)
-
 
6612
    iprot.readMessageEnd()
-
 
6613
    result = searchSnapdealItems_result()
-
 
6614
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
-
 
6615
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
-
 
6616
    result.write(oprot)
-
 
6617
    oprot.writeMessageEnd()
-
 
6618
    oprot.trans.flush()
-
 
6619
 
-
 
6620
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
-
 
6621
    args = getCountForSnapdealItems_args()
-
 
6622
    args.read(iprot)
-
 
6623
    iprot.readMessageEnd()
-
 
6624
    result = getCountForSnapdealItems_result()
-
 
6625
    result.success = self._handler.getCountForSnapdealItems()
-
 
6626
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
-
 
6627
    result.write(oprot)
-
 
6628
    oprot.writeMessageEnd()
-
 
6629
    oprot.trans.flush()
-
 
6630
 
-
 
6631
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
-
 
6632
    args = getSnapdealSearchResultCount_args()
-
 
6633
    args.read(iprot)
-
 
6634
    iprot.readMessageEnd()
-
 
6635
    result = getSnapdealSearchResultCount_result()
-
 
6636
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
-
 
6637
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
-
 
6638
    result.write(oprot)
-
 
6639
    oprot.writeMessageEnd()
-
 
6640
    oprot.trans.flush()
-
 
6641
 
6437
 
6642
 
6438
# HELPER FUNCTIONS AND STRUCTURES
6643
# HELPER FUNCTIONS AND STRUCTURES
6439
 
6644
 
6440
class addItem_args:
6645
class addItem_args:
6441
  """
6646
  """
Line 21864... Line 22069...
21864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21865
 
22070
 
21866
  def __ne__(self, other):
22071
  def __ne__(self, other):
21867
    return not (self == other)
22072
    return not (self == other)
21868
 
22073
 
21869
class getAllSnapdealListedActiveItems_args:
22074
class updateAsin_args:
-
 
22075
  """
-
 
22076
  Attributes:
-
 
22077
   - item
-
 
22078
  """
21870
 
22079
 
21871
  thrift_spec = (
22080
  thrift_spec = (
-
 
22081
    None, # 0
-
 
22082
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
21872
  )
22083
  )
21873
 
22084
 
-
 
22085
  def __init__(self, item=None,):
-
 
22086
    self.item = item
-
 
22087
 
21874
  def read(self, iprot):
22088
  def read(self, iprot):
21875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21877
      return
22091
      return
21878
    iprot.readStructBegin()
22092
    iprot.readStructBegin()
21879
    while True:
22093
    while True:
21880
      (fname, ftype, fid) = iprot.readFieldBegin()
22094
      (fname, ftype, fid) = iprot.readFieldBegin()
21881
      if ftype == TType.STOP:
22095
      if ftype == TType.STOP:
21882
        break
22096
        break
-
 
22097
      if fid == 1:
-
 
22098
        if ftype == TType.MAP:
-
 
22099
          self.item = {}
-
 
22100
          (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() 
-
 
22101
          for _i508 in xrange(_size504):
-
 
22102
            _key509 = iprot.readI64();
-
 
22103
            _val510 = Item()
-
 
22104
            _val510.read(iprot)
-
 
22105
            self.item[_key509] = _val510
-
 
22106
          iprot.readMapEnd()
-
 
22107
        else:
-
 
22108
          iprot.skip(ftype)
21883
      else:
22109
      else:
21884
        iprot.skip(ftype)
22110
        iprot.skip(ftype)
21885
      iprot.readFieldEnd()
22111
      iprot.readFieldEnd()
21886
    iprot.readStructEnd()
22112
    iprot.readStructEnd()
21887
 
22113
 
21888
  def write(self, oprot):
22114
  def write(self, oprot):
21889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21891
      return
22117
      return
21892
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_args')
22118
    oprot.writeStructBegin('updateAsin_args')
-
 
22119
    if self.item is not None:
-
 
22120
      oprot.writeFieldBegin('item', TType.MAP, 1)
-
 
22121
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
-
 
22122
      for kiter511,viter512 in self.item.items():
-
 
22123
        oprot.writeI64(kiter511)
-
 
22124
        viter512.write(oprot)
-
 
22125
      oprot.writeMapEnd()
-
 
22126
      oprot.writeFieldEnd()
21893
    oprot.writeFieldStop()
22127
    oprot.writeFieldStop()
21894
    oprot.writeStructEnd()
22128
    oprot.writeStructEnd()
21895
 
22129
 
21896
  def validate(self):
22130
  def validate(self):
21897
    return
22131
    return
Line 21906... Line 22140...
21906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21907
 
22141
 
21908
  def __ne__(self, other):
22142
  def __ne__(self, other):
21909
    return not (self == other)
22143
    return not (self == other)
21910
 
22144
 
21911
class getAllSnapdealListedActiveItems_result:
22145
class updateAsin_result:
21912
  """
-
 
21913
  Attributes:
-
 
21914
   - success
-
 
21915
  """
-
 
21916
 
22146
 
21917
  thrift_spec = (
22147
  thrift_spec = (
21918
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
-
 
21919
  )
22148
  )
21920
 
22149
 
21921
  def __init__(self, success=None,):
-
 
21922
    self.success = success
-
 
21923
 
-
 
21924
  def read(self, iprot):
22150
  def read(self, iprot):
21925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21927
      return
22153
      return
21928
    iprot.readStructBegin()
22154
    iprot.readStructBegin()
21929
    while True:
22155
    while True:
21930
      (fname, ftype, fid) = iprot.readFieldBegin()
22156
      (fname, ftype, fid) = iprot.readFieldBegin()
21931
      if ftype == TType.STOP:
22157
      if ftype == TType.STOP:
21932
        break
22158
        break
21933
      if fid == 0:
-
 
21934
        if ftype == TType.LIST:
-
 
21935
          self.success = []
-
 
21936
          (_etype507, _size504) = iprot.readListBegin()
-
 
21937
          for _i508 in xrange(_size504):
-
 
21938
            _elem509 = Item()
-
 
21939
            _elem509.read(iprot)
-
 
21940
            self.success.append(_elem509)
-
 
21941
          iprot.readListEnd()
-
 
21942
        else:
-
 
21943
          iprot.skip(ftype)
-
 
21944
      else:
22159
      else:
21945
        iprot.skip(ftype)
22160
        iprot.skip(ftype)
21946
      iprot.readFieldEnd()
22161
      iprot.readFieldEnd()
21947
    iprot.readStructEnd()
22162
    iprot.readStructEnd()
21948
 
22163
 
21949
  def write(self, oprot):
22164
  def write(self, oprot):
21950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21952
      return
22167
      return
21953
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_result')
22168
    oprot.writeStructBegin('updateAsin_result')
21954
    if self.success is not None:
-
 
21955
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
21956
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
21957
      for iter510 in self.success:
-
 
21958
        iter510.write(oprot)
-
 
21959
      oprot.writeListEnd()
-
 
21960
      oprot.writeFieldEnd()
-
 
21961
    oprot.writeFieldStop()
22169
    oprot.writeFieldStop()
21962
    oprot.writeStructEnd()
22170
    oprot.writeStructEnd()
21963
 
22171
 
21964
  def validate(self):
22172
  def validate(self):
21965
    return
22173
    return
Line 21974... Line 22182...
21974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21975
 
22183
 
21976
  def __ne__(self, other):
22184
  def __ne__(self, other):
21977
    return not (self == other)
22185
    return not (self == other)
21978
 
22186
 
21979
class updateAsin_args:
22187
class addOrUpdateSnapdealItem_args:
21980
  """
22188
  """
21981
  Attributes:
22189
  Attributes:
21982
   - item
22190
   - snapdealitem
21983
  """
22191
  """
21984
 
22192
 
21985
  thrift_spec = (
22193
  thrift_spec = None
21986
    None, # 0
-
 
21987
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
-
 
21988
  )
-
 
21989
 
-
 
21990
  def __init__(self, item=None,):
22194
  def __init__(self, snapdealitem=None,):
21991
    self.item = item
22195
    self.snapdealitem = snapdealitem
21992
 
22196
 
21993
  def read(self, iprot):
22197
  def read(self, iprot):
21994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21996
      return
22200
      return
21997
    iprot.readStructBegin()
22201
    iprot.readStructBegin()
21998
    while True:
22202
    while True:
21999
      (fname, ftype, fid) = iprot.readFieldBegin()
22203
      (fname, ftype, fid) = iprot.readFieldBegin()
22000
      if ftype == TType.STOP:
22204
      if ftype == TType.STOP:
22001
        break
22205
        break
22002
      if fid == 1:
22206
      if fid == -1:
22003
        if ftype == TType.MAP:
22207
        if ftype == TType.STRUCT:
22004
          self.item = {}
-
 
22005
          (_ktype512, _vtype513, _size511 ) = iprot.readMapBegin() 
-
 
22006
          for _i515 in xrange(_size511):
-
 
22007
            _key516 = iprot.readI64();
-
 
22008
            _val517 = Item()
22208
          self.snapdealitem = SnapdealItem()
22009
            _val517.read(iprot)
22209
          self.snapdealitem.read(iprot)
22010
            self.item[_key516] = _val517
-
 
22011
          iprot.readMapEnd()
-
 
22012
        else:
22210
        else:
22013
          iprot.skip(ftype)
22211
          iprot.skip(ftype)
22014
      else:
22212
      else:
22015
        iprot.skip(ftype)
22213
        iprot.skip(ftype)
22016
      iprot.readFieldEnd()
22214
      iprot.readFieldEnd()
Line 22018... Line 22216...
22018
 
22216
 
22019
  def write(self, oprot):
22217
  def write(self, oprot):
22020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22022
      return
22220
      return
22023
    oprot.writeStructBegin('updateAsin_args')
22221
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
22024
    if self.item is not None:
22222
    if self.snapdealitem is not None:
22025
      oprot.writeFieldBegin('item', TType.MAP, 1)
22223
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
22026
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
-
 
22027
      for kiter518,viter519 in self.item.items():
-
 
22028
        oprot.writeI64(kiter518)
-
 
22029
        viter519.write(oprot)
22224
      self.snapdealitem.write(oprot)
22030
      oprot.writeMapEnd()
-
 
22031
      oprot.writeFieldEnd()
22225
      oprot.writeFieldEnd()
22032
    oprot.writeFieldStop()
22226
    oprot.writeFieldStop()
22033
    oprot.writeStructEnd()
22227
    oprot.writeStructEnd()
22034
 
22228
 
22035
  def validate(self):
22229
  def validate(self):
Line 22045... Line 22239...
22045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22046
 
22240
 
22047
  def __ne__(self, other):
22241
  def __ne__(self, other):
22048
    return not (self == other)
22242
    return not (self == other)
22049
 
22243
 
22050
class updateAsin_result:
22244
class addOrUpdateSnapdealItem_result:
-
 
22245
  """
-
 
22246
  Attributes:
-
 
22247
   - success
-
 
22248
  """
22051
 
22249
 
22052
  thrift_spec = (
22250
  thrift_spec = (
-
 
22251
    (0, TType.BOOL, 'success', None, None, ), # 0
22053
  )
22252
  )
22054
 
22253
 
-
 
22254
  def __init__(self, success=None,):
-
 
22255
    self.success = success
-
 
22256
 
22055
  def read(self, iprot):
22257
  def read(self, iprot):
22056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22058
      return
22260
      return
22059
    iprot.readStructBegin()
22261
    iprot.readStructBegin()
22060
    while True:
22262
    while True:
22061
      (fname, ftype, fid) = iprot.readFieldBegin()
22263
      (fname, ftype, fid) = iprot.readFieldBegin()
22062
      if ftype == TType.STOP:
22264
      if ftype == TType.STOP:
22063
        break
22265
        break
-
 
22266
      if fid == 0:
-
 
22267
        if ftype == TType.BOOL:
-
 
22268
          self.success = iprot.readBool();
-
 
22269
        else:
-
 
22270
          iprot.skip(ftype)
22064
      else:
22271
      else:
22065
        iprot.skip(ftype)
22272
        iprot.skip(ftype)
22066
      iprot.readFieldEnd()
22273
      iprot.readFieldEnd()
22067
    iprot.readStructEnd()
22274
    iprot.readStructEnd()
22068
 
22275
 
22069
  def write(self, oprot):
22276
  def write(self, oprot):
22070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22072
      return
22279
      return
22073
    oprot.writeStructBegin('updateAsin_result')
22280
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
-
 
22281
    if self.success is not None:
-
 
22282
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
22283
      oprot.writeBool(self.success)
-
 
22284
      oprot.writeFieldEnd()
22074
    oprot.writeFieldStop()
22285
    oprot.writeFieldStop()
22075
    oprot.writeStructEnd()
22286
    oprot.writeStructEnd()
22076
 
22287
 
22077
  def validate(self):
22288
  def validate(self):
22078
    return
22289
    return
Line 22087... Line 22298...
22087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22088
 
22299
 
22089
  def __ne__(self, other):
22300
  def __ne__(self, other):
22090
    return not (self == other)
22301
    return not (self == other)
22091
 
22302
 
22092
class addOrUpdateSnapdealItem_args:
22303
class getSnapdealItem_args:
22093
  """
22304
  """
22094
  Attributes:
22305
  Attributes:
22095
   - snapdealitem
22306
   - item_id
22096
  """
22307
  """
22097
 
22308
 
22098
  thrift_spec = None
22309
  thrift_spec = (
-
 
22310
    None, # 0
-
 
22311
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
22312
  )
-
 
22313
 
22099
  def __init__(self, snapdealitem=None,):
22314
  def __init__(self, item_id=None,):
22100
    self.snapdealitem = snapdealitem
22315
    self.item_id = item_id
22101
 
22316
 
22102
  def read(self, iprot):
22317
  def read(self, iprot):
22103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22105
      return
22320
      return
22106
    iprot.readStructBegin()
22321
    iprot.readStructBegin()
22107
    while True:
22322
    while True:
22108
      (fname, ftype, fid) = iprot.readFieldBegin()
22323
      (fname, ftype, fid) = iprot.readFieldBegin()
22109
      if ftype == TType.STOP:
22324
      if ftype == TType.STOP:
22110
        break
22325
        break
22111
      if fid == -1:
22326
      if fid == 1:
22112
        if ftype == TType.STRUCT:
22327
        if ftype == TType.I64:
22113
          self.snapdealitem = SnapdealItem()
-
 
22114
          self.snapdealitem.read(iprot)
22328
          self.item_id = iprot.readI64();
22115
        else:
22329
        else:
22116
          iprot.skip(ftype)
22330
          iprot.skip(ftype)
22117
      else:
22331
      else:
22118
        iprot.skip(ftype)
22332
        iprot.skip(ftype)
22119
      iprot.readFieldEnd()
22333
      iprot.readFieldEnd()
Line 22121... Line 22335...
22121
 
22335
 
22122
  def write(self, oprot):
22336
  def write(self, oprot):
22123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22125
      return
22339
      return
22126
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
22340
    oprot.writeStructBegin('getSnapdealItem_args')
22127
    if self.snapdealitem is not None:
22341
    if self.item_id is not None:
22128
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
22342
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22129
      self.snapdealitem.write(oprot)
22343
      oprot.writeI64(self.item_id)
22130
      oprot.writeFieldEnd()
22344
      oprot.writeFieldEnd()
22131
    oprot.writeFieldStop()
22345
    oprot.writeFieldStop()
22132
    oprot.writeStructEnd()
22346
    oprot.writeStructEnd()
22133
 
22347
 
22134
  def validate(self):
22348
  def validate(self):
Line 22144... Line 22358...
22144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22145
 
22359
 
22146
  def __ne__(self, other):
22360
  def __ne__(self, other):
22147
    return not (self == other)
22361
    return not (self == other)
22148
 
22362
 
22149
class addOrUpdateSnapdealItem_result:
22363
class getSnapdealItem_result:
22150
  """
22364
  """
22151
  Attributes:
22365
  Attributes:
22152
   - success
22366
   - success
22153
  """
22367
  """
22154
 
22368
 
22155
  thrift_spec = (
22369
  thrift_spec = (
22156
    (0, TType.BOOL, 'success', None, None, ), # 0
22370
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
22157
  )
22371
  )
22158
 
22372
 
22159
  def __init__(self, success=None,):
22373
  def __init__(self, success=None,):
22160
    self.success = success
22374
    self.success = success
22161
 
22375
 
Line 22167... Line 22381...
22167
    while True:
22381
    while True:
22168
      (fname, ftype, fid) = iprot.readFieldBegin()
22382
      (fname, ftype, fid) = iprot.readFieldBegin()
22169
      if ftype == TType.STOP:
22383
      if ftype == TType.STOP:
22170
        break
22384
        break
22171
      if fid == 0:
22385
      if fid == 0:
22172
        if ftype == TType.BOOL:
22386
        if ftype == TType.STRUCT:
22173
          self.success = iprot.readBool();
22387
          self.success = SnapdealItem()
-
 
22388
          self.success.read(iprot)
22174
        else:
22389
        else:
22175
          iprot.skip(ftype)
22390
          iprot.skip(ftype)
22176
      else:
22391
      else:
22177
        iprot.skip(ftype)
22392
        iprot.skip(ftype)
22178
      iprot.readFieldEnd()
22393
      iprot.readFieldEnd()
Line 22180... Line 22395...
22180
 
22395
 
22181
  def write(self, oprot):
22396
  def write(self, oprot):
22182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22184
      return
22399
      return
22185
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
22400
    oprot.writeStructBegin('getSnapdealItem_result')
22186
    if self.success is not None:
22401
    if self.success is not None:
22187
      oprot.writeFieldBegin('success', TType.BOOL, 0)
22402
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22188
      oprot.writeBool(self.success)
22403
      self.success.write(oprot)
22189
      oprot.writeFieldEnd()
22404
      oprot.writeFieldEnd()
22190
    oprot.writeFieldStop()
22405
    oprot.writeFieldStop()
22191
    oprot.writeStructEnd()
22406
    oprot.writeStructEnd()
22192
 
22407
 
22193
  def validate(self):
22408
  def validate(self):
Line 22203... Line 22418...
22203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22204
 
22419
 
22205
  def __ne__(self, other):
22420
  def __ne__(self, other):
22206
    return not (self == other)
22421
    return not (self == other)
22207
 
22422
 
22208
class getSnapdealItem_args:
22423
class getSnapdealItemDetails_args:
22209
  """
22424
  """
22210
  Attributes:
22425
  Attributes:
22211
   - item_id
22426
   - item_id
22212
  """
22427
  """
22213
 
22428
 
Line 22240... Line 22455...
22240
 
22455
 
22241
  def write(self, oprot):
22456
  def write(self, oprot):
22242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22244
      return
22459
      return
22245
    oprot.writeStructBegin('getSnapdealItem_args')
22460
    oprot.writeStructBegin('getSnapdealItemDetails_args')
22246
    if self.item_id is not None:
22461
    if self.item_id is not None:
22247
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22462
      oprot.writeFieldBegin('item_id', TType.I64, 1)
22248
      oprot.writeI64(self.item_id)
22463
      oprot.writeI64(self.item_id)
22249
      oprot.writeFieldEnd()
22464
      oprot.writeFieldEnd()
22250
    oprot.writeFieldStop()
22465
    oprot.writeFieldStop()
Line 22263... Line 22478...
22263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22264
 
22479
 
22265
  def __ne__(self, other):
22480
  def __ne__(self, other):
22266
    return not (self == other)
22481
    return not (self == other)
22267
 
22482
 
22268
class getSnapdealItem_result:
22483
class getSnapdealItemDetails_result:
22269
  """
22484
  """
22270
  Attributes:
22485
  Attributes:
22271
   - success
22486
   - success
22272
  """
22487
  """
22273
 
22488
 
22274
  thrift_spec = (
22489
  thrift_spec = (
22275
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
22490
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
22276
  )
22491
  )
22277
 
22492
 
22278
  def __init__(self, success=None,):
22493
  def __init__(self, success=None,):
22279
    self.success = success
22494
    self.success = success
22280
 
22495
 
Line 22287... Line 22502...
22287
      (fname, ftype, fid) = iprot.readFieldBegin()
22502
      (fname, ftype, fid) = iprot.readFieldBegin()
22288
      if ftype == TType.STOP:
22503
      if ftype == TType.STOP:
22289
        break
22504
        break
22290
      if fid == 0:
22505
      if fid == 0:
22291
        if ftype == TType.STRUCT:
22506
        if ftype == TType.STRUCT:
22292
          self.success = SnapdealItem()
22507
          self.success = SnapdealItemDetails()
22293
          self.success.read(iprot)
22508
          self.success.read(iprot)
22294
        else:
22509
        else:
22295
          iprot.skip(ftype)
22510
          iprot.skip(ftype)
22296
      else:
22511
      else:
22297
        iprot.skip(ftype)
22512
        iprot.skip(ftype)
Line 22300... Line 22515...
22300
 
22515
 
22301
  def write(self, oprot):
22516
  def write(self, oprot):
22302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22304
      return
22519
      return
22305
    oprot.writeStructBegin('getSnapdealItem_result')
22520
    oprot.writeStructBegin('getSnapdealItemDetails_result')
22306
    if self.success is not None:
22521
    if self.success is not None:
22307
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22522
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22308
      self.success.write(oprot)
22523
      self.success.write(oprot)
22309
      oprot.writeFieldEnd()
22524
      oprot.writeFieldEnd()
22310
    oprot.writeFieldStop()
22525
    oprot.writeFieldStop()
Line 22372... Line 22587...
22372
  Attributes:
22587
  Attributes:
22373
   - success
22588
   - success
22374
  """
22589
  """
22375
 
22590
 
22376
  thrift_spec = (
22591
  thrift_spec = (
-
 
22592
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
-
 
22593
  )
-
 
22594
 
-
 
22595
  def __init__(self, success=None,):
-
 
22596
    self.success = success
-
 
22597
 
-
 
22598
  def read(self, iprot):
-
 
22599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22601
      return
-
 
22602
    iprot.readStructBegin()
-
 
22603
    while True:
-
 
22604
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22605
      if ftype == TType.STOP:
-
 
22606
        break
-
 
22607
      if fid == 0:
-
 
22608
        if ftype == TType.LIST:
-
 
22609
          self.success = []
-
 
22610
          (_etype516, _size513) = iprot.readListBegin()
-
 
22611
          for _i517 in xrange(_size513):
-
 
22612
            _elem518 = SnapdealItemDetails()
-
 
22613
            _elem518.read(iprot)
-
 
22614
            self.success.append(_elem518)
-
 
22615
          iprot.readListEnd()
-
 
22616
        else:
-
 
22617
          iprot.skip(ftype)
-
 
22618
      else:
-
 
22619
        iprot.skip(ftype)
-
 
22620
      iprot.readFieldEnd()
-
 
22621
    iprot.readStructEnd()
-
 
22622
 
-
 
22623
  def write(self, oprot):
-
 
22624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22626
      return
-
 
22627
    oprot.writeStructBegin('getAllSnapdealItems_result')
-
 
22628
    if self.success is not None:
-
 
22629
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
22630
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
22631
      for iter519 in self.success:
-
 
22632
        iter519.write(oprot)
-
 
22633
      oprot.writeListEnd()
-
 
22634
      oprot.writeFieldEnd()
-
 
22635
    oprot.writeFieldStop()
-
 
22636
    oprot.writeStructEnd()
-
 
22637
 
-
 
22638
  def validate(self):
-
 
22639
    return
-
 
22640
 
-
 
22641
 
-
 
22642
  def __repr__(self):
-
 
22643
    L = ['%s=%r' % (key, value)
-
 
22644
      for key, value in self.__dict__.iteritems()]
-
 
22645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22646
 
-
 
22647
  def __eq__(self, other):
-
 
22648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22649
 
-
 
22650
  def __ne__(self, other):
-
 
22651
    return not (self == other)
-
 
22652
 
-
 
22653
class getSnapdealItems_args:
-
 
22654
  """
-
 
22655
  Attributes:
-
 
22656
   - offset
-
 
22657
   - limit
-
 
22658
  """
-
 
22659
 
-
 
22660
  thrift_spec = (
-
 
22661
    None, # 0
-
 
22662
    (1, TType.I64, 'offset', None, None, ), # 1
-
 
22663
    (2, TType.I64, 'limit', None, None, ), # 2
-
 
22664
  )
-
 
22665
 
-
 
22666
  def __init__(self, offset=None, limit=None,):
-
 
22667
    self.offset = offset
-
 
22668
    self.limit = limit
-
 
22669
 
-
 
22670
  def read(self, iprot):
-
 
22671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22673
      return
-
 
22674
    iprot.readStructBegin()
-
 
22675
    while True:
-
 
22676
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22677
      if ftype == TType.STOP:
-
 
22678
        break
-
 
22679
      if fid == 1:
-
 
22680
        if ftype == TType.I64:
-
 
22681
          self.offset = iprot.readI64();
-
 
22682
        else:
-
 
22683
          iprot.skip(ftype)
-
 
22684
      elif fid == 2:
-
 
22685
        if ftype == TType.I64:
-
 
22686
          self.limit = iprot.readI64();
-
 
22687
        else:
-
 
22688
          iprot.skip(ftype)
-
 
22689
      else:
-
 
22690
        iprot.skip(ftype)
-
 
22691
      iprot.readFieldEnd()
-
 
22692
    iprot.readStructEnd()
-
 
22693
 
-
 
22694
  def write(self, oprot):
-
 
22695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22697
      return
-
 
22698
    oprot.writeStructBegin('getSnapdealItems_args')
-
 
22699
    if self.offset is not None:
-
 
22700
      oprot.writeFieldBegin('offset', TType.I64, 1)
-
 
22701
      oprot.writeI64(self.offset)
-
 
22702
      oprot.writeFieldEnd()
-
 
22703
    if self.limit is not None:
-
 
22704
      oprot.writeFieldBegin('limit', TType.I64, 2)
-
 
22705
      oprot.writeI64(self.limit)
-
 
22706
      oprot.writeFieldEnd()
-
 
22707
    oprot.writeFieldStop()
-
 
22708
    oprot.writeStructEnd()
-
 
22709
 
-
 
22710
  def validate(self):
-
 
22711
    return
-
 
22712
 
-
 
22713
 
-
 
22714
  def __repr__(self):
-
 
22715
    L = ['%s=%r' % (key, value)
-
 
22716
      for key, value in self.__dict__.iteritems()]
-
 
22717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22718
 
-
 
22719
  def __eq__(self, other):
-
 
22720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22721
 
-
 
22722
  def __ne__(self, other):
-
 
22723
    return not (self == other)
-
 
22724
 
-
 
22725
class getSnapdealItems_result:
-
 
22726
  """
-
 
22727
  Attributes:
-
 
22728
   - success
-
 
22729
  """
-
 
22730
 
-
 
22731
  thrift_spec = (
22377
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
22732
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
22378
  )
22733
  )
22379
 
22734
 
22380
  def __init__(self, success=None,):
22735
  def __init__(self, success=None,):
22381
    self.success = success
22736
    self.success = success
22382
 
22737
 
Line 22392... Line 22747...
22392
      if fid == 0:
22747
      if fid == 0:
22393
        if ftype == TType.LIST:
22748
        if ftype == TType.LIST:
22394
          self.success = []
22749
          self.success = []
22395
          (_etype523, _size520) = iprot.readListBegin()
22750
          (_etype523, _size520) = iprot.readListBegin()
22396
          for _i524 in xrange(_size520):
22751
          for _i524 in xrange(_size520):
22397
            _elem525 = SnapdealItem()
22752
            _elem525 = SnapdealItemDetails()
22398
            _elem525.read(iprot)
22753
            _elem525.read(iprot)
22399
            self.success.append(_elem525)
22754
            self.success.append(_elem525)
22400
          iprot.readListEnd()
22755
          iprot.readListEnd()
22401
        else:
22756
        else:
22402
          iprot.skip(ftype)
22757
          iprot.skip(ftype)
Line 22407... Line 22762...
22407
 
22762
 
22408
  def write(self, oprot):
22763
  def write(self, oprot):
22409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22411
      return
22766
      return
22412
    oprot.writeStructBegin('getAllSnapdealItems_result')
22767
    oprot.writeStructBegin('getSnapdealItems_result')
22413
    if self.success is not None:
22768
    if self.success is not None:
22414
      oprot.writeFieldBegin('success', TType.LIST, 0)
22769
      oprot.writeFieldBegin('success', TType.LIST, 0)
22415
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22770
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22416
      for iter526 in self.success:
22771
      for iter526 in self.success:
22417
        iter526.write(oprot)
22772
        iter526.write(oprot)
Line 22419... Line 22774...
22419
      oprot.writeFieldEnd()
22774
      oprot.writeFieldEnd()
22420
    oprot.writeFieldStop()
22775
    oprot.writeFieldStop()
22421
    oprot.writeStructEnd()
22776
    oprot.writeStructEnd()
22422
 
22777
 
22423
  def validate(self):
22778
  def validate(self):
-
 
22779
    return
-
 
22780
 
-
 
22781
 
-
 
22782
  def __repr__(self):
-
 
22783
    L = ['%s=%r' % (key, value)
-
 
22784
      for key, value in self.__dict__.iteritems()]
-
 
22785
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22786
 
-
 
22787
  def __eq__(self, other):
-
 
22788
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22789
 
-
 
22790
  def __ne__(self, other):
-
 
22791
    return not (self == other)
-
 
22792
 
-
 
22793
class searchSnapdealItems_args:
-
 
22794
  """
-
 
22795
  Attributes:
-
 
22796
   - searchTerm
-
 
22797
   - offset
-
 
22798
   - limit
-
 
22799
  """
-
 
22800
 
-
 
22801
  thrift_spec = (
-
 
22802
    None, # 0
-
 
22803
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
-
 
22804
    (2, TType.I64, 'offset', None, None, ), # 2
-
 
22805
    (3, TType.I64, 'limit', None, None, ), # 3
-
 
22806
  )
-
 
22807
 
-
 
22808
  def __init__(self, searchTerm=None, offset=None, limit=None,):
-
 
22809
    self.searchTerm = searchTerm
-
 
22810
    self.offset = offset
-
 
22811
    self.limit = limit
-
 
22812
 
-
 
22813
  def read(self, iprot):
-
 
22814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22816
      return
-
 
22817
    iprot.readStructBegin()
-
 
22818
    while True:
-
 
22819
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22820
      if ftype == TType.STOP:
-
 
22821
        break
-
 
22822
      if fid == 1:
-
 
22823
        if ftype == TType.LIST:
-
 
22824
          self.searchTerm = []
-
 
22825
          (_etype530, _size527) = iprot.readListBegin()
-
 
22826
          for _i531 in xrange(_size527):
-
 
22827
            _elem532 = iprot.readString();
-
 
22828
            self.searchTerm.append(_elem532)
-
 
22829
          iprot.readListEnd()
-
 
22830
        else:
-
 
22831
          iprot.skip(ftype)
-
 
22832
      elif fid == 2:
-
 
22833
        if ftype == TType.I64:
-
 
22834
          self.offset = iprot.readI64();
-
 
22835
        else:
-
 
22836
          iprot.skip(ftype)
-
 
22837
      elif fid == 3:
-
 
22838
        if ftype == TType.I64:
-
 
22839
          self.limit = iprot.readI64();
-
 
22840
        else:
-
 
22841
          iprot.skip(ftype)
-
 
22842
      else:
-
 
22843
        iprot.skip(ftype)
-
 
22844
      iprot.readFieldEnd()
-
 
22845
    iprot.readStructEnd()
-
 
22846
 
-
 
22847
  def write(self, oprot):
-
 
22848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22850
      return
-
 
22851
    oprot.writeStructBegin('searchSnapdealItems_args')
-
 
22852
    if self.searchTerm is not None:
-
 
22853
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
-
 
22854
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
-
 
22855
      for iter533 in self.searchTerm:
-
 
22856
        oprot.writeString(iter533)
-
 
22857
      oprot.writeListEnd()
-
 
22858
      oprot.writeFieldEnd()
-
 
22859
    if self.offset is not None:
-
 
22860
      oprot.writeFieldBegin('offset', TType.I64, 2)
-
 
22861
      oprot.writeI64(self.offset)
-
 
22862
      oprot.writeFieldEnd()
-
 
22863
    if self.limit is not None:
-
 
22864
      oprot.writeFieldBegin('limit', TType.I64, 3)
-
 
22865
      oprot.writeI64(self.limit)
-
 
22866
      oprot.writeFieldEnd()
-
 
22867
    oprot.writeFieldStop()
-
 
22868
    oprot.writeStructEnd()
-
 
22869
 
-
 
22870
  def validate(self):
-
 
22871
    return
-
 
22872
 
-
 
22873
 
-
 
22874
  def __repr__(self):
-
 
22875
    L = ['%s=%r' % (key, value)
-
 
22876
      for key, value in self.__dict__.iteritems()]
-
 
22877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22878
 
-
 
22879
  def __eq__(self, other):
-
 
22880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22881
 
-
 
22882
  def __ne__(self, other):
-
 
22883
    return not (self == other)
-
 
22884
 
-
 
22885
class searchSnapdealItems_result:
-
 
22886
  """
-
 
22887
  Attributes:
-
 
22888
   - success
-
 
22889
  """
-
 
22890
 
-
 
22891
  thrift_spec = (
-
 
22892
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
-
 
22893
  )
-
 
22894
 
-
 
22895
  def __init__(self, success=None,):
-
 
22896
    self.success = success
-
 
22897
 
-
 
22898
  def read(self, iprot):
-
 
22899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22901
      return
-
 
22902
    iprot.readStructBegin()
-
 
22903
    while True:
-
 
22904
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22905
      if ftype == TType.STOP:
-
 
22906
        break
-
 
22907
      if fid == 0:
-
 
22908
        if ftype == TType.LIST:
-
 
22909
          self.success = []
-
 
22910
          (_etype537, _size534) = iprot.readListBegin()
-
 
22911
          for _i538 in xrange(_size534):
-
 
22912
            _elem539 = SnapdealItemDetails()
-
 
22913
            _elem539.read(iprot)
-
 
22914
            self.success.append(_elem539)
-
 
22915
          iprot.readListEnd()
-
 
22916
        else:
-
 
22917
          iprot.skip(ftype)
-
 
22918
      else:
-
 
22919
        iprot.skip(ftype)
-
 
22920
      iprot.readFieldEnd()
-
 
22921
    iprot.readStructEnd()
-
 
22922
 
-
 
22923
  def write(self, oprot):
-
 
22924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22926
      return
-
 
22927
    oprot.writeStructBegin('searchSnapdealItems_result')
-
 
22928
    if self.success is not None:
-
 
22929
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
22930
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
22931
      for iter540 in self.success:
-
 
22932
        iter540.write(oprot)
-
 
22933
      oprot.writeListEnd()
-
 
22934
      oprot.writeFieldEnd()
-
 
22935
    oprot.writeFieldStop()
-
 
22936
    oprot.writeStructEnd()
-
 
22937
 
-
 
22938
  def validate(self):
-
 
22939
    return
-
 
22940
 
-
 
22941
 
-
 
22942
  def __repr__(self):
-
 
22943
    L = ['%s=%r' % (key, value)
-
 
22944
      for key, value in self.__dict__.iteritems()]
-
 
22945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22946
 
-
 
22947
  def __eq__(self, other):
-
 
22948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22949
 
-
 
22950
  def __ne__(self, other):
-
 
22951
    return not (self == other)
-
 
22952
 
-
 
22953
class getCountForSnapdealItems_args:
-
 
22954
 
-
 
22955
  thrift_spec = (
-
 
22956
  )
-
 
22957
 
-
 
22958
  def read(self, iprot):
-
 
22959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22961
      return
-
 
22962
    iprot.readStructBegin()
-
 
22963
    while True:
-
 
22964
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22965
      if ftype == TType.STOP:
-
 
22966
        break
-
 
22967
      else:
-
 
22968
        iprot.skip(ftype)
-
 
22969
      iprot.readFieldEnd()
-
 
22970
    iprot.readStructEnd()
-
 
22971
 
-
 
22972
  def write(self, oprot):
-
 
22973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22975
      return
-
 
22976
    oprot.writeStructBegin('getCountForSnapdealItems_args')
-
 
22977
    oprot.writeFieldStop()
-
 
22978
    oprot.writeStructEnd()
-
 
22979
 
-
 
22980
  def validate(self):
-
 
22981
    return
-
 
22982
 
-
 
22983
 
-
 
22984
  def __repr__(self):
-
 
22985
    L = ['%s=%r' % (key, value)
-
 
22986
      for key, value in self.__dict__.iteritems()]
-
 
22987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22988
 
-
 
22989
  def __eq__(self, other):
-
 
22990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22991
 
-
 
22992
  def __ne__(self, other):
-
 
22993
    return not (self == other)
-
 
22994
 
-
 
22995
class getCountForSnapdealItems_result:
-
 
22996
  """
-
 
22997
  Attributes:
-
 
22998
   - success
-
 
22999
  """
-
 
23000
 
-
 
23001
  thrift_spec = (
-
 
23002
    (0, TType.I64, 'success', None, None, ), # 0
-
 
23003
  )
-
 
23004
 
-
 
23005
  def __init__(self, success=None,):
-
 
23006
    self.success = success
-
 
23007
 
-
 
23008
  def read(self, iprot):
-
 
23009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23011
      return
-
 
23012
    iprot.readStructBegin()
-
 
23013
    while True:
-
 
23014
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23015
      if ftype == TType.STOP:
-
 
23016
        break
-
 
23017
      if fid == 0:
-
 
23018
        if ftype == TType.I64:
-
 
23019
          self.success = iprot.readI64();
-
 
23020
        else:
-
 
23021
          iprot.skip(ftype)
-
 
23022
      else:
-
 
23023
        iprot.skip(ftype)
-
 
23024
      iprot.readFieldEnd()
-
 
23025
    iprot.readStructEnd()
-
 
23026
 
-
 
23027
  def write(self, oprot):
-
 
23028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23030
      return
-
 
23031
    oprot.writeStructBegin('getCountForSnapdealItems_result')
-
 
23032
    if self.success is not None:
-
 
23033
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
23034
      oprot.writeI64(self.success)
-
 
23035
      oprot.writeFieldEnd()
-
 
23036
    oprot.writeFieldStop()
-
 
23037
    oprot.writeStructEnd()
-
 
23038
 
-
 
23039
  def validate(self):
-
 
23040
    return
-
 
23041
 
-
 
23042
 
-
 
23043
  def __repr__(self):
-
 
23044
    L = ['%s=%r' % (key, value)
-
 
23045
      for key, value in self.__dict__.iteritems()]
-
 
23046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23047
 
-
 
23048
  def __eq__(self, other):
-
 
23049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23050
 
-
 
23051
  def __ne__(self, other):
-
 
23052
    return not (self == other)
-
 
23053
 
-
 
23054
class getSnapdealSearchResultCount_args:
-
 
23055
  """
-
 
23056
  Attributes:
-
 
23057
   - searchTerm
-
 
23058
  """
-
 
23059
 
-
 
23060
  thrift_spec = (
-
 
23061
    None, # 0
-
 
23062
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
-
 
23063
  )
-
 
23064
 
-
 
23065
  def __init__(self, searchTerm=None,):
-
 
23066
    self.searchTerm = searchTerm
-
 
23067
 
-
 
23068
  def read(self, iprot):
-
 
23069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23071
      return
-
 
23072
    iprot.readStructBegin()
-
 
23073
    while True:
-
 
23074
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23075
      if ftype == TType.STOP:
-
 
23076
        break
-
 
23077
      if fid == 1:
-
 
23078
        if ftype == TType.LIST:
-
 
23079
          self.searchTerm = []
-
 
23080
          (_etype544, _size541) = iprot.readListBegin()
-
 
23081
          for _i545 in xrange(_size541):
-
 
23082
            _elem546 = iprot.readString();
-
 
23083
            self.searchTerm.append(_elem546)
-
 
23084
          iprot.readListEnd()
-
 
23085
        else:
-
 
23086
          iprot.skip(ftype)
-
 
23087
      else:
-
 
23088
        iprot.skip(ftype)
-
 
23089
      iprot.readFieldEnd()
-
 
23090
    iprot.readStructEnd()
-
 
23091
 
-
 
23092
  def write(self, oprot):
-
 
23093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23095
      return
-
 
23096
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
-
 
23097
    if self.searchTerm is not None:
-
 
23098
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
-
 
23099
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
-
 
23100
      for iter547 in self.searchTerm:
-
 
23101
        oprot.writeString(iter547)
-
 
23102
      oprot.writeListEnd()
-
 
23103
      oprot.writeFieldEnd()
-
 
23104
    oprot.writeFieldStop()
-
 
23105
    oprot.writeStructEnd()
-
 
23106
 
-
 
23107
  def validate(self):
-
 
23108
    return
-
 
23109
 
-
 
23110
 
-
 
23111
  def __repr__(self):
-
 
23112
    L = ['%s=%r' % (key, value)
-
 
23113
      for key, value in self.__dict__.iteritems()]
-
 
23114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23115
 
-
 
23116
  def __eq__(self, other):
-
 
23117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23118
 
-
 
23119
  def __ne__(self, other):
-
 
23120
    return not (self == other)
-
 
23121
 
-
 
23122
class getSnapdealSearchResultCount_result:
-
 
23123
  """
-
 
23124
  Attributes:
-
 
23125
   - success
-
 
23126
  """
-
 
23127
 
-
 
23128
  thrift_spec = (
-
 
23129
    (0, TType.I64, 'success', None, None, ), # 0
-
 
23130
  )
-
 
23131
 
-
 
23132
  def __init__(self, success=None,):
-
 
23133
    self.success = success
-
 
23134
 
-
 
23135
  def read(self, iprot):
-
 
23136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23138
      return
-
 
23139
    iprot.readStructBegin()
-
 
23140
    while True:
-
 
23141
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23142
      if ftype == TType.STOP:
-
 
23143
        break
-
 
23144
      if fid == 0:
-
 
23145
        if ftype == TType.I64:
-
 
23146
          self.success = iprot.readI64();
-
 
23147
        else:
-
 
23148
          iprot.skip(ftype)
-
 
23149
      else:
-
 
23150
        iprot.skip(ftype)
-
 
23151
      iprot.readFieldEnd()
-
 
23152
    iprot.readStructEnd()
-
 
23153
 
-
 
23154
  def write(self, oprot):
-
 
23155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23157
      return
-
 
23158
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
-
 
23159
    if self.success is not None:
-
 
23160
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
23161
      oprot.writeI64(self.success)
-
 
23162
      oprot.writeFieldEnd()
-
 
23163
    oprot.writeFieldStop()
-
 
23164
    oprot.writeStructEnd()
-
 
23165
 
-
 
23166
  def validate(self):
22424
    return
23167
    return
22425
 
23168
 
22426
 
23169
 
22427
  def __repr__(self):
23170
  def __repr__(self):
22428
    L = ['%s=%r' % (key, value)
23171
    L = ['%s=%r' % (key, value)