Subversion Repositories SmartDukaan

Rev

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

Rev 1596 Rev 1627
Line 325... Line 325...
325
    """
325
    """
326
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
326
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
327
    """
327
    """
328
    pass
328
    pass
329
 
329
 
-
 
330
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
331
    """
-
 
332
    Returns the number of distinct customers who have done successful transactions
-
 
333
    """
-
 
334
    pass
-
 
335
 
-
 
336
  def getMaxValidOrderAmount(self, ):
-
 
337
    """
-
 
338
    Returns the maximum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
339
    """
-
 
340
    pass
-
 
341
 
-
 
342
  def getMinValidOrderAmount(self, ):
-
 
343
    """
-
 
344
    Returns the minimum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
345
    """
-
 
346
    pass
-
 
347
 
330
 
348
 
331
class Client(Iface):
349
class Client(Iface):
332
  def __init__(self, iprot, oprot=None):
350
  def __init__(self, iprot, oprot=None):
333
    self._iprot = self._oprot = iprot
351
    self._iprot = self._oprot = iprot
334
    if oprot != None:
352
    if oprot != None:
Line 1505... Line 1523...
1505
    self._iprot.readMessageEnd()
1523
    self._iprot.readMessageEnd()
1506
    if result.success != None:
1524
    if result.success != None:
1507
      return result.success
1525
      return result.success
1508
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1509
 
1527
 
-
 
1528
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1529
    """
-
 
1530
    Returns the number of distinct customers who have done successful transactions
-
 
1531
    """
-
 
1532
    self.send_getNoOfCustomersWithSuccessfulTransaction()
-
 
1533
    return self.recv_getNoOfCustomersWithSuccessfulTransaction()
-
 
1534
 
-
 
1535
  def send_getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1536
    self._oprot.writeMessageBegin('getNoOfCustomersWithSuccessfulTransaction', TMessageType.CALL, self._seqid)
-
 
1537
    args = getNoOfCustomersWithSuccessfulTransaction_args()
-
 
1538
    args.write(self._oprot)
-
 
1539
    self._oprot.writeMessageEnd()
-
 
1540
    self._oprot.trans.flush()
-
 
1541
 
-
 
1542
  def recv_getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1543
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1544
    if mtype == TMessageType.EXCEPTION:
-
 
1545
      x = TApplicationException()
-
 
1546
      x.read(self._iprot)
-
 
1547
      self._iprot.readMessageEnd()
-
 
1548
      raise x
-
 
1549
    result = getNoOfCustomersWithSuccessfulTransaction_result()
-
 
1550
    result.read(self._iprot)
-
 
1551
    self._iprot.readMessageEnd()
-
 
1552
    if result.success != None:
-
 
1553
      return result.success
-
 
1554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
-
 
1555
 
-
 
1556
  def getMaxValidOrderAmount(self, ):
-
 
1557
    """
-
 
1558
    Returns the maximum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
1559
    """
-
 
1560
    self.send_getMaxValidOrderAmount()
-
 
1561
    return self.recv_getMaxValidOrderAmount()
-
 
1562
 
-
 
1563
  def send_getMaxValidOrderAmount(self, ):
-
 
1564
    self._oprot.writeMessageBegin('getMaxValidOrderAmount', TMessageType.CALL, self._seqid)
-
 
1565
    args = getMaxValidOrderAmount_args()
-
 
1566
    args.write(self._oprot)
-
 
1567
    self._oprot.writeMessageEnd()
-
 
1568
    self._oprot.trans.flush()
-
 
1569
 
-
 
1570
  def recv_getMaxValidOrderAmount(self, ):
-
 
1571
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1572
    if mtype == TMessageType.EXCEPTION:
-
 
1573
      x = TApplicationException()
-
 
1574
      x.read(self._iprot)
-
 
1575
      self._iprot.readMessageEnd()
-
 
1576
      raise x
-
 
1577
    result = getMaxValidOrderAmount_result()
-
 
1578
    result.read(self._iprot)
-
 
1579
    self._iprot.readMessageEnd()
-
 
1580
    if result.success != None:
-
 
1581
      return result.success
-
 
1582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMaxValidOrderAmount failed: unknown result");
-
 
1583
 
-
 
1584
  def getMinValidOrderAmount(self, ):
-
 
1585
    """
-
 
1586
    Returns the minimum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
1587
    """
-
 
1588
    self.send_getMinValidOrderAmount()
-
 
1589
    return self.recv_getMinValidOrderAmount()
-
 
1590
 
-
 
1591
  def send_getMinValidOrderAmount(self, ):
-
 
1592
    self._oprot.writeMessageBegin('getMinValidOrderAmount', TMessageType.CALL, self._seqid)
-
 
1593
    args = getMinValidOrderAmount_args()
-
 
1594
    args.write(self._oprot)
-
 
1595
    self._oprot.writeMessageEnd()
-
 
1596
    self._oprot.trans.flush()
-
 
1597
 
-
 
1598
  def recv_getMinValidOrderAmount(self, ):
-
 
1599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1600
    if mtype == TMessageType.EXCEPTION:
-
 
1601
      x = TApplicationException()
-
 
1602
      x.read(self._iprot)
-
 
1603
      self._iprot.readMessageEnd()
-
 
1604
      raise x
-
 
1605
    result = getMinValidOrderAmount_result()
-
 
1606
    result.read(self._iprot)
-
 
1607
    self._iprot.readMessageEnd()
-
 
1608
    if result.success != None:
-
 
1609
      return result.success
-
 
1610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMinValidOrderAmount failed: unknown result");
-
 
1611
 
1510
 
1612
 
1511
class Processor(Iface, TProcessor):
1613
class Processor(Iface, TProcessor):
1512
  def __init__(self, handler):
1614
  def __init__(self, handler):
1513
    self._handler = handler
1615
    self._handler = handler
1514
    self._processMap = {}
1616
    self._processMap = {}
Line 1544... Line 1646...
1544
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
1646
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
1545
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
1647
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
1546
    self._processMap["getAlerts"] = Processor.process_getAlerts
1648
    self._processMap["getAlerts"] = Processor.process_getAlerts
1547
    self._processMap["setAlert"] = Processor.process_setAlert
1649
    self._processMap["setAlert"] = Processor.process_setAlert
1548
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
1650
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
-
 
1651
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
-
 
1652
    self._processMap["getMaxValidOrderAmount"] = Processor.process_getMaxValidOrderAmount
-
 
1653
    self._processMap["getMinValidOrderAmount"] = Processor.process_getMinValidOrderAmount
1549
 
1654
 
1550
  def process(self, iprot, oprot):
1655
  def process(self, iprot, oprot):
1551
    (name, type, seqid) = iprot.readMessageBegin()
1656
    (name, type, seqid) = iprot.readMessageBegin()
1552
    if name not in self._processMap:
1657
    if name not in self._processMap:
1553
      iprot.skip(TType.STRUCT)
1658
      iprot.skip(TType.STRUCT)
Line 2021... Line 2126...
2021
    oprot.writeMessageBegin("getValidOrderCount", TMessageType.REPLY, seqid)
2126
    oprot.writeMessageBegin("getValidOrderCount", TMessageType.REPLY, seqid)
2022
    result.write(oprot)
2127
    result.write(oprot)
2023
    oprot.writeMessageEnd()
2128
    oprot.writeMessageEnd()
2024
    oprot.trans.flush()
2129
    oprot.trans.flush()
2025
 
2130
 
-
 
2131
  def process_getNoOfCustomersWithSuccessfulTransaction(self, seqid, iprot, oprot):
-
 
2132
    args = getNoOfCustomersWithSuccessfulTransaction_args()
-
 
2133
    args.read(iprot)
-
 
2134
    iprot.readMessageEnd()
-
 
2135
    result = getNoOfCustomersWithSuccessfulTransaction_result()
-
 
2136
    result.success = self._handler.getNoOfCustomersWithSuccessfulTransaction()
-
 
2137
    oprot.writeMessageBegin("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid)
-
 
2138
    result.write(oprot)
-
 
2139
    oprot.writeMessageEnd()
-
 
2140
    oprot.trans.flush()
-
 
2141
 
-
 
2142
  def process_getMaxValidOrderAmount(self, seqid, iprot, oprot):
-
 
2143
    args = getMaxValidOrderAmount_args()
-
 
2144
    args.read(iprot)
-
 
2145
    iprot.readMessageEnd()
-
 
2146
    result = getMaxValidOrderAmount_result()
-
 
2147
    result.success = self._handler.getMaxValidOrderAmount()
-
 
2148
    oprot.writeMessageBegin("getMaxValidOrderAmount", TMessageType.REPLY, seqid)
-
 
2149
    result.write(oprot)
-
 
2150
    oprot.writeMessageEnd()
-
 
2151
    oprot.trans.flush()
-
 
2152
 
-
 
2153
  def process_getMinValidOrderAmount(self, seqid, iprot, oprot):
-
 
2154
    args = getMinValidOrderAmount_args()
-
 
2155
    args.read(iprot)
-
 
2156
    iprot.readMessageEnd()
-
 
2157
    result = getMinValidOrderAmount_result()
-
 
2158
    result.success = self._handler.getMinValidOrderAmount()
-
 
2159
    oprot.writeMessageBegin("getMinValidOrderAmount", TMessageType.REPLY, seqid)
-
 
2160
    result.write(oprot)
-
 
2161
    oprot.writeMessageEnd()
-
 
2162
    oprot.trans.flush()
-
 
2163
 
2026
 
2164
 
2027
# HELPER FUNCTIONS AND STRUCTURES
2165
# HELPER FUNCTIONS AND STRUCTURES
2028
 
2166
 
2029
class closeSession_args:
2167
class closeSession_args:
2030
 
2168
 
Line 6618... Line 6756...
6618
      oprot.writeFieldEnd()
6756
      oprot.writeFieldEnd()
6619
    oprot.writeFieldStop()
6757
    oprot.writeFieldStop()
6620
    oprot.writeStructEnd()
6758
    oprot.writeStructEnd()
6621
 
6759
 
6622
  def __repr__(self):
6760
  def __repr__(self):
-
 
6761
    L = ['%s=%r' % (key, value)
-
 
6762
      for key, value in self.__dict__.iteritems()]
-
 
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6764
 
-
 
6765
  def __eq__(self, other):
-
 
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6767
 
-
 
6768
  def __ne__(self, other):
-
 
6769
    return not (self == other)
-
 
6770
 
-
 
6771
class getNoOfCustomersWithSuccessfulTransaction_args:
-
 
6772
 
-
 
6773
  thrift_spec = (
-
 
6774
  )
-
 
6775
 
-
 
6776
  def read(self, iprot):
-
 
6777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6779
      return
-
 
6780
    iprot.readStructBegin()
-
 
6781
    while True:
-
 
6782
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6783
      if ftype == TType.STOP:
-
 
6784
        break
-
 
6785
      else:
-
 
6786
        iprot.skip(ftype)
-
 
6787
      iprot.readFieldEnd()
-
 
6788
    iprot.readStructEnd()
-
 
6789
 
-
 
6790
  def write(self, oprot):
-
 
6791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6793
      return
-
 
6794
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
-
 
6795
    oprot.writeFieldStop()
-
 
6796
    oprot.writeStructEnd()
-
 
6797
 
-
 
6798
  def __repr__(self):
-
 
6799
    L = ['%s=%r' % (key, value)
-
 
6800
      for key, value in self.__dict__.iteritems()]
-
 
6801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6802
 
-
 
6803
  def __eq__(self, other):
-
 
6804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6805
 
-
 
6806
  def __ne__(self, other):
-
 
6807
    return not (self == other)
-
 
6808
 
-
 
6809
class getNoOfCustomersWithSuccessfulTransaction_result:
-
 
6810
  """
-
 
6811
  Attributes:
-
 
6812
   - success
-
 
6813
  """
-
 
6814
 
-
 
6815
  thrift_spec = (
-
 
6816
    (0, TType.I64, 'success', None, None, ), # 0
-
 
6817
  )
-
 
6818
 
-
 
6819
  def __init__(self, success=None,):
-
 
6820
    self.success = success
-
 
6821
 
-
 
6822
  def read(self, iprot):
-
 
6823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6825
      return
-
 
6826
    iprot.readStructBegin()
-
 
6827
    while True:
-
 
6828
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6829
      if ftype == TType.STOP:
-
 
6830
        break
-
 
6831
      if fid == 0:
-
 
6832
        if ftype == TType.I64:
-
 
6833
          self.success = iprot.readI64();
-
 
6834
        else:
-
 
6835
          iprot.skip(ftype)
-
 
6836
      else:
-
 
6837
        iprot.skip(ftype)
-
 
6838
      iprot.readFieldEnd()
-
 
6839
    iprot.readStructEnd()
-
 
6840
 
-
 
6841
  def write(self, oprot):
-
 
6842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6844
      return
-
 
6845
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
-
 
6846
    if self.success != None:
-
 
6847
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
6848
      oprot.writeI64(self.success)
-
 
6849
      oprot.writeFieldEnd()
-
 
6850
    oprot.writeFieldStop()
-
 
6851
    oprot.writeStructEnd()
-
 
6852
 
-
 
6853
  def __repr__(self):
-
 
6854
    L = ['%s=%r' % (key, value)
-
 
6855
      for key, value in self.__dict__.iteritems()]
-
 
6856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6857
 
-
 
6858
  def __eq__(self, other):
-
 
6859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6860
 
-
 
6861
  def __ne__(self, other):
-
 
6862
    return not (self == other)
-
 
6863
 
-
 
6864
class getMaxValidOrderAmount_args:
-
 
6865
 
-
 
6866
  thrift_spec = (
-
 
6867
  )
-
 
6868
 
-
 
6869
  def read(self, iprot):
-
 
6870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6872
      return
-
 
6873
    iprot.readStructBegin()
-
 
6874
    while True:
-
 
6875
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6876
      if ftype == TType.STOP:
-
 
6877
        break
-
 
6878
      else:
-
 
6879
        iprot.skip(ftype)
-
 
6880
      iprot.readFieldEnd()
-
 
6881
    iprot.readStructEnd()
-
 
6882
 
-
 
6883
  def write(self, oprot):
-
 
6884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6886
      return
-
 
6887
    oprot.writeStructBegin('getMaxValidOrderAmount_args')
-
 
6888
    oprot.writeFieldStop()
-
 
6889
    oprot.writeStructEnd()
-
 
6890
 
-
 
6891
  def __repr__(self):
-
 
6892
    L = ['%s=%r' % (key, value)
-
 
6893
      for key, value in self.__dict__.iteritems()]
-
 
6894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6895
 
-
 
6896
  def __eq__(self, other):
-
 
6897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6898
 
-
 
6899
  def __ne__(self, other):
-
 
6900
    return not (self == other)
-
 
6901
 
-
 
6902
class getMaxValidOrderAmount_result:
-
 
6903
  """
-
 
6904
  Attributes:
-
 
6905
   - success
-
 
6906
  """
-
 
6907
 
-
 
6908
  thrift_spec = (
-
 
6909
    (0, TType.DOUBLE, 'success', None, None, ), # 0
-
 
6910
  )
-
 
6911
 
-
 
6912
  def __init__(self, success=None,):
-
 
6913
    self.success = success
-
 
6914
 
-
 
6915
  def read(self, iprot):
-
 
6916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6918
      return
-
 
6919
    iprot.readStructBegin()
-
 
6920
    while True:
-
 
6921
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6922
      if ftype == TType.STOP:
-
 
6923
        break
-
 
6924
      if fid == 0:
-
 
6925
        if ftype == TType.DOUBLE:
-
 
6926
          self.success = iprot.readDouble();
-
 
6927
        else:
-
 
6928
          iprot.skip(ftype)
-
 
6929
      else:
-
 
6930
        iprot.skip(ftype)
-
 
6931
      iprot.readFieldEnd()
-
 
6932
    iprot.readStructEnd()
-
 
6933
 
-
 
6934
  def write(self, oprot):
-
 
6935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6937
      return
-
 
6938
    oprot.writeStructBegin('getMaxValidOrderAmount_result')
-
 
6939
    if self.success != None:
-
 
6940
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
-
 
6941
      oprot.writeDouble(self.success)
-
 
6942
      oprot.writeFieldEnd()
-
 
6943
    oprot.writeFieldStop()
-
 
6944
    oprot.writeStructEnd()
-
 
6945
 
-
 
6946
  def __repr__(self):
-
 
6947
    L = ['%s=%r' % (key, value)
-
 
6948
      for key, value in self.__dict__.iteritems()]
-
 
6949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6950
 
-
 
6951
  def __eq__(self, other):
-
 
6952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6953
 
-
 
6954
  def __ne__(self, other):
-
 
6955
    return not (self == other)
-
 
6956
 
-
 
6957
class getMinValidOrderAmount_args:
-
 
6958
 
-
 
6959
  thrift_spec = (
-
 
6960
  )
-
 
6961
 
-
 
6962
  def read(self, iprot):
-
 
6963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6965
      return
-
 
6966
    iprot.readStructBegin()
-
 
6967
    while True:
-
 
6968
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6969
      if ftype == TType.STOP:
-
 
6970
        break
-
 
6971
      else:
-
 
6972
        iprot.skip(ftype)
-
 
6973
      iprot.readFieldEnd()
-
 
6974
    iprot.readStructEnd()
-
 
6975
 
-
 
6976
  def write(self, oprot):
-
 
6977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6979
      return
-
 
6980
    oprot.writeStructBegin('getMinValidOrderAmount_args')
-
 
6981
    oprot.writeFieldStop()
-
 
6982
    oprot.writeStructEnd()
-
 
6983
 
-
 
6984
  def __repr__(self):
-
 
6985
    L = ['%s=%r' % (key, value)
-
 
6986
      for key, value in self.__dict__.iteritems()]
-
 
6987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6988
 
-
 
6989
  def __eq__(self, other):
-
 
6990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6991
 
-
 
6992
  def __ne__(self, other):
-
 
6993
    return not (self == other)
-
 
6994
 
-
 
6995
class getMinValidOrderAmount_result:
-
 
6996
  """
-
 
6997
  Attributes:
-
 
6998
   - success
-
 
6999
  """
-
 
7000
 
-
 
7001
  thrift_spec = (
-
 
7002
    (0, TType.DOUBLE, 'success', None, None, ), # 0
-
 
7003
  )
-
 
7004
 
-
 
7005
  def __init__(self, success=None,):
-
 
7006
    self.success = success
-
 
7007
 
-
 
7008
  def read(self, iprot):
-
 
7009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7011
      return
-
 
7012
    iprot.readStructBegin()
-
 
7013
    while True:
-
 
7014
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7015
      if ftype == TType.STOP:
-
 
7016
        break
-
 
7017
      if fid == 0:
-
 
7018
        if ftype == TType.DOUBLE:
-
 
7019
          self.success = iprot.readDouble();
-
 
7020
        else:
-
 
7021
          iprot.skip(ftype)
-
 
7022
      else:
-
 
7023
        iprot.skip(ftype)
-
 
7024
      iprot.readFieldEnd()
-
 
7025
    iprot.readStructEnd()
-
 
7026
 
-
 
7027
  def write(self, oprot):
-
 
7028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7030
      return
-
 
7031
    oprot.writeStructBegin('getMinValidOrderAmount_result')
-
 
7032
    if self.success != None:
-
 
7033
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
-
 
7034
      oprot.writeDouble(self.success)
-
 
7035
      oprot.writeFieldEnd()
-
 
7036
    oprot.writeFieldStop()
-
 
7037
    oprot.writeStructEnd()
-
 
7038
 
-
 
7039
  def __repr__(self):
6623
    L = ['%s=%r' % (key, value)
7040
    L = ['%s=%r' % (key, value)
6624
      for key, value in self.__dict__.iteritems()]
7041
      for key, value in self.__dict__.iteritems()]
6625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6626
 
7043
 
6627
  def __eq__(self, other):
7044
  def __eq__(self, other):