Subversion Repositories SmartDukaan

Rev

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

Rev 1491 Rev 1590
Line 180... Line 180...
180
     - subject
180
     - subject
181
     - message
181
     - message
182
    """
182
    """
183
    pass
183
    pass
184
 
184
 
-
 
185
  def getUserCommunicationById(self, id):
-
 
186
    """
-
 
187
    Parameters:
-
 
188
     - id
-
 
189
    """
-
 
190
    pass
-
 
191
 
-
 
192
  def getUserCommunicationByUser(self, userId):
-
 
193
    """
-
 
194
    Parameters:
-
 
195
     - userId
-
 
196
    """
-
 
197
    pass
-
 
198
 
-
 
199
  def getAllUserCommunications(self, ):
-
 
200
    pass
-
 
201
 
185
  def createCart(self, userId):
202
  def createCart(self, userId):
186
    """
203
    """
187
    Parameters:
204
    Parameters:
188
     - userId
205
     - userId
189
    """
206
    """
Line 1087... Line 1104...
1087
      return result.success
1104
      return result.success
1088
    if result.ucx != None:
1105
    if result.ucx != None:
1089
      raise result.ucx
1106
      raise result.ucx
1090
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1091
 
1108
 
-
 
1109
  def getUserCommunicationById(self, id):
-
 
1110
    """
-
 
1111
    Parameters:
-
 
1112
     - id
-
 
1113
    """
-
 
1114
    self.send_getUserCommunicationById(id)
-
 
1115
    return self.recv_getUserCommunicationById()
-
 
1116
 
-
 
1117
  def send_getUserCommunicationById(self, id):
-
 
1118
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
-
 
1119
    args = getUserCommunicationById_args()
-
 
1120
    args.id = id
-
 
1121
    args.write(self._oprot)
-
 
1122
    self._oprot.writeMessageEnd()
-
 
1123
    self._oprot.trans.flush()
-
 
1124
 
-
 
1125
  def recv_getUserCommunicationById(self, ):
-
 
1126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1127
    if mtype == TMessageType.EXCEPTION:
-
 
1128
      x = TApplicationException()
-
 
1129
      x.read(self._iprot)
-
 
1130
      self._iprot.readMessageEnd()
-
 
1131
      raise x
-
 
1132
    result = getUserCommunicationById_result()
-
 
1133
    result.read(self._iprot)
-
 
1134
    self._iprot.readMessageEnd()
-
 
1135
    if result.success != None:
-
 
1136
      return result.success
-
 
1137
    if result.ucx != None:
-
 
1138
      raise result.ucx
-
 
1139
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
-
 
1140
 
-
 
1141
  def getUserCommunicationByUser(self, userId):
-
 
1142
    """
-
 
1143
    Parameters:
-
 
1144
     - userId
-
 
1145
    """
-
 
1146
    self.send_getUserCommunicationByUser(userId)
-
 
1147
    return self.recv_getUserCommunicationByUser()
-
 
1148
 
-
 
1149
  def send_getUserCommunicationByUser(self, userId):
-
 
1150
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
-
 
1151
    args = getUserCommunicationByUser_args()
-
 
1152
    args.userId = userId
-
 
1153
    args.write(self._oprot)
-
 
1154
    self._oprot.writeMessageEnd()
-
 
1155
    self._oprot.trans.flush()
-
 
1156
 
-
 
1157
  def recv_getUserCommunicationByUser(self, ):
-
 
1158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1159
    if mtype == TMessageType.EXCEPTION:
-
 
1160
      x = TApplicationException()
-
 
1161
      x.read(self._iprot)
-
 
1162
      self._iprot.readMessageEnd()
-
 
1163
      raise x
-
 
1164
    result = getUserCommunicationByUser_result()
-
 
1165
    result.read(self._iprot)
-
 
1166
    self._iprot.readMessageEnd()
-
 
1167
    if result.success != None:
-
 
1168
      return result.success
-
 
1169
    if result.ucx != None:
-
 
1170
      raise result.ucx
-
 
1171
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
-
 
1172
 
-
 
1173
  def getAllUserCommunications(self, ):
-
 
1174
    self.send_getAllUserCommunications()
-
 
1175
    return self.recv_getAllUserCommunications()
-
 
1176
 
-
 
1177
  def send_getAllUserCommunications(self, ):
-
 
1178
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
-
 
1179
    args = getAllUserCommunications_args()
-
 
1180
    args.write(self._oprot)
-
 
1181
    self._oprot.writeMessageEnd()
-
 
1182
    self._oprot.trans.flush()
-
 
1183
 
-
 
1184
  def recv_getAllUserCommunications(self, ):
-
 
1185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1186
    if mtype == TMessageType.EXCEPTION:
-
 
1187
      x = TApplicationException()
-
 
1188
      x.read(self._iprot)
-
 
1189
      self._iprot.readMessageEnd()
-
 
1190
      raise x
-
 
1191
    result = getAllUserCommunications_result()
-
 
1192
    result.read(self._iprot)
-
 
1193
    self._iprot.readMessageEnd()
-
 
1194
    if result.success != None:
-
 
1195
      return result.success
-
 
1196
    if result.ucx != None:
-
 
1197
      raise result.ucx
-
 
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
-
 
1199
 
1092
  def createCart(self, userId):
1200
  def createCart(self, userId):
1093
    """
1201
    """
1094
    Parameters:
1202
    Parameters:
1095
     - userId
1203
     - userId
1096
    """
1204
    """
Line 1876... Line 1984...
1876
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
1984
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
1877
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1985
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1878
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
1986
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
1879
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1987
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1880
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1988
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
-
 
1989
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
-
 
1990
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
-
 
1991
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1881
    self._processMap["createCart"] = Processor.process_createCart
1992
    self._processMap["createCart"] = Processor.process_createCart
1882
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
1993
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
1883
    self._processMap["getCart"] = Processor.process_getCart
1994
    self._processMap["getCart"] = Processor.process_getCart
1884
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
1995
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
1885
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
1996
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
Line 2206... Line 2317...
2206
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
2317
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
2207
    result.write(oprot)
2318
    result.write(oprot)
2208
    oprot.writeMessageEnd()
2319
    oprot.writeMessageEnd()
2209
    oprot.trans.flush()
2320
    oprot.trans.flush()
2210
 
2321
 
-
 
2322
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
-
 
2323
    args = getUserCommunicationById_args()
-
 
2324
    args.read(iprot)
-
 
2325
    iprot.readMessageEnd()
-
 
2326
    result = getUserCommunicationById_result()
-
 
2327
    try:
-
 
2328
      result.success = self._handler.getUserCommunicationById(args.id)
-
 
2329
    except UserCommunicationException, ucx:
-
 
2330
      result.ucx = ucx
-
 
2331
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
-
 
2332
    result.write(oprot)
-
 
2333
    oprot.writeMessageEnd()
-
 
2334
    oprot.trans.flush()
-
 
2335
 
-
 
2336
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
-
 
2337
    args = getUserCommunicationByUser_args()
-
 
2338
    args.read(iprot)
-
 
2339
    iprot.readMessageEnd()
-
 
2340
    result = getUserCommunicationByUser_result()
-
 
2341
    try:
-
 
2342
      result.success = self._handler.getUserCommunicationByUser(args.userId)
-
 
2343
    except UserCommunicationException, ucx:
-
 
2344
      result.ucx = ucx
-
 
2345
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
-
 
2346
    result.write(oprot)
-
 
2347
    oprot.writeMessageEnd()
-
 
2348
    oprot.trans.flush()
-
 
2349
 
-
 
2350
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
-
 
2351
    args = getAllUserCommunications_args()
-
 
2352
    args.read(iprot)
-
 
2353
    iprot.readMessageEnd()
-
 
2354
    result = getAllUserCommunications_result()
-
 
2355
    try:
-
 
2356
      result.success = self._handler.getAllUserCommunications()
-
 
2357
    except UserCommunicationException, ucx:
-
 
2358
      result.ucx = ucx
-
 
2359
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
-
 
2360
    result.write(oprot)
-
 
2361
    oprot.writeMessageEnd()
-
 
2362
    oprot.trans.flush()
-
 
2363
 
2211
  def process_createCart(self, seqid, iprot, oprot):
2364
  def process_createCart(self, seqid, iprot, oprot):
2212
    args = createCart_args()
2365
    args = createCart_args()
2213
    args.read(iprot)
2366
    args.read(iprot)
2214
    iprot.readMessageEnd()
2367
    iprot.readMessageEnd()
2215
    result = createCart_result()
2368
    result = createCart_result()
Line 5301... Line 5454...
5301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5302
 
5455
 
5303
  def __ne__(self, other):
5456
  def __ne__(self, other):
5304
    return not (self == other)
5457
    return not (self == other)
5305
 
5458
 
-
 
5459
class getUserCommunicationById_args:
-
 
5460
  """
-
 
5461
  Attributes:
-
 
5462
   - id
-
 
5463
  """
-
 
5464
 
-
 
5465
  thrift_spec = (
-
 
5466
    None, # 0
-
 
5467
    (1, TType.I64, 'id', None, None, ), # 1
-
 
5468
  )
-
 
5469
 
-
 
5470
  def __init__(self, id=None,):
-
 
5471
    self.id = id
-
 
5472
 
-
 
5473
  def read(self, iprot):
-
 
5474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5476
      return
-
 
5477
    iprot.readStructBegin()
-
 
5478
    while True:
-
 
5479
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5480
      if ftype == TType.STOP:
-
 
5481
        break
-
 
5482
      if fid == 1:
-
 
5483
        if ftype == TType.I64:
-
 
5484
          self.id = iprot.readI64();
-
 
5485
        else:
-
 
5486
          iprot.skip(ftype)
-
 
5487
      else:
-
 
5488
        iprot.skip(ftype)
-
 
5489
      iprot.readFieldEnd()
-
 
5490
    iprot.readStructEnd()
-
 
5491
 
-
 
5492
  def write(self, oprot):
-
 
5493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5495
      return
-
 
5496
    oprot.writeStructBegin('getUserCommunicationById_args')
-
 
5497
    if self.id != None:
-
 
5498
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
5499
      oprot.writeI64(self.id)
-
 
5500
      oprot.writeFieldEnd()
-
 
5501
    oprot.writeFieldStop()
-
 
5502
    oprot.writeStructEnd()
-
 
5503
 
-
 
5504
  def __repr__(self):
-
 
5505
    L = ['%s=%r' % (key, value)
-
 
5506
      for key, value in self.__dict__.iteritems()]
-
 
5507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5508
 
-
 
5509
  def __eq__(self, other):
-
 
5510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5511
 
-
 
5512
  def __ne__(self, other):
-
 
5513
    return not (self == other)
-
 
5514
 
-
 
5515
class getUserCommunicationById_result:
-
 
5516
  """
-
 
5517
  Attributes:
-
 
5518
   - success
-
 
5519
   - ucx
-
 
5520
  """
-
 
5521
 
-
 
5522
  thrift_spec = (
-
 
5523
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
-
 
5524
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
-
 
5525
  )
-
 
5526
 
-
 
5527
  def __init__(self, success=None, ucx=None,):
-
 
5528
    self.success = success
-
 
5529
    self.ucx = ucx
-
 
5530
 
-
 
5531
  def read(self, iprot):
-
 
5532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5534
      return
-
 
5535
    iprot.readStructBegin()
-
 
5536
    while True:
-
 
5537
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5538
      if ftype == TType.STOP:
-
 
5539
        break
-
 
5540
      if fid == 0:
-
 
5541
        if ftype == TType.STRUCT:
-
 
5542
          self.success = UserCommunication()
-
 
5543
          self.success.read(iprot)
-
 
5544
        else:
-
 
5545
          iprot.skip(ftype)
-
 
5546
      elif fid == 1:
-
 
5547
        if ftype == TType.STRUCT:
-
 
5548
          self.ucx = UserCommunicationException()
-
 
5549
          self.ucx.read(iprot)
-
 
5550
        else:
-
 
5551
          iprot.skip(ftype)
-
 
5552
      else:
-
 
5553
        iprot.skip(ftype)
-
 
5554
      iprot.readFieldEnd()
-
 
5555
    iprot.readStructEnd()
-
 
5556
 
-
 
5557
  def write(self, oprot):
-
 
5558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5560
      return
-
 
5561
    oprot.writeStructBegin('getUserCommunicationById_result')
-
 
5562
    if self.success != None:
-
 
5563
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
5564
      self.success.write(oprot)
-
 
5565
      oprot.writeFieldEnd()
-
 
5566
    if self.ucx != None:
-
 
5567
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
-
 
5568
      self.ucx.write(oprot)
-
 
5569
      oprot.writeFieldEnd()
-
 
5570
    oprot.writeFieldStop()
-
 
5571
    oprot.writeStructEnd()
-
 
5572
 
-
 
5573
  def __repr__(self):
-
 
5574
    L = ['%s=%r' % (key, value)
-
 
5575
      for key, value in self.__dict__.iteritems()]
-
 
5576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5577
 
-
 
5578
  def __eq__(self, other):
-
 
5579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5580
 
-
 
5581
  def __ne__(self, other):
-
 
5582
    return not (self == other)
-
 
5583
 
-
 
5584
class getUserCommunicationByUser_args:
-
 
5585
  """
-
 
5586
  Attributes:
-
 
5587
   - userId
-
 
5588
  """
-
 
5589
 
-
 
5590
  thrift_spec = (
-
 
5591
    None, # 0
-
 
5592
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
5593
  )
-
 
5594
 
-
 
5595
  def __init__(self, userId=None,):
-
 
5596
    self.userId = userId
-
 
5597
 
-
 
5598
  def read(self, iprot):
-
 
5599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5601
      return
-
 
5602
    iprot.readStructBegin()
-
 
5603
    while True:
-
 
5604
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5605
      if ftype == TType.STOP:
-
 
5606
        break
-
 
5607
      if fid == 1:
-
 
5608
        if ftype == TType.I64:
-
 
5609
          self.userId = iprot.readI64();
-
 
5610
        else:
-
 
5611
          iprot.skip(ftype)
-
 
5612
      else:
-
 
5613
        iprot.skip(ftype)
-
 
5614
      iprot.readFieldEnd()
-
 
5615
    iprot.readStructEnd()
-
 
5616
 
-
 
5617
  def write(self, oprot):
-
 
5618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5620
      return
-
 
5621
    oprot.writeStructBegin('getUserCommunicationByUser_args')
-
 
5622
    if self.userId != None:
-
 
5623
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
5624
      oprot.writeI64(self.userId)
-
 
5625
      oprot.writeFieldEnd()
-
 
5626
    oprot.writeFieldStop()
-
 
5627
    oprot.writeStructEnd()
-
 
5628
 
-
 
5629
  def __repr__(self):
-
 
5630
    L = ['%s=%r' % (key, value)
-
 
5631
      for key, value in self.__dict__.iteritems()]
-
 
5632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5633
 
-
 
5634
  def __eq__(self, other):
-
 
5635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5636
 
-
 
5637
  def __ne__(self, other):
-
 
5638
    return not (self == other)
-
 
5639
 
-
 
5640
class getUserCommunicationByUser_result:
-
 
5641
  """
-
 
5642
  Attributes:
-
 
5643
   - success
-
 
5644
   - ucx
-
 
5645
  """
-
 
5646
 
-
 
5647
  thrift_spec = (
-
 
5648
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
-
 
5649
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
-
 
5650
  )
-
 
5651
 
-
 
5652
  def __init__(self, success=None, ucx=None,):
-
 
5653
    self.success = success
-
 
5654
    self.ucx = ucx
-
 
5655
 
-
 
5656
  def read(self, iprot):
-
 
5657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5659
      return
-
 
5660
    iprot.readStructBegin()
-
 
5661
    while True:
-
 
5662
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5663
      if ftype == TType.STOP:
-
 
5664
        break
-
 
5665
      if fid == 0:
-
 
5666
        if ftype == TType.LIST:
-
 
5667
          self.success = []
-
 
5668
          (_etype38, _size35) = iprot.readListBegin()
-
 
5669
          for _i39 in xrange(_size35):
-
 
5670
            _elem40 = UserCommunication()
-
 
5671
            _elem40.read(iprot)
-
 
5672
            self.success.append(_elem40)
-
 
5673
          iprot.readListEnd()
-
 
5674
        else:
-
 
5675
          iprot.skip(ftype)
-
 
5676
      elif fid == 1:
-
 
5677
        if ftype == TType.STRUCT:
-
 
5678
          self.ucx = UserCommunicationException()
-
 
5679
          self.ucx.read(iprot)
-
 
5680
        else:
-
 
5681
          iprot.skip(ftype)
-
 
5682
      else:
-
 
5683
        iprot.skip(ftype)
-
 
5684
      iprot.readFieldEnd()
-
 
5685
    iprot.readStructEnd()
-
 
5686
 
-
 
5687
  def write(self, oprot):
-
 
5688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5690
      return
-
 
5691
    oprot.writeStructBegin('getUserCommunicationByUser_result')
-
 
5692
    if self.success != None:
-
 
5693
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5694
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
5695
      for iter41 in self.success:
-
 
5696
        iter41.write(oprot)
-
 
5697
      oprot.writeListEnd()
-
 
5698
      oprot.writeFieldEnd()
-
 
5699
    if self.ucx != None:
-
 
5700
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
-
 
5701
      self.ucx.write(oprot)
-
 
5702
      oprot.writeFieldEnd()
-
 
5703
    oprot.writeFieldStop()
-
 
5704
    oprot.writeStructEnd()
-
 
5705
 
-
 
5706
  def __repr__(self):
-
 
5707
    L = ['%s=%r' % (key, value)
-
 
5708
      for key, value in self.__dict__.iteritems()]
-
 
5709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5710
 
-
 
5711
  def __eq__(self, other):
-
 
5712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5713
 
-
 
5714
  def __ne__(self, other):
-
 
5715
    return not (self == other)
-
 
5716
 
-
 
5717
class getAllUserCommunications_args:
-
 
5718
 
-
 
5719
  thrift_spec = (
-
 
5720
  )
-
 
5721
 
-
 
5722
  def read(self, iprot):
-
 
5723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5725
      return
-
 
5726
    iprot.readStructBegin()
-
 
5727
    while True:
-
 
5728
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5729
      if ftype == TType.STOP:
-
 
5730
        break
-
 
5731
      else:
-
 
5732
        iprot.skip(ftype)
-
 
5733
      iprot.readFieldEnd()
-
 
5734
    iprot.readStructEnd()
-
 
5735
 
-
 
5736
  def write(self, oprot):
-
 
5737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5739
      return
-
 
5740
    oprot.writeStructBegin('getAllUserCommunications_args')
-
 
5741
    oprot.writeFieldStop()
-
 
5742
    oprot.writeStructEnd()
-
 
5743
 
-
 
5744
  def __repr__(self):
-
 
5745
    L = ['%s=%r' % (key, value)
-
 
5746
      for key, value in self.__dict__.iteritems()]
-
 
5747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5748
 
-
 
5749
  def __eq__(self, other):
-
 
5750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5751
 
-
 
5752
  def __ne__(self, other):
-
 
5753
    return not (self == other)
-
 
5754
 
-
 
5755
class getAllUserCommunications_result:
-
 
5756
  """
-
 
5757
  Attributes:
-
 
5758
   - success
-
 
5759
   - ucx
-
 
5760
  """
-
 
5761
 
-
 
5762
  thrift_spec = (
-
 
5763
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
-
 
5764
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
-
 
5765
  )
-
 
5766
 
-
 
5767
  def __init__(self, success=None, ucx=None,):
-
 
5768
    self.success = success
-
 
5769
    self.ucx = ucx
-
 
5770
 
-
 
5771
  def read(self, iprot):
-
 
5772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5774
      return
-
 
5775
    iprot.readStructBegin()
-
 
5776
    while True:
-
 
5777
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5778
      if ftype == TType.STOP:
-
 
5779
        break
-
 
5780
      if fid == 0:
-
 
5781
        if ftype == TType.LIST:
-
 
5782
          self.success = []
-
 
5783
          (_etype45, _size42) = iprot.readListBegin()
-
 
5784
          for _i46 in xrange(_size42):
-
 
5785
            _elem47 = UserCommunication()
-
 
5786
            _elem47.read(iprot)
-
 
5787
            self.success.append(_elem47)
-
 
5788
          iprot.readListEnd()
-
 
5789
        else:
-
 
5790
          iprot.skip(ftype)
-
 
5791
      elif fid == 1:
-
 
5792
        if ftype == TType.STRUCT:
-
 
5793
          self.ucx = UserCommunicationException()
-
 
5794
          self.ucx.read(iprot)
-
 
5795
        else:
-
 
5796
          iprot.skip(ftype)
-
 
5797
      else:
-
 
5798
        iprot.skip(ftype)
-
 
5799
      iprot.readFieldEnd()
-
 
5800
    iprot.readStructEnd()
-
 
5801
 
-
 
5802
  def write(self, oprot):
-
 
5803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5805
      return
-
 
5806
    oprot.writeStructBegin('getAllUserCommunications_result')
-
 
5807
    if self.success != None:
-
 
5808
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5809
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
5810
      for iter48 in self.success:
-
 
5811
        iter48.write(oprot)
-
 
5812
      oprot.writeListEnd()
-
 
5813
      oprot.writeFieldEnd()
-
 
5814
    if self.ucx != None:
-
 
5815
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
-
 
5816
      self.ucx.write(oprot)
-
 
5817
      oprot.writeFieldEnd()
-
 
5818
    oprot.writeFieldStop()
-
 
5819
    oprot.writeStructEnd()
-
 
5820
 
-
 
5821
  def __repr__(self):
-
 
5822
    L = ['%s=%r' % (key, value)
-
 
5823
      for key, value in self.__dict__.iteritems()]
-
 
5824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5825
 
-
 
5826
  def __eq__(self, other):
-
 
5827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5828
 
-
 
5829
  def __ne__(self, other):
-
 
5830
    return not (self == other)
-
 
5831
 
5306
class createCart_args:
5832
class createCart_args:
5307
  """
5833
  """
5308
  Attributes:
5834
  Attributes:
5309
   - userId
5835
   - userId
5310
  """
5836
  """
Line 5771... Line 6297...
5771
      if ftype == TType.STOP:
6297
      if ftype == TType.STOP:
5772
        break
6298
        break
5773
      if fid == 0:
6299
      if fid == 0:
5774
        if ftype == TType.LIST:
6300
        if ftype == TType.LIST:
5775
          self.success = []
6301
          self.success = []
5776
          (_etype38, _size35) = iprot.readListBegin()
6302
          (_etype52, _size49) = iprot.readListBegin()
5777
          for _i39 in xrange(_size35):
6303
          for _i53 in xrange(_size49):
5778
            _elem40 = Cart()
6304
            _elem54 = Cart()
5779
            _elem40.read(iprot)
6305
            _elem54.read(iprot)
5780
            self.success.append(_elem40)
6306
            self.success.append(_elem54)
5781
          iprot.readListEnd()
6307
          iprot.readListEnd()
5782
        else:
6308
        else:
5783
          iprot.skip(ftype)
6309
          iprot.skip(ftype)
5784
      elif fid == 1:
6310
      elif fid == 1:
5785
        if ftype == TType.STRUCT:
6311
        if ftype == TType.STRUCT:
Line 5798... Line 6324...
5798
      return
6324
      return
5799
    oprot.writeStructBegin('getCartsForUser_result')
6325
    oprot.writeStructBegin('getCartsForUser_result')
5800
    if self.success != None:
6326
    if self.success != None:
5801
      oprot.writeFieldBegin('success', TType.LIST, 0)
6327
      oprot.writeFieldBegin('success', TType.LIST, 0)
5802
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6328
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5803
      for iter41 in self.success:
6329
      for iter55 in self.success:
5804
        iter41.write(oprot)
6330
        iter55.write(oprot)
5805
      oprot.writeListEnd()
6331
      oprot.writeListEnd()
5806
      oprot.writeFieldEnd()
6332
      oprot.writeFieldEnd()
5807
    if self.scx != None:
6333
    if self.scx != None:
5808
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6334
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5809
      self.scx.write(oprot)
6335
      self.scx.write(oprot)
Line 5904... Line 6430...
5904
      if ftype == TType.STOP:
6430
      if ftype == TType.STOP:
5905
        break
6431
        break
5906
      if fid == 0:
6432
      if fid == 0:
5907
        if ftype == TType.LIST:
6433
        if ftype == TType.LIST:
5908
          self.success = []
6434
          self.success = []
5909
          (_etype45, _size42) = iprot.readListBegin()
6435
          (_etype59, _size56) = iprot.readListBegin()
5910
          for _i46 in xrange(_size42):
6436
          for _i60 in xrange(_size56):
5911
            _elem47 = Cart()
6437
            _elem61 = Cart()
5912
            _elem47.read(iprot)
6438
            _elem61.read(iprot)
5913
            self.success.append(_elem47)
6439
            self.success.append(_elem61)
5914
          iprot.readListEnd()
6440
          iprot.readListEnd()
5915
        else:
6441
        else:
5916
          iprot.skip(ftype)
6442
          iprot.skip(ftype)
5917
      elif fid == 1:
6443
      elif fid == 1:
5918
        if ftype == TType.STRUCT:
6444
        if ftype == TType.STRUCT:
Line 5931... Line 6457...
5931
      return
6457
      return
5932
    oprot.writeStructBegin('getCartsByStatus_result')
6458
    oprot.writeStructBegin('getCartsByStatus_result')
5933
    if self.success != None:
6459
    if self.success != None:
5934
      oprot.writeFieldBegin('success', TType.LIST, 0)
6460
      oprot.writeFieldBegin('success', TType.LIST, 0)
5935
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6461
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5936
      for iter48 in self.success:
6462
      for iter62 in self.success:
5937
        iter48.write(oprot)
6463
        iter62.write(oprot)
5938
      oprot.writeListEnd()
6464
      oprot.writeListEnd()
5939
      oprot.writeFieldEnd()
6465
      oprot.writeFieldEnd()
5940
    if self.scx != None:
6466
    if self.scx != None:
5941
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6467
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5942
      self.scx.write(oprot)
6468
      self.scx.write(oprot)
Line 6061... Line 6587...
6061
      if ftype == TType.STOP:
6587
      if ftype == TType.STOP:
6062
        break
6588
        break
6063
      if fid == 0:
6589
      if fid == 0:
6064
        if ftype == TType.LIST:
6590
        if ftype == TType.LIST:
6065
          self.success = []
6591
          self.success = []
6066
          (_etype52, _size49) = iprot.readListBegin()
6592
          (_etype66, _size63) = iprot.readListBegin()
6067
          for _i53 in xrange(_size49):
6593
          for _i67 in xrange(_size63):
6068
            _elem54 = Cart()
6594
            _elem68 = Cart()
6069
            _elem54.read(iprot)
6595
            _elem68.read(iprot)
6070
            self.success.append(_elem54)
6596
            self.success.append(_elem68)
6071
          iprot.readListEnd()
6597
          iprot.readListEnd()
6072
        else:
6598
        else:
6073
          iprot.skip(ftype)
6599
          iprot.skip(ftype)
6074
      elif fid == 1:
6600
      elif fid == 1:
6075
        if ftype == TType.STRUCT:
6601
        if ftype == TType.STRUCT:
Line 6088... Line 6614...
6088
      return
6614
      return
6089
    oprot.writeStructBegin('getCartsByTime_result')
6615
    oprot.writeStructBegin('getCartsByTime_result')
6090
    if self.success != None:
6616
    if self.success != None:
6091
      oprot.writeFieldBegin('success', TType.LIST, 0)
6617
      oprot.writeFieldBegin('success', TType.LIST, 0)
6092
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6618
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6093
      for iter55 in self.success:
6619
      for iter69 in self.success:
6094
        iter55.write(oprot)
6620
        iter69.write(oprot)
6095
      oprot.writeListEnd()
6621
      oprot.writeListEnd()
6096
      oprot.writeFieldEnd()
6622
      oprot.writeFieldEnd()
6097
    if self.scx != None:
6623
    if self.scx != None:
6098
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6624
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6099
      self.scx.write(oprot)
6625
      self.scx.write(oprot)
Line 7408... Line 7934...
7408
        else:
7934
        else:
7409
          iprot.skip(ftype)
7935
          iprot.skip(ftype)
7410
      elif fid == 2:
7936
      elif fid == 2:
7411
        if ftype == TType.MAP:
7937
        if ftype == TType.MAP:
7412
          self.items = {}
7938
          self.items = {}
7413
          (_ktype57, _vtype58, _size56 ) = iprot.readMapBegin() 
7939
          (_ktype71, _vtype72, _size70 ) = iprot.readMapBegin() 
7414
          for _i60 in xrange(_size56):
7940
          for _i74 in xrange(_size70):
7415
            _key61 = iprot.readI64();
7941
            _key75 = iprot.readI64();
7416
            _val62 = iprot.readDouble();
7942
            _val76 = iprot.readDouble();
7417
            self.items[_key61] = _val62
7943
            self.items[_key75] = _val76
7418
          iprot.readMapEnd()
7944
          iprot.readMapEnd()
7419
        else:
7945
        else:
7420
          iprot.skip(ftype)
7946
          iprot.skip(ftype)
7421
      else:
7947
      else:
7422
        iprot.skip(ftype)
7948
        iprot.skip(ftype)
Line 7433... Line 7959...
7433
      oprot.writeI64(self.cartId)
7959
      oprot.writeI64(self.cartId)
7434
      oprot.writeFieldEnd()
7960
      oprot.writeFieldEnd()
7435
    if self.items != None:
7961
    if self.items != None:
7436
      oprot.writeFieldBegin('items', TType.MAP, 2)
7962
      oprot.writeFieldBegin('items', TType.MAP, 2)
7437
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
7963
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
7438
      for kiter63,viter64 in self.items.items():
7964
      for kiter77,viter78 in self.items.items():
7439
        oprot.writeI64(kiter63)
7965
        oprot.writeI64(kiter77)
7440
        oprot.writeDouble(viter64)
7966
        oprot.writeDouble(viter78)
7441
      oprot.writeMapEnd()
7967
      oprot.writeMapEnd()
7442
      oprot.writeFieldEnd()
7968
      oprot.writeFieldEnd()
7443
    oprot.writeFieldStop()
7969
    oprot.writeFieldStop()
7444
    oprot.writeStructEnd()
7970
    oprot.writeStructEnd()
7445
 
7971