Subversion Repositories SmartDukaan

Rev

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

Rev 11679 Rev 11890
Line 654... Line 654...
654
    Parameters:
654
    Parameters:
655
     - userId
655
     - userId
656
    """
656
    """
657
    pass
657
    pass
658
 
658
 
-
 
659
  def addPrivateDealUser(self, userId):
-
 
660
    """
-
 
661
    Parameters:
-
 
662
     - userId
-
 
663
    """
-
 
664
    pass
-
 
665
 
-
 
666
  def changePrivateDealUserStatus(self, userId, isActive):
-
 
667
    """
-
 
668
    Parameters:
-
 
669
     - userId
-
 
670
     - isActive
-
 
671
    """
-
 
672
    pass
-
 
673
 
-
 
674
  def getPrivateDealUser(self, userId):
-
 
675
    """
-
 
676
    Parameters:
-
 
677
     - userId
-
 
678
    """
-
 
679
    pass
-
 
680
 
659
 
681
 
660
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
682
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
661
  """
683
  """
662
  service
684
  service
663
  """
685
  """
Line 3143... Line 3165...
3143
    self._iprot.readMessageEnd()
3165
    self._iprot.readMessageEnd()
3144
    if result.success is not None:
3166
    if result.success is not None:
3145
      return result.success
3167
      return result.success
3146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isPrivateDealUser failed: unknown result");
3168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isPrivateDealUser failed: unknown result");
3147
 
3169
 
-
 
3170
  def addPrivateDealUser(self, userId):
-
 
3171
    """
-
 
3172
    Parameters:
-
 
3173
     - userId
-
 
3174
    """
-
 
3175
    self.send_addPrivateDealUser(userId)
-
 
3176
    return self.recv_addPrivateDealUser()
-
 
3177
 
-
 
3178
  def send_addPrivateDealUser(self, userId):
-
 
3179
    self._oprot.writeMessageBegin('addPrivateDealUser', TMessageType.CALL, self._seqid)
-
 
3180
    args = addPrivateDealUser_args()
-
 
3181
    args.userId = userId
-
 
3182
    args.write(self._oprot)
-
 
3183
    self._oprot.writeMessageEnd()
-
 
3184
    self._oprot.trans.flush()
-
 
3185
 
-
 
3186
  def recv_addPrivateDealUser(self, ):
-
 
3187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3188
    if mtype == TMessageType.EXCEPTION:
-
 
3189
      x = TApplicationException()
-
 
3190
      x.read(self._iprot)
-
 
3191
      self._iprot.readMessageEnd()
-
 
3192
      raise x
-
 
3193
    result = addPrivateDealUser_result()
-
 
3194
    result.read(self._iprot)
-
 
3195
    self._iprot.readMessageEnd()
-
 
3196
    if result.success is not None:
-
 
3197
      return result.success
-
 
3198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addPrivateDealUser failed: unknown result");
-
 
3199
 
-
 
3200
  def changePrivateDealUserStatus(self, userId, isActive):
-
 
3201
    """
-
 
3202
    Parameters:
-
 
3203
     - userId
-
 
3204
     - isActive
-
 
3205
    """
-
 
3206
    self.send_changePrivateDealUserStatus(userId, isActive)
-
 
3207
    return self.recv_changePrivateDealUserStatus()
-
 
3208
 
-
 
3209
  def send_changePrivateDealUserStatus(self, userId, isActive):
-
 
3210
    self._oprot.writeMessageBegin('changePrivateDealUserStatus', TMessageType.CALL, self._seqid)
-
 
3211
    args = changePrivateDealUserStatus_args()
-
 
3212
    args.userId = userId
-
 
3213
    args.isActive = isActive
-
 
3214
    args.write(self._oprot)
-
 
3215
    self._oprot.writeMessageEnd()
-
 
3216
    self._oprot.trans.flush()
-
 
3217
 
-
 
3218
  def recv_changePrivateDealUserStatus(self, ):
-
 
3219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3220
    if mtype == TMessageType.EXCEPTION:
-
 
3221
      x = TApplicationException()
-
 
3222
      x.read(self._iprot)
-
 
3223
      self._iprot.readMessageEnd()
-
 
3224
      raise x
-
 
3225
    result = changePrivateDealUserStatus_result()
-
 
3226
    result.read(self._iprot)
-
 
3227
    self._iprot.readMessageEnd()
-
 
3228
    if result.success is not None:
-
 
3229
      return result.success
-
 
3230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changePrivateDealUserStatus failed: unknown result");
-
 
3231
 
-
 
3232
  def getPrivateDealUser(self, userId):
-
 
3233
    """
-
 
3234
    Parameters:
-
 
3235
     - userId
-
 
3236
    """
-
 
3237
    self.send_getPrivateDealUser(userId)
-
 
3238
    return self.recv_getPrivateDealUser()
-
 
3239
 
-
 
3240
  def send_getPrivateDealUser(self, userId):
-
 
3241
    self._oprot.writeMessageBegin('getPrivateDealUser', TMessageType.CALL, self._seqid)
-
 
3242
    args = getPrivateDealUser_args()
-
 
3243
    args.userId = userId
-
 
3244
    args.write(self._oprot)
-
 
3245
    self._oprot.writeMessageEnd()
-
 
3246
    self._oprot.trans.flush()
-
 
3247
 
-
 
3248
  def recv_getPrivateDealUser(self, ):
-
 
3249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3250
    if mtype == TMessageType.EXCEPTION:
-
 
3251
      x = TApplicationException()
-
 
3252
      x.read(self._iprot)
-
 
3253
      self._iprot.readMessageEnd()
-
 
3254
      raise x
-
 
3255
    result = getPrivateDealUser_result()
-
 
3256
    result.read(self._iprot)
-
 
3257
    self._iprot.readMessageEnd()
-
 
3258
    if result.success is not None:
-
 
3259
      return result.success
-
 
3260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealUser failed: unknown result");
-
 
3261
 
3148
 
3262
 
3149
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3263
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3150
  def __init__(self, handler):
3264
  def __init__(self, handler):
3151
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3265
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3152
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3266
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
Line 3221... Line 3335...
3221
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3335
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3222
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3336
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3223
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
3337
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
3224
    self._processMap["validateCartPlus"] = Processor.process_validateCartPlus
3338
    self._processMap["validateCartPlus"] = Processor.process_validateCartPlus
3225
    self._processMap["isPrivateDealUser"] = Processor.process_isPrivateDealUser
3339
    self._processMap["isPrivateDealUser"] = Processor.process_isPrivateDealUser
-
 
3340
    self._processMap["addPrivateDealUser"] = Processor.process_addPrivateDealUser
-
 
3341
    self._processMap["changePrivateDealUserStatus"] = Processor.process_changePrivateDealUserStatus
-
 
3342
    self._processMap["getPrivateDealUser"] = Processor.process_getPrivateDealUser
3226
 
3343
 
3227
  def process(self, iprot, oprot):
3344
  def process(self, iprot, oprot):
3228
    (name, type, seqid) = iprot.readMessageBegin()
3345
    (name, type, seqid) = iprot.readMessageBegin()
3229
    if name not in self._processMap:
3346
    if name not in self._processMap:
3230
      iprot.skip(TType.STRUCT)
3347
      iprot.skip(TType.STRUCT)
Line 4224... Line 4341...
4224
    oprot.writeMessageBegin("isPrivateDealUser", TMessageType.REPLY, seqid)
4341
    oprot.writeMessageBegin("isPrivateDealUser", TMessageType.REPLY, seqid)
4225
    result.write(oprot)
4342
    result.write(oprot)
4226
    oprot.writeMessageEnd()
4343
    oprot.writeMessageEnd()
4227
    oprot.trans.flush()
4344
    oprot.trans.flush()
4228
 
4345
 
-
 
4346
  def process_addPrivateDealUser(self, seqid, iprot, oprot):
-
 
4347
    args = addPrivateDealUser_args()
-
 
4348
    args.read(iprot)
-
 
4349
    iprot.readMessageEnd()
-
 
4350
    result = addPrivateDealUser_result()
-
 
4351
    result.success = self._handler.addPrivateDealUser(args.userId)
-
 
4352
    oprot.writeMessageBegin("addPrivateDealUser", TMessageType.REPLY, seqid)
-
 
4353
    result.write(oprot)
-
 
4354
    oprot.writeMessageEnd()
-
 
4355
    oprot.trans.flush()
-
 
4356
 
-
 
4357
  def process_changePrivateDealUserStatus(self, seqid, iprot, oprot):
-
 
4358
    args = changePrivateDealUserStatus_args()
-
 
4359
    args.read(iprot)
-
 
4360
    iprot.readMessageEnd()
-
 
4361
    result = changePrivateDealUserStatus_result()
-
 
4362
    result.success = self._handler.changePrivateDealUserStatus(args.userId, args.isActive)
-
 
4363
    oprot.writeMessageBegin("changePrivateDealUserStatus", TMessageType.REPLY, seqid)
-
 
4364
    result.write(oprot)
-
 
4365
    oprot.writeMessageEnd()
-
 
4366
    oprot.trans.flush()
-
 
4367
 
-
 
4368
  def process_getPrivateDealUser(self, seqid, iprot, oprot):
-
 
4369
    args = getPrivateDealUser_args()
-
 
4370
    args.read(iprot)
-
 
4371
    iprot.readMessageEnd()
-
 
4372
    result = getPrivateDealUser_result()
-
 
4373
    result.success = self._handler.getPrivateDealUser(args.userId)
-
 
4374
    oprot.writeMessageBegin("getPrivateDealUser", TMessageType.REPLY, seqid)
-
 
4375
    result.write(oprot)
-
 
4376
    oprot.writeMessageEnd()
-
 
4377
    oprot.trans.flush()
-
 
4378
 
4229
 
4379
 
4230
# HELPER FUNCTIONS AND STRUCTURES
4380
# HELPER FUNCTIONS AND STRUCTURES
4231
 
4381
 
4232
class createAnonymousUser_args:
4382
class createAnonymousUser_args:
4233
  """
4383
  """
Line 14512... Line 14662...
14512
      oprot.writeFieldEnd()
14662
      oprot.writeFieldEnd()
14513
    oprot.writeFieldStop()
14663
    oprot.writeFieldStop()
14514
    oprot.writeStructEnd()
14664
    oprot.writeStructEnd()
14515
 
14665
 
14516
  def validate(self):
14666
  def validate(self):
-
 
14667
    return
-
 
14668
 
-
 
14669
 
-
 
14670
  def __repr__(self):
-
 
14671
    L = ['%s=%r' % (key, value)
-
 
14672
      for key, value in self.__dict__.iteritems()]
-
 
14673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14674
 
-
 
14675
  def __eq__(self, other):
-
 
14676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14677
 
-
 
14678
  def __ne__(self, other):
-
 
14679
    return not (self == other)
-
 
14680
 
-
 
14681
class addPrivateDealUser_args:
-
 
14682
  """
-
 
14683
  Attributes:
-
 
14684
   - userId
-
 
14685
  """
-
 
14686
 
-
 
14687
  thrift_spec = (
-
 
14688
    None, # 0
-
 
14689
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
14690
  )
-
 
14691
 
-
 
14692
  def __init__(self, userId=None,):
-
 
14693
    self.userId = userId
-
 
14694
 
-
 
14695
  def read(self, iprot):
-
 
14696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14698
      return
-
 
14699
    iprot.readStructBegin()
-
 
14700
    while True:
-
 
14701
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14702
      if ftype == TType.STOP:
-
 
14703
        break
-
 
14704
      if fid == 1:
-
 
14705
        if ftype == TType.I64:
-
 
14706
          self.userId = iprot.readI64();
-
 
14707
        else:
-
 
14708
          iprot.skip(ftype)
-
 
14709
      else:
-
 
14710
        iprot.skip(ftype)
-
 
14711
      iprot.readFieldEnd()
-
 
14712
    iprot.readStructEnd()
-
 
14713
 
-
 
14714
  def write(self, oprot):
-
 
14715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14717
      return
-
 
14718
    oprot.writeStructBegin('addPrivateDealUser_args')
-
 
14719
    if self.userId is not None:
-
 
14720
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
14721
      oprot.writeI64(self.userId)
-
 
14722
      oprot.writeFieldEnd()
-
 
14723
    oprot.writeFieldStop()
-
 
14724
    oprot.writeStructEnd()
-
 
14725
 
-
 
14726
  def validate(self):
-
 
14727
    return
-
 
14728
 
-
 
14729
 
-
 
14730
  def __repr__(self):
-
 
14731
    L = ['%s=%r' % (key, value)
-
 
14732
      for key, value in self.__dict__.iteritems()]
-
 
14733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14734
 
-
 
14735
  def __eq__(self, other):
-
 
14736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14737
 
-
 
14738
  def __ne__(self, other):
-
 
14739
    return not (self == other)
-
 
14740
 
-
 
14741
class addPrivateDealUser_result:
-
 
14742
  """
-
 
14743
  Attributes:
-
 
14744
   - success
-
 
14745
  """
-
 
14746
 
-
 
14747
  thrift_spec = (
-
 
14748
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
14749
  )
-
 
14750
 
-
 
14751
  def __init__(self, success=None,):
-
 
14752
    self.success = success
-
 
14753
 
-
 
14754
  def read(self, iprot):
-
 
14755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14757
      return
-
 
14758
    iprot.readStructBegin()
-
 
14759
    while True:
-
 
14760
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14761
      if ftype == TType.STOP:
-
 
14762
        break
-
 
14763
      if fid == 0:
-
 
14764
        if ftype == TType.BOOL:
-
 
14765
          self.success = iprot.readBool();
-
 
14766
        else:
-
 
14767
          iprot.skip(ftype)
-
 
14768
      else:
-
 
14769
        iprot.skip(ftype)
-
 
14770
      iprot.readFieldEnd()
-
 
14771
    iprot.readStructEnd()
-
 
14772
 
-
 
14773
  def write(self, oprot):
-
 
14774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14776
      return
-
 
14777
    oprot.writeStructBegin('addPrivateDealUser_result')
-
 
14778
    if self.success is not None:
-
 
14779
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
14780
      oprot.writeBool(self.success)
-
 
14781
      oprot.writeFieldEnd()
-
 
14782
    oprot.writeFieldStop()
-
 
14783
    oprot.writeStructEnd()
-
 
14784
 
-
 
14785
  def validate(self):
-
 
14786
    return
-
 
14787
 
-
 
14788
 
-
 
14789
  def __repr__(self):
-
 
14790
    L = ['%s=%r' % (key, value)
-
 
14791
      for key, value in self.__dict__.iteritems()]
-
 
14792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14793
 
-
 
14794
  def __eq__(self, other):
-
 
14795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14796
 
-
 
14797
  def __ne__(self, other):
-
 
14798
    return not (self == other)
-
 
14799
 
-
 
14800
class changePrivateDealUserStatus_args:
-
 
14801
  """
-
 
14802
  Attributes:
-
 
14803
   - userId
-
 
14804
   - isActive
-
 
14805
  """
-
 
14806
 
-
 
14807
  thrift_spec = (
-
 
14808
    None, # 0
-
 
14809
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
14810
    (2, TType.BOOL, 'isActive', None, None, ), # 2
-
 
14811
  )
-
 
14812
 
-
 
14813
  def __init__(self, userId=None, isActive=None,):
-
 
14814
    self.userId = userId
-
 
14815
    self.isActive = isActive
-
 
14816
 
-
 
14817
  def read(self, iprot):
-
 
14818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14820
      return
-
 
14821
    iprot.readStructBegin()
-
 
14822
    while True:
-
 
14823
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14824
      if ftype == TType.STOP:
-
 
14825
        break
-
 
14826
      if fid == 1:
-
 
14827
        if ftype == TType.I64:
-
 
14828
          self.userId = iprot.readI64();
-
 
14829
        else:
-
 
14830
          iprot.skip(ftype)
-
 
14831
      elif fid == 2:
-
 
14832
        if ftype == TType.BOOL:
-
 
14833
          self.isActive = iprot.readBool();
-
 
14834
        else:
-
 
14835
          iprot.skip(ftype)
-
 
14836
      else:
-
 
14837
        iprot.skip(ftype)
-
 
14838
      iprot.readFieldEnd()
-
 
14839
    iprot.readStructEnd()
-
 
14840
 
-
 
14841
  def write(self, oprot):
-
 
14842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14844
      return
-
 
14845
    oprot.writeStructBegin('changePrivateDealUserStatus_args')
-
 
14846
    if self.userId is not None:
-
 
14847
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
14848
      oprot.writeI64(self.userId)
-
 
14849
      oprot.writeFieldEnd()
-
 
14850
    if self.isActive is not None:
-
 
14851
      oprot.writeFieldBegin('isActive', TType.BOOL, 2)
-
 
14852
      oprot.writeBool(self.isActive)
-
 
14853
      oprot.writeFieldEnd()
-
 
14854
    oprot.writeFieldStop()
-
 
14855
    oprot.writeStructEnd()
-
 
14856
 
-
 
14857
  def validate(self):
-
 
14858
    return
-
 
14859
 
-
 
14860
 
-
 
14861
  def __repr__(self):
-
 
14862
    L = ['%s=%r' % (key, value)
-
 
14863
      for key, value in self.__dict__.iteritems()]
-
 
14864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14865
 
-
 
14866
  def __eq__(self, other):
-
 
14867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14868
 
-
 
14869
  def __ne__(self, other):
-
 
14870
    return not (self == other)
-
 
14871
 
-
 
14872
class changePrivateDealUserStatus_result:
-
 
14873
  """
-
 
14874
  Attributes:
-
 
14875
   - success
-
 
14876
  """
-
 
14877
 
-
 
14878
  thrift_spec = (
-
 
14879
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
14880
  )
-
 
14881
 
-
 
14882
  def __init__(self, success=None,):
-
 
14883
    self.success = success
-
 
14884
 
-
 
14885
  def read(self, iprot):
-
 
14886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14888
      return
-
 
14889
    iprot.readStructBegin()
-
 
14890
    while True:
-
 
14891
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14892
      if ftype == TType.STOP:
-
 
14893
        break
-
 
14894
      if fid == 0:
-
 
14895
        if ftype == TType.BOOL:
-
 
14896
          self.success = iprot.readBool();
-
 
14897
        else:
-
 
14898
          iprot.skip(ftype)
-
 
14899
      else:
-
 
14900
        iprot.skip(ftype)
-
 
14901
      iprot.readFieldEnd()
-
 
14902
    iprot.readStructEnd()
-
 
14903
 
-
 
14904
  def write(self, oprot):
-
 
14905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14907
      return
-
 
14908
    oprot.writeStructBegin('changePrivateDealUserStatus_result')
-
 
14909
    if self.success is not None:
-
 
14910
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
14911
      oprot.writeBool(self.success)
-
 
14912
      oprot.writeFieldEnd()
-
 
14913
    oprot.writeFieldStop()
-
 
14914
    oprot.writeStructEnd()
-
 
14915
 
-
 
14916
  def validate(self):
-
 
14917
    return
-
 
14918
 
-
 
14919
 
-
 
14920
  def __repr__(self):
-
 
14921
    L = ['%s=%r' % (key, value)
-
 
14922
      for key, value in self.__dict__.iteritems()]
-
 
14923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14924
 
-
 
14925
  def __eq__(self, other):
-
 
14926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14927
 
-
 
14928
  def __ne__(self, other):
-
 
14929
    return not (self == other)
-
 
14930
 
-
 
14931
class getPrivateDealUser_args:
-
 
14932
  """
-
 
14933
  Attributes:
-
 
14934
   - userId
-
 
14935
  """
-
 
14936
 
-
 
14937
  thrift_spec = (
-
 
14938
    None, # 0
-
 
14939
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
14940
  )
-
 
14941
 
-
 
14942
  def __init__(self, userId=None,):
-
 
14943
    self.userId = userId
-
 
14944
 
-
 
14945
  def read(self, iprot):
-
 
14946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14948
      return
-
 
14949
    iprot.readStructBegin()
-
 
14950
    while True:
-
 
14951
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14952
      if ftype == TType.STOP:
-
 
14953
        break
-
 
14954
      if fid == 1:
-
 
14955
        if ftype == TType.I64:
-
 
14956
          self.userId = iprot.readI64();
-
 
14957
        else:
-
 
14958
          iprot.skip(ftype)
-
 
14959
      else:
-
 
14960
        iprot.skip(ftype)
-
 
14961
      iprot.readFieldEnd()
-
 
14962
    iprot.readStructEnd()
-
 
14963
 
-
 
14964
  def write(self, oprot):
-
 
14965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14967
      return
-
 
14968
    oprot.writeStructBegin('getPrivateDealUser_args')
-
 
14969
    if self.userId is not None:
-
 
14970
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
14971
      oprot.writeI64(self.userId)
-
 
14972
      oprot.writeFieldEnd()
-
 
14973
    oprot.writeFieldStop()
-
 
14974
    oprot.writeStructEnd()
-
 
14975
 
-
 
14976
  def validate(self):
-
 
14977
    return
-
 
14978
 
-
 
14979
 
-
 
14980
  def __repr__(self):
-
 
14981
    L = ['%s=%r' % (key, value)
-
 
14982
      for key, value in self.__dict__.iteritems()]
-
 
14983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14984
 
-
 
14985
  def __eq__(self, other):
-
 
14986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14987
 
-
 
14988
  def __ne__(self, other):
-
 
14989
    return not (self == other)
-
 
14990
 
-
 
14991
class getPrivateDealUser_result:
-
 
14992
  """
-
 
14993
  Attributes:
-
 
14994
   - success
-
 
14995
  """
-
 
14996
 
-
 
14997
  thrift_spec = (
-
 
14998
    (0, TType.STRUCT, 'success', (PrivateDealUser, PrivateDealUser.thrift_spec), None, ), # 0
-
 
14999
  )
-
 
15000
 
-
 
15001
  def __init__(self, success=None,):
-
 
15002
    self.success = success
-
 
15003
 
-
 
15004
  def read(self, iprot):
-
 
15005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15007
      return
-
 
15008
    iprot.readStructBegin()
-
 
15009
    while True:
-
 
15010
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15011
      if ftype == TType.STOP:
-
 
15012
        break
-
 
15013
      if fid == 0:
-
 
15014
        if ftype == TType.STRUCT:
-
 
15015
          self.success = PrivateDealUser()
-
 
15016
          self.success.read(iprot)
-
 
15017
        else:
-
 
15018
          iprot.skip(ftype)
-
 
15019
      else:
-
 
15020
        iprot.skip(ftype)
-
 
15021
      iprot.readFieldEnd()
-
 
15022
    iprot.readStructEnd()
-
 
15023
 
-
 
15024
  def write(self, oprot):
-
 
15025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15027
      return
-
 
15028
    oprot.writeStructBegin('getPrivateDealUser_result')
-
 
15029
    if self.success is not None:
-
 
15030
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
15031
      self.success.write(oprot)
-
 
15032
      oprot.writeFieldEnd()
-
 
15033
    oprot.writeFieldStop()
-
 
15034
    oprot.writeStructEnd()
-
 
15035
 
-
 
15036
  def validate(self):
14517
    return
15037
    return
14518
 
15038
 
14519
 
15039
 
14520
  def __repr__(self):
15040
  def __repr__(self):
14521
    L = ['%s=%r' % (key, value)
15041
    L = ['%s=%r' % (key, value)