Subversion Repositories SmartDukaan

Rev

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

Rev 11015 Rev 11531
Line 1144... Line 1144...
1144
     - limit
1144
     - limit
1145
     - itemId
1145
     - itemId
1146
    """
1146
    """
1147
    pass
1147
    pass
1148
 
1148
 
-
 
1149
  def getPrivateDealDetails(self, item_id):
-
 
1150
    """
-
 
1151
    Parameters:
-
 
1152
     - item_id
-
 
1153
    """
-
 
1154
    pass
-
 
1155
 
-
 
1156
  def getPrivateDealItems(self, offset, limit):
-
 
1157
    """
-
 
1158
    Parameters:
-
 
1159
     - offset
-
 
1160
     - limit
-
 
1161
    """
-
 
1162
    pass
-
 
1163
 
-
 
1164
  def addOrUpdatePrivateDeal(self, privateDeal):
-
 
1165
    """
-
 
1166
    Parameters:
-
 
1167
     - privateDeal
-
 
1168
    """
-
 
1169
    pass
-
 
1170
 
1149
 
1171
 
1150
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1172
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1151
  def __init__(self, iprot, oprot=None):
1173
  def __init__(self, iprot, oprot=None):
1152
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1174
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1153
 
1175
 
Line 6025... Line 6047...
6025
    self._iprot.readMessageEnd()
6047
    self._iprot.readMessageEnd()
6026
    if result.success is not None:
6048
    if result.success is not None:
6027
      return result.success
6049
      return result.success
6028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6029
 
6051
 
-
 
6052
  def getPrivateDealDetails(self, item_id):
-
 
6053
    """
-
 
6054
    Parameters:
-
 
6055
     - item_id
-
 
6056
    """
-
 
6057
    self.send_getPrivateDealDetails(item_id)
-
 
6058
    return self.recv_getPrivateDealDetails()
-
 
6059
 
-
 
6060
  def send_getPrivateDealDetails(self, item_id):
-
 
6061
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
-
 
6062
    args = getPrivateDealDetails_args()
-
 
6063
    args.item_id = item_id
-
 
6064
    args.write(self._oprot)
-
 
6065
    self._oprot.writeMessageEnd()
-
 
6066
    self._oprot.trans.flush()
-
 
6067
 
-
 
6068
  def recv_getPrivateDealDetails(self, ):
-
 
6069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6070
    if mtype == TMessageType.EXCEPTION:
-
 
6071
      x = TApplicationException()
-
 
6072
      x.read(self._iprot)
-
 
6073
      self._iprot.readMessageEnd()
-
 
6074
      raise x
-
 
6075
    result = getPrivateDealDetails_result()
-
 
6076
    result.read(self._iprot)
-
 
6077
    self._iprot.readMessageEnd()
-
 
6078
    if result.success is not None:
-
 
6079
      return result.success
-
 
6080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
-
 
6081
 
-
 
6082
  def getPrivateDealItems(self, offset, limit):
-
 
6083
    """
-
 
6084
    Parameters:
-
 
6085
     - offset
-
 
6086
     - limit
-
 
6087
    """
-
 
6088
    self.send_getPrivateDealItems(offset, limit)
-
 
6089
    return self.recv_getPrivateDealItems()
-
 
6090
 
-
 
6091
  def send_getPrivateDealItems(self, offset, limit):
-
 
6092
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
-
 
6093
    args = getPrivateDealItems_args()
-
 
6094
    args.offset = offset
-
 
6095
    args.limit = limit
-
 
6096
    args.write(self._oprot)
-
 
6097
    self._oprot.writeMessageEnd()
-
 
6098
    self._oprot.trans.flush()
-
 
6099
 
-
 
6100
  def recv_getPrivateDealItems(self, ):
-
 
6101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6102
    if mtype == TMessageType.EXCEPTION:
-
 
6103
      x = TApplicationException()
-
 
6104
      x.read(self._iprot)
-
 
6105
      self._iprot.readMessageEnd()
-
 
6106
      raise x
-
 
6107
    result = getPrivateDealItems_result()
-
 
6108
    result.read(self._iprot)
-
 
6109
    self._iprot.readMessageEnd()
-
 
6110
    if result.success is not None:
-
 
6111
      return result.success
-
 
6112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
-
 
6113
 
-
 
6114
  def addOrUpdatePrivateDeal(self, privateDeal):
-
 
6115
    """
-
 
6116
    Parameters:
-
 
6117
     - privateDeal
-
 
6118
    """
-
 
6119
    self.send_addOrUpdatePrivateDeal(privateDeal)
-
 
6120
    return self.recv_addOrUpdatePrivateDeal()
-
 
6121
 
-
 
6122
  def send_addOrUpdatePrivateDeal(self, privateDeal):
-
 
6123
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
-
 
6124
    args = addOrUpdatePrivateDeal_args()
-
 
6125
    args.privateDeal = privateDeal
-
 
6126
    args.write(self._oprot)
-
 
6127
    self._oprot.writeMessageEnd()
-
 
6128
    self._oprot.trans.flush()
-
 
6129
 
-
 
6130
  def recv_addOrUpdatePrivateDeal(self, ):
-
 
6131
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6132
    if mtype == TMessageType.EXCEPTION:
-
 
6133
      x = TApplicationException()
-
 
6134
      x.read(self._iprot)
-
 
6135
      self._iprot.readMessageEnd()
-
 
6136
      raise x
-
 
6137
    result = addOrUpdatePrivateDeal_result()
-
 
6138
    result.read(self._iprot)
-
 
6139
    self._iprot.readMessageEnd()
-
 
6140
    if result.success is not None:
-
 
6141
      return result.success
-
 
6142
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
-
 
6143
 
6030
 
6144
 
6031
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6145
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6032
  def __init__(self, handler):
6146
  def __init__(self, handler):
6033
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6147
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6034
    self._processMap["addItem"] = Processor.process_addItem
6148
    self._processMap["addItem"] = Processor.process_addItem
Line 6188... Line 6302...
6188
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
6302
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
6189
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
6303
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
6190
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
6304
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
6191
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6305
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6192
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
6306
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
-
 
6307
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
-
 
6308
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
-
 
6309
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
6193
 
6310
 
6194
  def process(self, iprot, oprot):
6311
  def process(self, iprot, oprot):
6195
    (name, type, seqid) = iprot.readMessageBegin()
6312
    (name, type, seqid) = iprot.readMessageBegin()
6196
    if name not in self._processMap:
6313
    if name not in self._processMap:
6197
      iprot.skip(TType.STRUCT)
6314
      iprot.skip(TType.STRUCT)
Line 8082... Line 8199...
8082
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8199
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8083
    result.write(oprot)
8200
    result.write(oprot)
8084
    oprot.writeMessageEnd()
8201
    oprot.writeMessageEnd()
8085
    oprot.trans.flush()
8202
    oprot.trans.flush()
8086
 
8203
 
-
 
8204
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
-
 
8205
    args = getPrivateDealDetails_args()
-
 
8206
    args.read(iprot)
-
 
8207
    iprot.readMessageEnd()
-
 
8208
    result = getPrivateDealDetails_result()
-
 
8209
    result.success = self._handler.getPrivateDealDetails(args.item_id)
-
 
8210
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
-
 
8211
    result.write(oprot)
-
 
8212
    oprot.writeMessageEnd()
-
 
8213
    oprot.trans.flush()
-
 
8214
 
-
 
8215
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
-
 
8216
    args = getPrivateDealItems_args()
-
 
8217
    args.read(iprot)
-
 
8218
    iprot.readMessageEnd()
-
 
8219
    result = getPrivateDealItems_result()
-
 
8220
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
-
 
8221
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
-
 
8222
    result.write(oprot)
-
 
8223
    oprot.writeMessageEnd()
-
 
8224
    oprot.trans.flush()
-
 
8225
 
-
 
8226
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
-
 
8227
    args = addOrUpdatePrivateDeal_args()
-
 
8228
    args.read(iprot)
-
 
8229
    iprot.readMessageEnd()
-
 
8230
    result = addOrUpdatePrivateDeal_result()
-
 
8231
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
-
 
8232
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
-
 
8233
    result.write(oprot)
-
 
8234
    oprot.writeMessageEnd()
-
 
8235
    oprot.trans.flush()
-
 
8236
 
8087
 
8237
 
8088
# HELPER FUNCTIONS AND STRUCTURES
8238
# HELPER FUNCTIONS AND STRUCTURES
8089
 
8239
 
8090
class addItem_args:
8240
class addItem_args:
8091
  """
8241
  """
Line 27539... Line 27689...
27539
  """
27689
  """
27540
  Attributes:
27690
  Attributes:
27541
   - sku
27691
   - sku
27542
  """
27692
  """
27543
 
27693
 
27544
  thrift_spec = (
27694
  thrift_spec = None
27545
    None, # 0
-
 
27546
    (1, TType.STRING, 'sku', None, None, ), # 1
-
 
27547
  )
-
 
27548
 
-
 
27549
  def __init__(self, sku=None,):
27695
  def __init__(self, sku=None,):
27550
    self.sku = sku
27696
    self.sku = sku
27551
 
27697
 
27552
  def read(self, iprot):
27698
  def read(self, iprot):
27553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
Line 27556... Line 27702...
27556
    iprot.readStructBegin()
27702
    iprot.readStructBegin()
27557
    while True:
27703
    while True:
27558
      (fname, ftype, fid) = iprot.readFieldBegin()
27704
      (fname, ftype, fid) = iprot.readFieldBegin()
27559
      if ftype == TType.STOP:
27705
      if ftype == TType.STOP:
27560
        break
27706
        break
27561
      if fid == 1:
27707
      if fid == -1:
27562
        if ftype == TType.STRING:
27708
        if ftype == TType.STRING:
27563
          self.sku = iprot.readString();
27709
          self.sku = iprot.readString();
27564
        else:
27710
        else:
27565
          iprot.skip(ftype)
27711
          iprot.skip(ftype)
27566
      else:
27712
      else:
Line 27572... Line 27718...
27572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27574
      return
27720
      return
27575
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
27721
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
27576
    if self.sku is not None:
27722
    if self.sku is not None:
27577
      oprot.writeFieldBegin('sku', TType.STRING, 1)
27723
      oprot.writeFieldBegin('sku', TType.STRING, -1)
27578
      oprot.writeString(self.sku)
27724
      oprot.writeString(self.sku)
27579
      oprot.writeFieldEnd()
27725
      oprot.writeFieldEnd()
27580
    oprot.writeFieldStop()
27726
    oprot.writeFieldStop()
27581
    oprot.writeStructEnd()
27727
    oprot.writeStructEnd()
27582
 
27728
 
Line 28330... Line 28476...
28330
      oprot.writeFieldEnd()
28476
      oprot.writeFieldEnd()
28331
    oprot.writeFieldStop()
28477
    oprot.writeFieldStop()
28332
    oprot.writeStructEnd()
28478
    oprot.writeStructEnd()
28333
 
28479
 
28334
  def validate(self):
28480
  def validate(self):
-
 
28481
    return
-
 
28482
 
-
 
28483
 
-
 
28484
  def __repr__(self):
-
 
28485
    L = ['%s=%r' % (key, value)
-
 
28486
      for key, value in self.__dict__.iteritems()]
-
 
28487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28488
 
-
 
28489
  def __eq__(self, other):
-
 
28490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28491
 
-
 
28492
  def __ne__(self, other):
-
 
28493
    return not (self == other)
-
 
28494
 
-
 
28495
class getPrivateDealDetails_args:
-
 
28496
  """
-
 
28497
  Attributes:
-
 
28498
   - item_id
-
 
28499
  """
-
 
28500
 
-
 
28501
  thrift_spec = (
-
 
28502
    None, # 0
-
 
28503
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
28504
  )
-
 
28505
 
-
 
28506
  def __init__(self, item_id=None,):
-
 
28507
    self.item_id = item_id
-
 
28508
 
-
 
28509
  def read(self, iprot):
-
 
28510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28512
      return
-
 
28513
    iprot.readStructBegin()
-
 
28514
    while True:
-
 
28515
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28516
      if ftype == TType.STOP:
-
 
28517
        break
-
 
28518
      if fid == 1:
-
 
28519
        if ftype == TType.I64:
-
 
28520
          self.item_id = iprot.readI64();
-
 
28521
        else:
-
 
28522
          iprot.skip(ftype)
-
 
28523
      else:
-
 
28524
        iprot.skip(ftype)
-
 
28525
      iprot.readFieldEnd()
-
 
28526
    iprot.readStructEnd()
-
 
28527
 
-
 
28528
  def write(self, oprot):
-
 
28529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28531
      return
-
 
28532
    oprot.writeStructBegin('getPrivateDealDetails_args')
-
 
28533
    if self.item_id is not None:
-
 
28534
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
28535
      oprot.writeI64(self.item_id)
-
 
28536
      oprot.writeFieldEnd()
-
 
28537
    oprot.writeFieldStop()
-
 
28538
    oprot.writeStructEnd()
-
 
28539
 
-
 
28540
  def validate(self):
-
 
28541
    return
-
 
28542
 
-
 
28543
 
-
 
28544
  def __repr__(self):
-
 
28545
    L = ['%s=%r' % (key, value)
-
 
28546
      for key, value in self.__dict__.iteritems()]
-
 
28547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28548
 
-
 
28549
  def __eq__(self, other):
-
 
28550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28551
 
-
 
28552
  def __ne__(self, other):
-
 
28553
    return not (self == other)
-
 
28554
 
-
 
28555
class getPrivateDealDetails_result:
-
 
28556
  """
-
 
28557
  Attributes:
-
 
28558
   - success
-
 
28559
  """
-
 
28560
 
-
 
28561
  thrift_spec = (
-
 
28562
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
-
 
28563
  )
-
 
28564
 
-
 
28565
  def __init__(self, success=None,):
-
 
28566
    self.success = success
-
 
28567
 
-
 
28568
  def read(self, iprot):
-
 
28569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28571
      return
-
 
28572
    iprot.readStructBegin()
-
 
28573
    while True:
-
 
28574
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28575
      if ftype == TType.STOP:
-
 
28576
        break
-
 
28577
      if fid == 0:
-
 
28578
        if ftype == TType.STRUCT:
-
 
28579
          self.success = PrivateDeal()
-
 
28580
          self.success.read(iprot)
-
 
28581
        else:
-
 
28582
          iprot.skip(ftype)
-
 
28583
      else:
-
 
28584
        iprot.skip(ftype)
-
 
28585
      iprot.readFieldEnd()
-
 
28586
    iprot.readStructEnd()
-
 
28587
 
-
 
28588
  def write(self, oprot):
-
 
28589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28591
      return
-
 
28592
    oprot.writeStructBegin('getPrivateDealDetails_result')
-
 
28593
    if self.success is not None:
-
 
28594
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
28595
      self.success.write(oprot)
-
 
28596
      oprot.writeFieldEnd()
-
 
28597
    oprot.writeFieldStop()
-
 
28598
    oprot.writeStructEnd()
-
 
28599
 
-
 
28600
  def validate(self):
-
 
28601
    return
-
 
28602
 
-
 
28603
 
-
 
28604
  def __repr__(self):
-
 
28605
    L = ['%s=%r' % (key, value)
-
 
28606
      for key, value in self.__dict__.iteritems()]
-
 
28607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28608
 
-
 
28609
  def __eq__(self, other):
-
 
28610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28611
 
-
 
28612
  def __ne__(self, other):
-
 
28613
    return not (self == other)
-
 
28614
 
-
 
28615
class getPrivateDealItems_args:
-
 
28616
  """
-
 
28617
  Attributes:
-
 
28618
   - offset
-
 
28619
   - limit
-
 
28620
  """
-
 
28621
 
-
 
28622
  thrift_spec = (
-
 
28623
    None, # 0
-
 
28624
    (1, TType.I64, 'offset', None, None, ), # 1
-
 
28625
    (2, TType.I64, 'limit', None, None, ), # 2
-
 
28626
  )
-
 
28627
 
-
 
28628
  def __init__(self, offset=None, limit=None,):
-
 
28629
    self.offset = offset
-
 
28630
    self.limit = limit
-
 
28631
 
-
 
28632
  def read(self, iprot):
-
 
28633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28635
      return
-
 
28636
    iprot.readStructBegin()
-
 
28637
    while True:
-
 
28638
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28639
      if ftype == TType.STOP:
-
 
28640
        break
-
 
28641
      if fid == 1:
-
 
28642
        if ftype == TType.I64:
-
 
28643
          self.offset = iprot.readI64();
-
 
28644
        else:
-
 
28645
          iprot.skip(ftype)
-
 
28646
      elif fid == 2:
-
 
28647
        if ftype == TType.I64:
-
 
28648
          self.limit = iprot.readI64();
-
 
28649
        else:
-
 
28650
          iprot.skip(ftype)
-
 
28651
      else:
-
 
28652
        iprot.skip(ftype)
-
 
28653
      iprot.readFieldEnd()
-
 
28654
    iprot.readStructEnd()
-
 
28655
 
-
 
28656
  def write(self, oprot):
-
 
28657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28659
      return
-
 
28660
    oprot.writeStructBegin('getPrivateDealItems_args')
-
 
28661
    if self.offset is not None:
-
 
28662
      oprot.writeFieldBegin('offset', TType.I64, 1)
-
 
28663
      oprot.writeI64(self.offset)
-
 
28664
      oprot.writeFieldEnd()
-
 
28665
    if self.limit is not None:
-
 
28666
      oprot.writeFieldBegin('limit', TType.I64, 2)
-
 
28667
      oprot.writeI64(self.limit)
-
 
28668
      oprot.writeFieldEnd()
-
 
28669
    oprot.writeFieldStop()
-
 
28670
    oprot.writeStructEnd()
-
 
28671
 
-
 
28672
  def validate(self):
-
 
28673
    return
-
 
28674
 
-
 
28675
 
-
 
28676
  def __repr__(self):
-
 
28677
    L = ['%s=%r' % (key, value)
-
 
28678
      for key, value in self.__dict__.iteritems()]
-
 
28679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28680
 
-
 
28681
  def __eq__(self, other):
-
 
28682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28683
 
-
 
28684
  def __ne__(self, other):
-
 
28685
    return not (self == other)
-
 
28686
 
-
 
28687
class getPrivateDealItems_result:
-
 
28688
  """
-
 
28689
  Attributes:
-
 
28690
   - success
-
 
28691
  """
-
 
28692
 
-
 
28693
  thrift_spec = (
-
 
28694
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
-
 
28695
  )
-
 
28696
 
-
 
28697
  def __init__(self, success=None,):
-
 
28698
    self.success = success
-
 
28699
 
-
 
28700
  def read(self, iprot):
-
 
28701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28703
      return
-
 
28704
    iprot.readStructBegin()
-
 
28705
    while True:
-
 
28706
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28707
      if ftype == TType.STOP:
-
 
28708
        break
-
 
28709
      if fid == 0:
-
 
28710
        if ftype == TType.LIST:
-
 
28711
          self.success = []
-
 
28712
          (_etype651, _size648) = iprot.readListBegin()
-
 
28713
          for _i652 in xrange(_size648):
-
 
28714
            _elem653 = Item()
-
 
28715
            _elem653.read(iprot)
-
 
28716
            self.success.append(_elem653)
-
 
28717
          iprot.readListEnd()
-
 
28718
        else:
-
 
28719
          iprot.skip(ftype)
-
 
28720
      else:
-
 
28721
        iprot.skip(ftype)
-
 
28722
      iprot.readFieldEnd()
-
 
28723
    iprot.readStructEnd()
-
 
28724
 
-
 
28725
  def write(self, oprot):
-
 
28726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28728
      return
-
 
28729
    oprot.writeStructBegin('getPrivateDealItems_result')
-
 
28730
    if self.success is not None:
-
 
28731
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
28732
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
28733
      for iter654 in self.success:
-
 
28734
        iter654.write(oprot)
-
 
28735
      oprot.writeListEnd()
-
 
28736
      oprot.writeFieldEnd()
-
 
28737
    oprot.writeFieldStop()
-
 
28738
    oprot.writeStructEnd()
-
 
28739
 
-
 
28740
  def validate(self):
-
 
28741
    return
-
 
28742
 
-
 
28743
 
-
 
28744
  def __repr__(self):
-
 
28745
    L = ['%s=%r' % (key, value)
-
 
28746
      for key, value in self.__dict__.iteritems()]
-
 
28747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28748
 
-
 
28749
  def __eq__(self, other):
-
 
28750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28751
 
-
 
28752
  def __ne__(self, other):
-
 
28753
    return not (self == other)
-
 
28754
 
-
 
28755
class addOrUpdatePrivateDeal_args:
-
 
28756
  """
-
 
28757
  Attributes:
-
 
28758
   - privateDeal
-
 
28759
  """
-
 
28760
 
-
 
28761
  thrift_spec = (
-
 
28762
    None, # 0
-
 
28763
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
-
 
28764
  )
-
 
28765
 
-
 
28766
  def __init__(self, privateDeal=None,):
-
 
28767
    self.privateDeal = privateDeal
-
 
28768
 
-
 
28769
  def read(self, iprot):
-
 
28770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28772
      return
-
 
28773
    iprot.readStructBegin()
-
 
28774
    while True:
-
 
28775
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28776
      if ftype == TType.STOP:
-
 
28777
        break
-
 
28778
      if fid == 1:
-
 
28779
        if ftype == TType.STRUCT:
-
 
28780
          self.privateDeal = PrivateDeal()
-
 
28781
          self.privateDeal.read(iprot)
-
 
28782
        else:
-
 
28783
          iprot.skip(ftype)
-
 
28784
      else:
-
 
28785
        iprot.skip(ftype)
-
 
28786
      iprot.readFieldEnd()
-
 
28787
    iprot.readStructEnd()
-
 
28788
 
-
 
28789
  def write(self, oprot):
-
 
28790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28792
      return
-
 
28793
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
-
 
28794
    if self.privateDeal is not None:
-
 
28795
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
-
 
28796
      self.privateDeal.write(oprot)
-
 
28797
      oprot.writeFieldEnd()
-
 
28798
    oprot.writeFieldStop()
-
 
28799
    oprot.writeStructEnd()
-
 
28800
 
-
 
28801
  def validate(self):
-
 
28802
    return
-
 
28803
 
-
 
28804
 
-
 
28805
  def __repr__(self):
-
 
28806
    L = ['%s=%r' % (key, value)
-
 
28807
      for key, value in self.__dict__.iteritems()]
-
 
28808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
28809
 
-
 
28810
  def __eq__(self, other):
-
 
28811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
28812
 
-
 
28813
  def __ne__(self, other):
-
 
28814
    return not (self == other)
-
 
28815
 
-
 
28816
class addOrUpdatePrivateDeal_result:
-
 
28817
  """
-
 
28818
  Attributes:
-
 
28819
   - success
-
 
28820
  """
-
 
28821
 
-
 
28822
  thrift_spec = (
-
 
28823
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
28824
  )
-
 
28825
 
-
 
28826
  def __init__(self, success=None,):
-
 
28827
    self.success = success
-
 
28828
 
-
 
28829
  def read(self, iprot):
-
 
28830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
28831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
28832
      return
-
 
28833
    iprot.readStructBegin()
-
 
28834
    while True:
-
 
28835
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
28836
      if ftype == TType.STOP:
-
 
28837
        break
-
 
28838
      if fid == 0:
-
 
28839
        if ftype == TType.BOOL:
-
 
28840
          self.success = iprot.readBool();
-
 
28841
        else:
-
 
28842
          iprot.skip(ftype)
-
 
28843
      else:
-
 
28844
        iprot.skip(ftype)
-
 
28845
      iprot.readFieldEnd()
-
 
28846
    iprot.readStructEnd()
-
 
28847
 
-
 
28848
  def write(self, oprot):
-
 
28849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
28850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
28851
      return
-
 
28852
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
-
 
28853
    if self.success is not None:
-
 
28854
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
28855
      oprot.writeBool(self.success)
-
 
28856
      oprot.writeFieldEnd()
-
 
28857
    oprot.writeFieldStop()
-
 
28858
    oprot.writeStructEnd()
-
 
28859
 
-
 
28860
  def validate(self):
28335
    return
28861
    return
28336
 
28862
 
28337
 
28863
 
28338
  def __repr__(self):
28864
  def __repr__(self):
28339
    L = ['%s=%r' % (key, value)
28865
    L = ['%s=%r' % (key, value)