Subversion Repositories SmartDukaan

Rev

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

Rev 7888 Rev 9840
Line 2905... Line 2905...
2905
   - success
2905
   - success
2906
   - se
2906
   - se
2907
  """
2907
  """
2908
 
2908
 
2909
  thrift_spec = (
2909
  thrift_spec = (
2910
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2910
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemText, ItemText.thrift_spec)), None, ), # 0
2911
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2911
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2912
  )
2912
  )
2913
 
2913
 
2914
  def __init__(self, success=None, se=None,):
2914
  def __init__(self, success=None, se=None,):
2915
    self.success = success
2915
    self.success = success
Line 2927... Line 2927...
2927
      if fid == 0:
2927
      if fid == 0:
2928
        if ftype == TType.LIST:
2928
        if ftype == TType.LIST:
2929
          self.success = []
2929
          self.success = []
2930
          (_etype31, _size28) = iprot.readListBegin()
2930
          (_etype31, _size28) = iprot.readListBegin()
2931
          for _i32 in xrange(_size28):
2931
          for _i32 in xrange(_size28):
2932
            _elem33 = iprot.readI64();
2932
            _elem33 = ItemText()
-
 
2933
            _elem33.read(iprot)
2933
            self.success.append(_elem33)
2934
            self.success.append(_elem33)
2934
          iprot.readListEnd()
2935
          iprot.readListEnd()
2935
        else:
2936
        else:
2936
          iprot.skip(ftype)
2937
          iprot.skip(ftype)
2937
      elif fid == 1:
2938
      elif fid == 1:
Line 2950... Line 2951...
2950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2951
      return
2952
      return
2952
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2953
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2953
    if self.success is not None:
2954
    if self.success is not None:
2954
      oprot.writeFieldBegin('success', TType.LIST, 0)
2955
      oprot.writeFieldBegin('success', TType.LIST, 0)
2955
      oprot.writeListBegin(TType.I64, len(self.success))
2956
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2956
      for iter34 in self.success:
2957
      for iter34 in self.success:
2957
        oprot.writeI64(iter34)
2958
        iter34.write(oprot)
2958
      oprot.writeListEnd()
2959
      oprot.writeListEnd()
2959
      oprot.writeFieldEnd()
2960
      oprot.writeFieldEnd()
2960
    if self.se is not None:
2961
    if self.se is not None:
2961
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2962
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2962
      self.se.write(oprot)
2963
      self.se.write(oprot)