Subversion Repositories SmartDukaan

Rev

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

Rev 13493 Rev 13709
Line 1291... Line 1291...
1291
    Parameters:
1291
    Parameters:
1292
     - lines
1292
     - lines
1293
    """
1293
    """
1294
    pass
1294
    pass
1295
 
1295
 
-
 
1296
  def addHsItem(self, hsItems):
-
 
1297
    """
-
 
1298
    Parameters:
-
 
1299
     - hsItems
-
 
1300
    """
-
 
1301
    pass
-
 
1302
 
-
 
1303
  def getHsItem(self, hsItemId):
-
 
1304
    """
-
 
1305
    Parameters:
-
 
1306
     - hsItemId
-
 
1307
    """
-
 
1308
    pass
-
 
1309
 
-
 
1310
  def updateHsItem(self, hsItem):
-
 
1311
    """
-
 
1312
    Parameters:
-
 
1313
     - hsItem
-
 
1314
    """
-
 
1315
    pass
-
 
1316
 
1296
 
1317
 
1297
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1318
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1298
  def __init__(self, iprot, oprot=None):
1319
  def __init__(self, iprot, oprot=None):
1299
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1320
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1300
 
1321
 
Line 6879... Line 6900...
6879
      return result.success
6900
      return result.success
6880
    if result.cex is not None:
6901
    if result.cex is not None:
6881
      raise result.cex
6902
      raise result.cex
6882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
6903
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
6883
 
6904
 
-
 
6905
  def addHsItem(self, hsItems):
-
 
6906
    """
-
 
6907
    Parameters:
-
 
6908
     - hsItems
-
 
6909
    """
-
 
6910
    self.send_addHsItem(hsItems)
-
 
6911
    self.recv_addHsItem()
-
 
6912
 
-
 
6913
  def send_addHsItem(self, hsItems):
-
 
6914
    self._oprot.writeMessageBegin('addHsItem', TMessageType.CALL, self._seqid)
-
 
6915
    args = addHsItem_args()
-
 
6916
    args.hsItems = hsItems
-
 
6917
    args.write(self._oprot)
-
 
6918
    self._oprot.writeMessageEnd()
-
 
6919
    self._oprot.trans.flush()
-
 
6920
 
-
 
6921
  def recv_addHsItem(self, ):
-
 
6922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6923
    if mtype == TMessageType.EXCEPTION:
-
 
6924
      x = TApplicationException()
-
 
6925
      x.read(self._iprot)
-
 
6926
      self._iprot.readMessageEnd()
-
 
6927
      raise x
-
 
6928
    result = addHsItem_result()
-
 
6929
    result.read(self._iprot)
-
 
6930
    self._iprot.readMessageEnd()
-
 
6931
    return
-
 
6932
 
-
 
6933
  def getHsItem(self, hsItemId):
-
 
6934
    """
-
 
6935
    Parameters:
-
 
6936
     - hsItemId
-
 
6937
    """
-
 
6938
    self.send_getHsItem(hsItemId)
-
 
6939
    return self.recv_getHsItem()
-
 
6940
 
-
 
6941
  def send_getHsItem(self, hsItemId):
-
 
6942
    self._oprot.writeMessageBegin('getHsItem', TMessageType.CALL, self._seqid)
-
 
6943
    args = getHsItem_args()
-
 
6944
    args.hsItemId = hsItemId
-
 
6945
    args.write(self._oprot)
-
 
6946
    self._oprot.writeMessageEnd()
-
 
6947
    self._oprot.trans.flush()
-
 
6948
 
-
 
6949
  def recv_getHsItem(self, ):
-
 
6950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6951
    if mtype == TMessageType.EXCEPTION:
-
 
6952
      x = TApplicationException()
-
 
6953
      x.read(self._iprot)
-
 
6954
      self._iprot.readMessageEnd()
-
 
6955
      raise x
-
 
6956
    result = getHsItem_result()
-
 
6957
    result.read(self._iprot)
-
 
6958
    self._iprot.readMessageEnd()
-
 
6959
    if result.success is not None:
-
 
6960
      return result.success
-
 
6961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHsItem failed: unknown result");
-
 
6962
 
-
 
6963
  def updateHsItem(self, hsItem):
-
 
6964
    """
-
 
6965
    Parameters:
-
 
6966
     - hsItem
-
 
6967
    """
-
 
6968
    self.send_updateHsItem(hsItem)
-
 
6969
    self.recv_updateHsItem()
-
 
6970
 
-
 
6971
  def send_updateHsItem(self, hsItem):
-
 
6972
    self._oprot.writeMessageBegin('updateHsItem', TMessageType.CALL, self._seqid)
-
 
6973
    args = updateHsItem_args()
-
 
6974
    args.hsItem = hsItem
-
 
6975
    args.write(self._oprot)
-
 
6976
    self._oprot.writeMessageEnd()
-
 
6977
    self._oprot.trans.flush()
-
 
6978
 
-
 
6979
  def recv_updateHsItem(self, ):
-
 
6980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6981
    if mtype == TMessageType.EXCEPTION:
-
 
6982
      x = TApplicationException()
-
 
6983
      x.read(self._iprot)
-
 
6984
      self._iprot.readMessageEnd()
-
 
6985
      raise x
-
 
6986
    result = updateHsItem_result()
-
 
6987
    result.read(self._iprot)
-
 
6988
    self._iprot.readMessageEnd()
-
 
6989
    return
-
 
6990
 
6884
 
6991
 
6885
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6992
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6886
  def __init__(self, handler):
6993
  def __init__(self, handler):
6887
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6994
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6888
    self._processMap["addItem"] = Processor.process_addItem
6995
    self._processMap["addItem"] = Processor.process_addItem
Line 7066... Line 7173...
7066
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
7173
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
7067
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
7174
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
7068
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
7175
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
7069
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
7176
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
7070
    self._processMap["checkServices"] = Processor.process_checkServices
7177
    self._processMap["checkServices"] = Processor.process_checkServices
-
 
7178
    self._processMap["addHsItem"] = Processor.process_addHsItem
-
 
7179
    self._processMap["getHsItem"] = Processor.process_getHsItem
-
 
7180
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
7071
 
7181
 
7072
  def process(self, iprot, oprot):
7182
  def process(self, iprot, oprot):
7073
    (name, type, seqid) = iprot.readMessageBegin()
7183
    (name, type, seqid) = iprot.readMessageBegin()
7074
    if name not in self._processMap:
7184
    if name not in self._processMap:
7075
      iprot.skip(TType.STRUCT)
7185
      iprot.skip(TType.STRUCT)
Line 9239... Line 9349...
9239
    oprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)
9349
    oprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)
9240
    result.write(oprot)
9350
    result.write(oprot)
9241
    oprot.writeMessageEnd()
9351
    oprot.writeMessageEnd()
9242
    oprot.trans.flush()
9352
    oprot.trans.flush()
9243
 
9353
 
-
 
9354
  def process_addHsItem(self, seqid, iprot, oprot):
-
 
9355
    args = addHsItem_args()
-
 
9356
    args.read(iprot)
-
 
9357
    iprot.readMessageEnd()
-
 
9358
    result = addHsItem_result()
-
 
9359
    self._handler.addHsItem(args.hsItems)
-
 
9360
    oprot.writeMessageBegin("addHsItem", TMessageType.REPLY, seqid)
-
 
9361
    result.write(oprot)
-
 
9362
    oprot.writeMessageEnd()
-
 
9363
    oprot.trans.flush()
-
 
9364
 
-
 
9365
  def process_getHsItem(self, seqid, iprot, oprot):
-
 
9366
    args = getHsItem_args()
-
 
9367
    args.read(iprot)
-
 
9368
    iprot.readMessageEnd()
-
 
9369
    result = getHsItem_result()
-
 
9370
    result.success = self._handler.getHsItem(args.hsItemId)
-
 
9371
    oprot.writeMessageBegin("getHsItem", TMessageType.REPLY, seqid)
-
 
9372
    result.write(oprot)
-
 
9373
    oprot.writeMessageEnd()
-
 
9374
    oprot.trans.flush()
-
 
9375
 
-
 
9376
  def process_updateHsItem(self, seqid, iprot, oprot):
-
 
9377
    args = updateHsItem_args()
-
 
9378
    args.read(iprot)
-
 
9379
    iprot.readMessageEnd()
-
 
9380
    result = updateHsItem_result()
-
 
9381
    self._handler.updateHsItem(args.hsItem)
-
 
9382
    oprot.writeMessageBegin("updateHsItem", TMessageType.REPLY, seqid)
-
 
9383
    result.write(oprot)
-
 
9384
    oprot.writeMessageEnd()
-
 
9385
    oprot.trans.flush()
-
 
9386
 
9244
 
9387
 
9245
# HELPER FUNCTIONS AND STRUCTURES
9388
# HELPER FUNCTIONS AND STRUCTURES
9246
 
9389
 
9247
class addItem_args:
9390
class addItem_args:
9248
  """
9391
  """
Line 32586... Line 32729...
32586
    oprot.writeFieldStop()
32729
    oprot.writeFieldStop()
32587
    oprot.writeStructEnd()
32730
    oprot.writeStructEnd()
32588
 
32731
 
32589
  def validate(self):
32732
  def validate(self):
32590
    return
32733
    return
-
 
32734
 
-
 
32735
 
-
 
32736
  def __repr__(self):
-
 
32737
    L = ['%s=%r' % (key, value)
-
 
32738
      for key, value in self.__dict__.iteritems()]
-
 
32739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32740
 
-
 
32741
  def __eq__(self, other):
-
 
32742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32743
 
-
 
32744
  def __ne__(self, other):
-
 
32745
    return not (self == other)
-
 
32746
 
-
 
32747
class addHsItem_args:
-
 
32748
  """
-
 
32749
  Attributes:
-
 
32750
   - hsItems
-
 
32751
  """
-
 
32752
 
-
 
32753
  thrift_spec = (
-
 
32754
    None, # 0
-
 
32755
    (1, TType.LIST, 'hsItems', (TType.STRUCT,(HsItem, HsItem.thrift_spec)), None, ), # 1
-
 
32756
  )
-
 
32757
 
-
 
32758
  def __init__(self, hsItems=None,):
-
 
32759
    self.hsItems = hsItems
-
 
32760
 
-
 
32761
  def read(self, iprot):
-
 
32762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32764
      return
-
 
32765
    iprot.readStructBegin()
-
 
32766
    while True:
-
 
32767
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32768
      if ftype == TType.STOP:
-
 
32769
        break
-
 
32770
      if fid == 1:
-
 
32771
        if ftype == TType.LIST:
-
 
32772
          self.hsItems = []
-
 
32773
          (_etype848, _size845) = iprot.readListBegin()
-
 
32774
          for _i849 in xrange(_size845):
-
 
32775
            _elem850 = HsItem()
-
 
32776
            _elem850.read(iprot)
-
 
32777
            self.hsItems.append(_elem850)
-
 
32778
          iprot.readListEnd()
-
 
32779
        else:
-
 
32780
          iprot.skip(ftype)
-
 
32781
      else:
-
 
32782
        iprot.skip(ftype)
-
 
32783
      iprot.readFieldEnd()
-
 
32784
    iprot.readStructEnd()
-
 
32785
 
-
 
32786
  def write(self, oprot):
-
 
32787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32789
      return
-
 
32790
    oprot.writeStructBegin('addHsItem_args')
-
 
32791
    if self.hsItems is not None:
-
 
32792
      oprot.writeFieldBegin('hsItems', TType.LIST, 1)
-
 
32793
      oprot.writeListBegin(TType.STRUCT, len(self.hsItems))
-
 
32794
      for iter851 in self.hsItems:
-
 
32795
        iter851.write(oprot)
-
 
32796
      oprot.writeListEnd()
-
 
32797
      oprot.writeFieldEnd()
-
 
32798
    oprot.writeFieldStop()
-
 
32799
    oprot.writeStructEnd()
-
 
32800
 
-
 
32801
  def validate(self):
-
 
32802
    return
-
 
32803
 
-
 
32804
 
-
 
32805
  def __repr__(self):
-
 
32806
    L = ['%s=%r' % (key, value)
-
 
32807
      for key, value in self.__dict__.iteritems()]
-
 
32808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32809
 
-
 
32810
  def __eq__(self, other):
-
 
32811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32812
 
-
 
32813
  def __ne__(self, other):
-
 
32814
    return not (self == other)
-
 
32815
 
-
 
32816
class addHsItem_result:
-
 
32817
 
-
 
32818
  thrift_spec = (
-
 
32819
  )
-
 
32820
 
-
 
32821
  def read(self, iprot):
-
 
32822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32824
      return
-
 
32825
    iprot.readStructBegin()
-
 
32826
    while True:
-
 
32827
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32828
      if ftype == TType.STOP:
-
 
32829
        break
-
 
32830
      else:
-
 
32831
        iprot.skip(ftype)
-
 
32832
      iprot.readFieldEnd()
-
 
32833
    iprot.readStructEnd()
-
 
32834
 
-
 
32835
  def write(self, oprot):
-
 
32836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32838
      return
-
 
32839
    oprot.writeStructBegin('addHsItem_result')
-
 
32840
    oprot.writeFieldStop()
-
 
32841
    oprot.writeStructEnd()
-
 
32842
 
-
 
32843
  def validate(self):
-
 
32844
    return
-
 
32845
 
-
 
32846
 
-
 
32847
  def __repr__(self):
-
 
32848
    L = ['%s=%r' % (key, value)
-
 
32849
      for key, value in self.__dict__.iteritems()]
-
 
32850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32851
 
-
 
32852
  def __eq__(self, other):
-
 
32853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32854
 
-
 
32855
  def __ne__(self, other):
-
 
32856
    return not (self == other)
-
 
32857
 
-
 
32858
class getHsItem_args:
-
 
32859
  """
-
 
32860
  Attributes:
-
 
32861
   - hsItemId
-
 
32862
  """
-
 
32863
 
-
 
32864
  thrift_spec = (
-
 
32865
    None, # 0
-
 
32866
    (1, TType.STRING, 'hsItemId', None, None, ), # 1
-
 
32867
  )
-
 
32868
 
-
 
32869
  def __init__(self, hsItemId=None,):
-
 
32870
    self.hsItemId = hsItemId
-
 
32871
 
-
 
32872
  def read(self, iprot):
-
 
32873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32875
      return
-
 
32876
    iprot.readStructBegin()
-
 
32877
    while True:
-
 
32878
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32879
      if ftype == TType.STOP:
-
 
32880
        break
-
 
32881
      if fid == 1:
-
 
32882
        if ftype == TType.STRING:
-
 
32883
          self.hsItemId = iprot.readString();
-
 
32884
        else:
-
 
32885
          iprot.skip(ftype)
-
 
32886
      else:
-
 
32887
        iprot.skip(ftype)
-
 
32888
      iprot.readFieldEnd()
-
 
32889
    iprot.readStructEnd()
-
 
32890
 
-
 
32891
  def write(self, oprot):
-
 
32892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32894
      return
-
 
32895
    oprot.writeStructBegin('getHsItem_args')
-
 
32896
    if self.hsItemId is not None:
-
 
32897
      oprot.writeFieldBegin('hsItemId', TType.STRING, 1)
-
 
32898
      oprot.writeString(self.hsItemId)
-
 
32899
      oprot.writeFieldEnd()
-
 
32900
    oprot.writeFieldStop()
-
 
32901
    oprot.writeStructEnd()
-
 
32902
 
-
 
32903
  def validate(self):
-
 
32904
    return
-
 
32905
 
-
 
32906
 
-
 
32907
  def __repr__(self):
-
 
32908
    L = ['%s=%r' % (key, value)
-
 
32909
      for key, value in self.__dict__.iteritems()]
-
 
32910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32911
 
-
 
32912
  def __eq__(self, other):
-
 
32913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32914
 
-
 
32915
  def __ne__(self, other):
-
 
32916
    return not (self == other)
-
 
32917
 
-
 
32918
class getHsItem_result:
-
 
32919
  """
-
 
32920
  Attributes:
-
 
32921
   - success
-
 
32922
  """
-
 
32923
 
-
 
32924
  thrift_spec = (
-
 
32925
    (0, TType.STRUCT, 'success', (HsItem, HsItem.thrift_spec), None, ), # 0
-
 
32926
  )
-
 
32927
 
-
 
32928
  def __init__(self, success=None,):
-
 
32929
    self.success = success
-
 
32930
 
-
 
32931
  def read(self, iprot):
-
 
32932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32934
      return
-
 
32935
    iprot.readStructBegin()
-
 
32936
    while True:
-
 
32937
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32938
      if ftype == TType.STOP:
-
 
32939
        break
-
 
32940
      if fid == 0:
-
 
32941
        if ftype == TType.STRUCT:
-
 
32942
          self.success = HsItem()
-
 
32943
          self.success.read(iprot)
-
 
32944
        else:
-
 
32945
          iprot.skip(ftype)
-
 
32946
      else:
-
 
32947
        iprot.skip(ftype)
-
 
32948
      iprot.readFieldEnd()
-
 
32949
    iprot.readStructEnd()
-
 
32950
 
-
 
32951
  def write(self, oprot):
-
 
32952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32954
      return
-
 
32955
    oprot.writeStructBegin('getHsItem_result')
-
 
32956
    if self.success is not None:
-
 
32957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
32958
      self.success.write(oprot)
-
 
32959
      oprot.writeFieldEnd()
-
 
32960
    oprot.writeFieldStop()
-
 
32961
    oprot.writeStructEnd()
-
 
32962
 
-
 
32963
  def validate(self):
-
 
32964
    return
-
 
32965
 
-
 
32966
 
-
 
32967
  def __repr__(self):
-
 
32968
    L = ['%s=%r' % (key, value)
-
 
32969
      for key, value in self.__dict__.iteritems()]
-
 
32970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32971
 
-
 
32972
  def __eq__(self, other):
-
 
32973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32974
 
-
 
32975
  def __ne__(self, other):
-
 
32976
    return not (self == other)
-
 
32977
 
-
 
32978
class updateHsItem_args:
-
 
32979
  """
-
 
32980
  Attributes:
-
 
32981
   - hsItem
-
 
32982
  """
-
 
32983
 
-
 
32984
  thrift_spec = (
-
 
32985
    None, # 0
-
 
32986
    (1, TType.STRUCT, 'hsItem', (HsItem, HsItem.thrift_spec), None, ), # 1
-
 
32987
  )
-
 
32988
 
-
 
32989
  def __init__(self, hsItem=None,):
-
 
32990
    self.hsItem = hsItem
-
 
32991
 
-
 
32992
  def read(self, iprot):
-
 
32993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32995
      return
-
 
32996
    iprot.readStructBegin()
-
 
32997
    while True:
-
 
32998
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32999
      if ftype == TType.STOP:
-
 
33000
        break
-
 
33001
      if fid == 1:
-
 
33002
        if ftype == TType.STRUCT:
-
 
33003
          self.hsItem = HsItem()
-
 
33004
          self.hsItem.read(iprot)
-
 
33005
        else:
-
 
33006
          iprot.skip(ftype)
-
 
33007
      else:
-
 
33008
        iprot.skip(ftype)
-
 
33009
      iprot.readFieldEnd()
-
 
33010
    iprot.readStructEnd()
-
 
33011
 
-
 
33012
  def write(self, oprot):
-
 
33013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33015
      return
-
 
33016
    oprot.writeStructBegin('updateHsItem_args')
-
 
33017
    if self.hsItem is not None:
-
 
33018
      oprot.writeFieldBegin('hsItem', TType.STRUCT, 1)
-
 
33019
      self.hsItem.write(oprot)
-
 
33020
      oprot.writeFieldEnd()
-
 
33021
    oprot.writeFieldStop()
-
 
33022
    oprot.writeStructEnd()
-
 
33023
 
-
 
33024
  def validate(self):
-
 
33025
    return
-
 
33026
 
-
 
33027
 
-
 
33028
  def __repr__(self):
-
 
33029
    L = ['%s=%r' % (key, value)
-
 
33030
      for key, value in self.__dict__.iteritems()]
-
 
33031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33032
 
-
 
33033
  def __eq__(self, other):
-
 
33034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33035
 
-
 
33036
  def __ne__(self, other):
-
 
33037
    return not (self == other)
-
 
33038
 
-
 
33039
class updateHsItem_result:
-
 
33040
 
-
 
33041
  thrift_spec = (
-
 
33042
  )
-
 
33043
 
-
 
33044
  def read(self, iprot):
-
 
33045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33047
      return
-
 
33048
    iprot.readStructBegin()
-
 
33049
    while True:
-
 
33050
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33051
      if ftype == TType.STOP:
-
 
33052
        break
-
 
33053
      else:
-
 
33054
        iprot.skip(ftype)
-
 
33055
      iprot.readFieldEnd()
-
 
33056
    iprot.readStructEnd()
-
 
33057
 
-
 
33058
  def write(self, oprot):
-
 
33059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33061
      return
-
 
33062
    oprot.writeStructBegin('updateHsItem_result')
-
 
33063
    oprot.writeFieldStop()
-
 
33064
    oprot.writeStructEnd()
-
 
33065
 
-
 
33066
  def validate(self):
-
 
33067
    return
32591
 
33068
 
32592
 
33069
 
32593
  def __repr__(self):
33070
  def __repr__(self):
32594
    L = ['%s=%r' % (key, value)
33071
    L = ['%s=%r' % (key, value)
32595
      for key, value in self.__dict__.iteritems()]
33072
      for key, value in self.__dict__.iteritems()]