Subversion Repositories SmartDukaan

Rev

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

Rev 1598 Rev 1629
Line 202... Line 202...
202
    /**
202
    /**
203
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
203
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
204
     */
204
     */
205
    public long getValidOrderCount() throws TException;
205
    public long getValidOrderCount() throws TException;
206
 
206
 
-
 
207
    /**
-
 
208
     * Returns the number of distinct customers who have done successful transactions
-
 
209
     */
-
 
210
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException;
-
 
211
 
-
 
212
    /**
-
 
213
     * Returns the maximum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
214
     */
-
 
215
    public double getMaxValidOrderAmount() throws TException;
-
 
216
 
-
 
217
    /**
-
 
218
     * Returns the minimum amount of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
219
     */
-
 
220
    public double getMinValidOrderAmount() throws TException;
-
 
221
 
207
  }
222
  }
208
 
223
 
209
  public static class Client implements Iface {
224
  public static class Client implements Iface {
210
    public Client(TProtocol prot)
225
    public Client(TProtocol prot)
211
    {
226
    {
Line 1456... Line 1471...
1456
        return result.success;
1471
        return result.success;
1457
      }
1472
      }
1458
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1473
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1459
    }
1474
    }
1460
 
1475
 
-
 
1476
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException
-
 
1477
    {
-
 
1478
      send_getNoOfCustomersWithSuccessfulTransaction();
-
 
1479
      return recv_getNoOfCustomersWithSuccessfulTransaction();
-
 
1480
    }
-
 
1481
 
-
 
1482
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws TException
-
 
1483
    {
-
 
1484
      oprot_.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.CALL, seqid_));
-
 
1485
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
-
 
1486
      args.write(oprot_);
-
 
1487
      oprot_.writeMessageEnd();
-
 
1488
      oprot_.getTransport().flush();
-
 
1489
    }
-
 
1490
 
-
 
1491
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws TException
-
 
1492
    {
-
 
1493
      TMessage msg = iprot_.readMessageBegin();
-
 
1494
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1495
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1496
        iprot_.readMessageEnd();
-
 
1497
        throw x;
-
 
1498
      }
-
 
1499
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
-
 
1500
      result.read(iprot_);
-
 
1501
      iprot_.readMessageEnd();
-
 
1502
      if (result.isSetSuccess()) {
-
 
1503
        return result.success;
-
 
1504
      }
-
 
1505
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
-
 
1506
    }
-
 
1507
 
-
 
1508
    public double getMaxValidOrderAmount() throws TException
-
 
1509
    {
-
 
1510
      send_getMaxValidOrderAmount();
-
 
1511
      return recv_getMaxValidOrderAmount();
-
 
1512
    }
-
 
1513
 
-
 
1514
    public void send_getMaxValidOrderAmount() throws TException
-
 
1515
    {
-
 
1516
      oprot_.writeMessageBegin(new TMessage("getMaxValidOrderAmount", TMessageType.CALL, seqid_));
-
 
1517
      getMaxValidOrderAmount_args args = new getMaxValidOrderAmount_args();
-
 
1518
      args.write(oprot_);
-
 
1519
      oprot_.writeMessageEnd();
-
 
1520
      oprot_.getTransport().flush();
-
 
1521
    }
-
 
1522
 
-
 
1523
    public double recv_getMaxValidOrderAmount() throws TException
-
 
1524
    {
-
 
1525
      TMessage msg = iprot_.readMessageBegin();
-
 
1526
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1527
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1528
        iprot_.readMessageEnd();
-
 
1529
        throw x;
-
 
1530
      }
-
 
1531
      getMaxValidOrderAmount_result result = new getMaxValidOrderAmount_result();
-
 
1532
      result.read(iprot_);
-
 
1533
      iprot_.readMessageEnd();
-
 
1534
      if (result.isSetSuccess()) {
-
 
1535
        return result.success;
-
 
1536
      }
-
 
1537
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMaxValidOrderAmount failed: unknown result");
-
 
1538
    }
-
 
1539
 
-
 
1540
    public double getMinValidOrderAmount() throws TException
-
 
1541
    {
-
 
1542
      send_getMinValidOrderAmount();
-
 
1543
      return recv_getMinValidOrderAmount();
-
 
1544
    }
-
 
1545
 
-
 
1546
    public void send_getMinValidOrderAmount() throws TException
-
 
1547
    {
-
 
1548
      oprot_.writeMessageBegin(new TMessage("getMinValidOrderAmount", TMessageType.CALL, seqid_));
-
 
1549
      getMinValidOrderAmount_args args = new getMinValidOrderAmount_args();
-
 
1550
      args.write(oprot_);
-
 
1551
      oprot_.writeMessageEnd();
-
 
1552
      oprot_.getTransport().flush();
-
 
1553
    }
-
 
1554
 
-
 
1555
    public double recv_getMinValidOrderAmount() throws TException
-
 
1556
    {
-
 
1557
      TMessage msg = iprot_.readMessageBegin();
-
 
1558
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1559
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1560
        iprot_.readMessageEnd();
-
 
1561
        throw x;
-
 
1562
      }
-
 
1563
      getMinValidOrderAmount_result result = new getMinValidOrderAmount_result();
-
 
1564
      result.read(iprot_);
-
 
1565
      iprot_.readMessageEnd();
-
 
1566
      if (result.isSetSuccess()) {
-
 
1567
        return result.success;
-
 
1568
      }
-
 
1569
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMinValidOrderAmount failed: unknown result");
-
 
1570
    }
-
 
1571
 
1461
  }
1572
  }
1462
  public static class Processor implements TProcessor {
1573
  public static class Processor implements TProcessor {
1463
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1574
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1464
    public Processor(Iface iface)
1575
    public Processor(Iface iface)
1465
    {
1576
    {
Line 1496... Line 1607...
1496
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
1607
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
1497
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
1608
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
1498
      processMap_.put("getAlerts", new getAlerts());
1609
      processMap_.put("getAlerts", new getAlerts());
1499
      processMap_.put("setAlert", new setAlert());
1610
      processMap_.put("setAlert", new setAlert());
1500
      processMap_.put("getValidOrderCount", new getValidOrderCount());
1611
      processMap_.put("getValidOrderCount", new getValidOrderCount());
-
 
1612
      processMap_.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
-
 
1613
      processMap_.put("getMaxValidOrderAmount", new getMaxValidOrderAmount());
-
 
1614
      processMap_.put("getMinValidOrderAmount", new getMinValidOrderAmount());
1501
    }
1615
    }
1502
 
1616
 
1503
    protected static interface ProcessFunction {
1617
    protected static interface ProcessFunction {
1504
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1618
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1505
    }
1619
    }
Line 2427... Line 2541...
2427
        oprot.getTransport().flush();
2541
        oprot.getTransport().flush();
2428
      }
2542
      }
2429
 
2543
 
2430
    }
2544
    }
2431
 
2545
 
-
 
2546
    private class getNoOfCustomersWithSuccessfulTransaction implements ProcessFunction {
-
 
2547
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2548
      {
-
 
2549
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
-
 
2550
        args.read(iprot);
-
 
2551
        iprot.readMessageEnd();
-
 
2552
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
-
 
2553
        result.success = iface_.getNoOfCustomersWithSuccessfulTransaction();
-
 
2554
        result.setSuccessIsSet(true);
-
 
2555
        oprot.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid));
-
 
2556
        result.write(oprot);
-
 
2557
        oprot.writeMessageEnd();
-
 
2558
        oprot.getTransport().flush();
-
 
2559
      }
-
 
2560
 
-
 
2561
    }
-
 
2562
 
-
 
2563
    private class getMaxValidOrderAmount implements ProcessFunction {
-
 
2564
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2565
      {
-
 
2566
        getMaxValidOrderAmount_args args = new getMaxValidOrderAmount_args();
-
 
2567
        args.read(iprot);
-
 
2568
        iprot.readMessageEnd();
-
 
2569
        getMaxValidOrderAmount_result result = new getMaxValidOrderAmount_result();
-
 
2570
        result.success = iface_.getMaxValidOrderAmount();
-
 
2571
        result.setSuccessIsSet(true);
-
 
2572
        oprot.writeMessageBegin(new TMessage("getMaxValidOrderAmount", TMessageType.REPLY, seqid));
-
 
2573
        result.write(oprot);
-
 
2574
        oprot.writeMessageEnd();
-
 
2575
        oprot.getTransport().flush();
-
 
2576
      }
-
 
2577
 
-
 
2578
    }
-
 
2579
 
-
 
2580
    private class getMinValidOrderAmount implements ProcessFunction {
-
 
2581
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2582
      {
-
 
2583
        getMinValidOrderAmount_args args = new getMinValidOrderAmount_args();
-
 
2584
        args.read(iprot);
-
 
2585
        iprot.readMessageEnd();
-
 
2586
        getMinValidOrderAmount_result result = new getMinValidOrderAmount_result();
-
 
2587
        result.success = iface_.getMinValidOrderAmount();
-
 
2588
        result.setSuccessIsSet(true);
-
 
2589
        oprot.writeMessageBegin(new TMessage("getMinValidOrderAmount", TMessageType.REPLY, seqid));
-
 
2590
        result.write(oprot);
-
 
2591
        oprot.writeMessageEnd();
-
 
2592
        oprot.getTransport().flush();
-
 
2593
      }
-
 
2594
 
-
 
2595
    }
-
 
2596
 
2432
  }
2597
  }
2433
 
2598
 
2434
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2599
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2435
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2600
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2436
 
2601
 
Line 26591... Line 26756...
26591
      boolean first = true;
26756
      boolean first = true;
26592
 
26757
 
26593
      sb.append("success:");
26758
      sb.append("success:");
26594
      sb.append(this.success);
26759
      sb.append(this.success);
26595
      first = false;
26760
      first = false;
-
 
26761
      sb.append(")");
-
 
26762
      return sb.toString();
-
 
26763
    }
-
 
26764
 
-
 
26765
    public void validate() throws TException {
-
 
26766
      // check for required fields
-
 
26767
    }
-
 
26768
 
-
 
26769
  }
-
 
26770
 
-
 
26771
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements TBase<getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_args>   {
-
 
26772
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
-
 
26773
 
-
 
26774
 
-
 
26775
 
-
 
26776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26777
    public enum _Fields implements TFieldIdEnum {
-
 
26778
;
-
 
26779
 
-
 
26780
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26782
 
-
 
26783
      static {
-
 
26784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26785
          byId.put((int)field._thriftId, field);
-
 
26786
          byName.put(field.getFieldName(), field);
-
 
26787
        }
-
 
26788
      }
-
 
26789
 
-
 
26790
      /**
-
 
26791
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26792
       */
-
 
26793
      public static _Fields findByThriftId(int fieldId) {
-
 
26794
        return byId.get(fieldId);
-
 
26795
      }
-
 
26796
 
-
 
26797
      /**
-
 
26798
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26799
       * if it is not found.
-
 
26800
       */
-
 
26801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26802
        _Fields fields = findByThriftId(fieldId);
-
 
26803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26804
        return fields;
-
 
26805
      }
-
 
26806
 
-
 
26807
      /**
-
 
26808
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26809
       */
-
 
26810
      public static _Fields findByName(String name) {
-
 
26811
        return byName.get(name);
-
 
26812
      }
-
 
26813
 
-
 
26814
      private final short _thriftId;
-
 
26815
      private final String _fieldName;
-
 
26816
 
-
 
26817
      _Fields(short thriftId, String fieldName) {
-
 
26818
        _thriftId = thriftId;
-
 
26819
        _fieldName = fieldName;
-
 
26820
      }
-
 
26821
 
-
 
26822
      public short getThriftFieldId() {
-
 
26823
        return _thriftId;
-
 
26824
      }
-
 
26825
 
-
 
26826
      public String getFieldName() {
-
 
26827
        return _fieldName;
-
 
26828
      }
-
 
26829
    }
-
 
26830
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26831
    }});
-
 
26832
 
-
 
26833
    static {
-
 
26834
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
-
 
26835
    }
-
 
26836
 
-
 
26837
    public getNoOfCustomersWithSuccessfulTransaction_args() {
-
 
26838
    }
-
 
26839
 
-
 
26840
    /**
-
 
26841
     * Performs a deep copy on <i>other</i>.
-
 
26842
     */
-
 
26843
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
26844
    }
-
 
26845
 
-
 
26846
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
-
 
26847
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
26848
    }
-
 
26849
 
-
 
26850
    @Deprecated
-
 
26851
    public getNoOfCustomersWithSuccessfulTransaction_args clone() {
-
 
26852
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
26853
    }
-
 
26854
 
-
 
26855
    public void setFieldValue(_Fields field, Object value) {
-
 
26856
      switch (field) {
-
 
26857
      }
-
 
26858
    }
-
 
26859
 
-
 
26860
    public void setFieldValue(int fieldID, Object value) {
-
 
26861
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
26862
    }
-
 
26863
 
-
 
26864
    public Object getFieldValue(_Fields field) {
-
 
26865
      switch (field) {
-
 
26866
      }
-
 
26867
      throw new IllegalStateException();
-
 
26868
    }
-
 
26869
 
-
 
26870
    public Object getFieldValue(int fieldId) {
-
 
26871
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
26872
    }
-
 
26873
 
-
 
26874
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
26875
    public boolean isSet(_Fields field) {
-
 
26876
      switch (field) {
-
 
26877
      }
-
 
26878
      throw new IllegalStateException();
-
 
26879
    }
-
 
26880
 
-
 
26881
    public boolean isSet(int fieldID) {
-
 
26882
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
26883
    }
-
 
26884
 
-
 
26885
    @Override
-
 
26886
    public boolean equals(Object that) {
-
 
26887
      if (that == null)
-
 
26888
        return false;
-
 
26889
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
-
 
26890
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
-
 
26891
      return false;
-
 
26892
    }
-
 
26893
 
-
 
26894
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
-
 
26895
      if (that == null)
-
 
26896
        return false;
-
 
26897
 
-
 
26898
      return true;
-
 
26899
    }
-
 
26900
 
-
 
26901
    @Override
-
 
26902
    public int hashCode() {
-
 
26903
      return 0;
-
 
26904
    }
-
 
26905
 
-
 
26906
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
26907
      if (!getClass().equals(other.getClass())) {
-
 
26908
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26909
      }
-
 
26910
 
-
 
26911
      int lastComparison = 0;
-
 
26912
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
-
 
26913
 
-
 
26914
      return 0;
-
 
26915
    }
-
 
26916
 
-
 
26917
    public void read(TProtocol iprot) throws TException {
-
 
26918
      TField field;
-
 
26919
      iprot.readStructBegin();
-
 
26920
      while (true)
-
 
26921
      {
-
 
26922
        field = iprot.readFieldBegin();
-
 
26923
        if (field.type == TType.STOP) { 
-
 
26924
          break;
-
 
26925
        }
-
 
26926
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
26927
        if (fieldId == null) {
-
 
26928
          TProtocolUtil.skip(iprot, field.type);
-
 
26929
        } else {
-
 
26930
          switch (fieldId) {
-
 
26931
          }
-
 
26932
          iprot.readFieldEnd();
-
 
26933
        }
-
 
26934
      }
-
 
26935
      iprot.readStructEnd();
-
 
26936
      validate();
-
 
26937
    }
-
 
26938
 
-
 
26939
    public void write(TProtocol oprot) throws TException {
-
 
26940
      validate();
-
 
26941
 
-
 
26942
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26943
      oprot.writeFieldStop();
-
 
26944
      oprot.writeStructEnd();
-
 
26945
    }
-
 
26946
 
-
 
26947
    @Override
-
 
26948
    public String toString() {
-
 
26949
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
-
 
26950
      boolean first = true;
-
 
26951
 
-
 
26952
      sb.append(")");
-
 
26953
      return sb.toString();
-
 
26954
    }
-
 
26955
 
-
 
26956
    public void validate() throws TException {
-
 
26957
      // check for required fields
-
 
26958
    }
-
 
26959
 
-
 
26960
  }
-
 
26961
 
-
 
26962
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements TBase<getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_result>   {
-
 
26963
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
-
 
26964
 
-
 
26965
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
26966
 
-
 
26967
    private long success;
-
 
26968
 
-
 
26969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26970
    public enum _Fields implements TFieldIdEnum {
-
 
26971
      SUCCESS((short)0, "success");
-
 
26972
 
-
 
26973
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26974
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26975
 
-
 
26976
      static {
-
 
26977
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26978
          byId.put((int)field._thriftId, field);
-
 
26979
          byName.put(field.getFieldName(), field);
-
 
26980
        }
-
 
26981
      }
-
 
26982
 
-
 
26983
      /**
-
 
26984
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26985
       */
-
 
26986
      public static _Fields findByThriftId(int fieldId) {
-
 
26987
        return byId.get(fieldId);
-
 
26988
      }
-
 
26989
 
-
 
26990
      /**
-
 
26991
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26992
       * if it is not found.
-
 
26993
       */
-
 
26994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26995
        _Fields fields = findByThriftId(fieldId);
-
 
26996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26997
        return fields;
-
 
26998
      }
-
 
26999
 
-
 
27000
      /**
-
 
27001
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27002
       */
-
 
27003
      public static _Fields findByName(String name) {
-
 
27004
        return byName.get(name);
-
 
27005
      }
-
 
27006
 
-
 
27007
      private final short _thriftId;
-
 
27008
      private final String _fieldName;
-
 
27009
 
-
 
27010
      _Fields(short thriftId, String fieldName) {
-
 
27011
        _thriftId = thriftId;
-
 
27012
        _fieldName = fieldName;
-
 
27013
      }
-
 
27014
 
-
 
27015
      public short getThriftFieldId() {
-
 
27016
        return _thriftId;
-
 
27017
      }
-
 
27018
 
-
 
27019
      public String getFieldName() {
-
 
27020
        return _fieldName;
-
 
27021
      }
-
 
27022
    }
-
 
27023
 
-
 
27024
    // isset id assignments
-
 
27025
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
27026
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27027
 
-
 
27028
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27029
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
27030
          new FieldValueMetaData(TType.I64)));
-
 
27031
    }});
-
 
27032
 
-
 
27033
    static {
-
 
27034
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
-
 
27035
    }
-
 
27036
 
-
 
27037
    public getNoOfCustomersWithSuccessfulTransaction_result() {
-
 
27038
    }
-
 
27039
 
-
 
27040
    public getNoOfCustomersWithSuccessfulTransaction_result(
-
 
27041
      long success)
-
 
27042
    {
-
 
27043
      this();
-
 
27044
      this.success = success;
-
 
27045
      setSuccessIsSet(true);
-
 
27046
    }
-
 
27047
 
-
 
27048
    /**
-
 
27049
     * Performs a deep copy on <i>other</i>.
-
 
27050
     */
-
 
27051
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
-
 
27052
      __isset_bit_vector.clear();
-
 
27053
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27054
      this.success = other.success;
-
 
27055
    }
-
 
27056
 
-
 
27057
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
-
 
27058
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
-
 
27059
    }
-
 
27060
 
-
 
27061
    @Deprecated
-
 
27062
    public getNoOfCustomersWithSuccessfulTransaction_result clone() {
-
 
27063
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
-
 
27064
    }
-
 
27065
 
-
 
27066
    public long getSuccess() {
-
 
27067
      return this.success;
-
 
27068
    }
-
 
27069
 
-
 
27070
    public getNoOfCustomersWithSuccessfulTransaction_result setSuccess(long success) {
-
 
27071
      this.success = success;
-
 
27072
      setSuccessIsSet(true);
-
 
27073
      return this;
-
 
27074
    }
-
 
27075
 
-
 
27076
    public void unsetSuccess() {
-
 
27077
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
27078
    }
-
 
27079
 
-
 
27080
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
27081
    public boolean isSetSuccess() {
-
 
27082
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
27083
    }
-
 
27084
 
-
 
27085
    public void setSuccessIsSet(boolean value) {
-
 
27086
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
27087
    }
-
 
27088
 
-
 
27089
    public void setFieldValue(_Fields field, Object value) {
-
 
27090
      switch (field) {
-
 
27091
      case SUCCESS:
-
 
27092
        if (value == null) {
-
 
27093
          unsetSuccess();
-
 
27094
        } else {
-
 
27095
          setSuccess((Long)value);
-
 
27096
        }
-
 
27097
        break;
-
 
27098
 
-
 
27099
      }
-
 
27100
    }
-
 
27101
 
-
 
27102
    public void setFieldValue(int fieldID, Object value) {
-
 
27103
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27104
    }
-
 
27105
 
-
 
27106
    public Object getFieldValue(_Fields field) {
-
 
27107
      switch (field) {
-
 
27108
      case SUCCESS:
-
 
27109
        return new Long(getSuccess());
-
 
27110
 
-
 
27111
      }
-
 
27112
      throw new IllegalStateException();
-
 
27113
    }
-
 
27114
 
-
 
27115
    public Object getFieldValue(int fieldId) {
-
 
27116
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27117
    }
-
 
27118
 
-
 
27119
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27120
    public boolean isSet(_Fields field) {
-
 
27121
      switch (field) {
-
 
27122
      case SUCCESS:
-
 
27123
        return isSetSuccess();
-
 
27124
      }
-
 
27125
      throw new IllegalStateException();
-
 
27126
    }
-
 
27127
 
-
 
27128
    public boolean isSet(int fieldID) {
-
 
27129
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27130
    }
-
 
27131
 
-
 
27132
    @Override
-
 
27133
    public boolean equals(Object that) {
-
 
27134
      if (that == null)
-
 
27135
        return false;
-
 
27136
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
-
 
27137
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
-
 
27138
      return false;
-
 
27139
    }
-
 
27140
 
-
 
27141
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
-
 
27142
      if (that == null)
-
 
27143
        return false;
-
 
27144
 
-
 
27145
      boolean this_present_success = true;
-
 
27146
      boolean that_present_success = true;
-
 
27147
      if (this_present_success || that_present_success) {
-
 
27148
        if (!(this_present_success && that_present_success))
-
 
27149
          return false;
-
 
27150
        if (this.success != that.success)
-
 
27151
          return false;
-
 
27152
      }
-
 
27153
 
-
 
27154
      return true;
-
 
27155
    }
-
 
27156
 
-
 
27157
    @Override
-
 
27158
    public int hashCode() {
-
 
27159
      return 0;
-
 
27160
    }
-
 
27161
 
-
 
27162
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
-
 
27163
      if (!getClass().equals(other.getClass())) {
-
 
27164
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27165
      }
-
 
27166
 
-
 
27167
      int lastComparison = 0;
-
 
27168
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
-
 
27169
 
-
 
27170
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
27171
      if (lastComparison != 0) {
-
 
27172
        return lastComparison;
-
 
27173
      }
-
 
27174
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
27175
      if (lastComparison != 0) {
-
 
27176
        return lastComparison;
-
 
27177
      }
-
 
27178
      return 0;
-
 
27179
    }
-
 
27180
 
-
 
27181
    public void read(TProtocol iprot) throws TException {
-
 
27182
      TField field;
-
 
27183
      iprot.readStructBegin();
-
 
27184
      while (true)
-
 
27185
      {
-
 
27186
        field = iprot.readFieldBegin();
-
 
27187
        if (field.type == TType.STOP) { 
-
 
27188
          break;
-
 
27189
        }
-
 
27190
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27191
        if (fieldId == null) {
-
 
27192
          TProtocolUtil.skip(iprot, field.type);
-
 
27193
        } else {
-
 
27194
          switch (fieldId) {
-
 
27195
            case SUCCESS:
-
 
27196
              if (field.type == TType.I64) {
-
 
27197
                this.success = iprot.readI64();
-
 
27198
                setSuccessIsSet(true);
-
 
27199
              } else { 
-
 
27200
                TProtocolUtil.skip(iprot, field.type);
-
 
27201
              }
-
 
27202
              break;
-
 
27203
          }
-
 
27204
          iprot.readFieldEnd();
-
 
27205
        }
-
 
27206
      }
-
 
27207
      iprot.readStructEnd();
-
 
27208
      validate();
-
 
27209
    }
-
 
27210
 
-
 
27211
    public void write(TProtocol oprot) throws TException {
-
 
27212
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27213
 
-
 
27214
      if (this.isSetSuccess()) {
-
 
27215
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
27216
        oprot.writeI64(this.success);
-
 
27217
        oprot.writeFieldEnd();
-
 
27218
      }
-
 
27219
      oprot.writeFieldStop();
-
 
27220
      oprot.writeStructEnd();
-
 
27221
    }
-
 
27222
 
-
 
27223
    @Override
-
 
27224
    public String toString() {
-
 
27225
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
-
 
27226
      boolean first = true;
-
 
27227
 
-
 
27228
      sb.append("success:");
-
 
27229
      sb.append(this.success);
-
 
27230
      first = false;
-
 
27231
      sb.append(")");
-
 
27232
      return sb.toString();
-
 
27233
    }
-
 
27234
 
-
 
27235
    public void validate() throws TException {
-
 
27236
      // check for required fields
-
 
27237
    }
-
 
27238
 
-
 
27239
  }
-
 
27240
 
-
 
27241
  public static class getMaxValidOrderAmount_args implements TBase<getMaxValidOrderAmount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMaxValidOrderAmount_args>   {
-
 
27242
    private static final TStruct STRUCT_DESC = new TStruct("getMaxValidOrderAmount_args");
-
 
27243
 
-
 
27244
 
-
 
27245
 
-
 
27246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27247
    public enum _Fields implements TFieldIdEnum {
-
 
27248
;
-
 
27249
 
-
 
27250
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27252
 
-
 
27253
      static {
-
 
27254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27255
          byId.put((int)field._thriftId, field);
-
 
27256
          byName.put(field.getFieldName(), field);
-
 
27257
        }
-
 
27258
      }
-
 
27259
 
-
 
27260
      /**
-
 
27261
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27262
       */
-
 
27263
      public static _Fields findByThriftId(int fieldId) {
-
 
27264
        return byId.get(fieldId);
-
 
27265
      }
-
 
27266
 
-
 
27267
      /**
-
 
27268
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27269
       * if it is not found.
-
 
27270
       */
-
 
27271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27272
        _Fields fields = findByThriftId(fieldId);
-
 
27273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27274
        return fields;
-
 
27275
      }
-
 
27276
 
-
 
27277
      /**
-
 
27278
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27279
       */
-
 
27280
      public static _Fields findByName(String name) {
-
 
27281
        return byName.get(name);
-
 
27282
      }
-
 
27283
 
-
 
27284
      private final short _thriftId;
-
 
27285
      private final String _fieldName;
-
 
27286
 
-
 
27287
      _Fields(short thriftId, String fieldName) {
-
 
27288
        _thriftId = thriftId;
-
 
27289
        _fieldName = fieldName;
-
 
27290
      }
-
 
27291
 
-
 
27292
      public short getThriftFieldId() {
-
 
27293
        return _thriftId;
-
 
27294
      }
-
 
27295
 
-
 
27296
      public String getFieldName() {
-
 
27297
        return _fieldName;
-
 
27298
      }
-
 
27299
    }
-
 
27300
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27301
    }});
-
 
27302
 
-
 
27303
    static {
-
 
27304
      FieldMetaData.addStructMetaDataMap(getMaxValidOrderAmount_args.class, metaDataMap);
-
 
27305
    }
-
 
27306
 
-
 
27307
    public getMaxValidOrderAmount_args() {
-
 
27308
    }
-
 
27309
 
-
 
27310
    /**
-
 
27311
     * Performs a deep copy on <i>other</i>.
-
 
27312
     */
-
 
27313
    public getMaxValidOrderAmount_args(getMaxValidOrderAmount_args other) {
-
 
27314
    }
-
 
27315
 
-
 
27316
    public getMaxValidOrderAmount_args deepCopy() {
-
 
27317
      return new getMaxValidOrderAmount_args(this);
-
 
27318
    }
-
 
27319
 
-
 
27320
    @Deprecated
-
 
27321
    public getMaxValidOrderAmount_args clone() {
-
 
27322
      return new getMaxValidOrderAmount_args(this);
-
 
27323
    }
-
 
27324
 
-
 
27325
    public void setFieldValue(_Fields field, Object value) {
-
 
27326
      switch (field) {
-
 
27327
      }
-
 
27328
    }
-
 
27329
 
-
 
27330
    public void setFieldValue(int fieldID, Object value) {
-
 
27331
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27332
    }
-
 
27333
 
-
 
27334
    public Object getFieldValue(_Fields field) {
-
 
27335
      switch (field) {
-
 
27336
      }
-
 
27337
      throw new IllegalStateException();
-
 
27338
    }
-
 
27339
 
-
 
27340
    public Object getFieldValue(int fieldId) {
-
 
27341
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27342
    }
-
 
27343
 
-
 
27344
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27345
    public boolean isSet(_Fields field) {
-
 
27346
      switch (field) {
-
 
27347
      }
-
 
27348
      throw new IllegalStateException();
-
 
27349
    }
-
 
27350
 
-
 
27351
    public boolean isSet(int fieldID) {
-
 
27352
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27353
    }
-
 
27354
 
-
 
27355
    @Override
-
 
27356
    public boolean equals(Object that) {
-
 
27357
      if (that == null)
-
 
27358
        return false;
-
 
27359
      if (that instanceof getMaxValidOrderAmount_args)
-
 
27360
        return this.equals((getMaxValidOrderAmount_args)that);
-
 
27361
      return false;
-
 
27362
    }
-
 
27363
 
-
 
27364
    public boolean equals(getMaxValidOrderAmount_args that) {
-
 
27365
      if (that == null)
-
 
27366
        return false;
-
 
27367
 
-
 
27368
      return true;
-
 
27369
    }
-
 
27370
 
-
 
27371
    @Override
-
 
27372
    public int hashCode() {
-
 
27373
      return 0;
-
 
27374
    }
-
 
27375
 
-
 
27376
    public int compareTo(getMaxValidOrderAmount_args other) {
-
 
27377
      if (!getClass().equals(other.getClass())) {
-
 
27378
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27379
      }
-
 
27380
 
-
 
27381
      int lastComparison = 0;
-
 
27382
      getMaxValidOrderAmount_args typedOther = (getMaxValidOrderAmount_args)other;
-
 
27383
 
-
 
27384
      return 0;
-
 
27385
    }
-
 
27386
 
-
 
27387
    public void read(TProtocol iprot) throws TException {
-
 
27388
      TField field;
-
 
27389
      iprot.readStructBegin();
-
 
27390
      while (true)
-
 
27391
      {
-
 
27392
        field = iprot.readFieldBegin();
-
 
27393
        if (field.type == TType.STOP) { 
-
 
27394
          break;
-
 
27395
        }
-
 
27396
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27397
        if (fieldId == null) {
-
 
27398
          TProtocolUtil.skip(iprot, field.type);
-
 
27399
        } else {
-
 
27400
          switch (fieldId) {
-
 
27401
          }
-
 
27402
          iprot.readFieldEnd();
-
 
27403
        }
-
 
27404
      }
-
 
27405
      iprot.readStructEnd();
-
 
27406
      validate();
-
 
27407
    }
-
 
27408
 
-
 
27409
    public void write(TProtocol oprot) throws TException {
-
 
27410
      validate();
-
 
27411
 
-
 
27412
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27413
      oprot.writeFieldStop();
-
 
27414
      oprot.writeStructEnd();
-
 
27415
    }
-
 
27416
 
-
 
27417
    @Override
-
 
27418
    public String toString() {
-
 
27419
      StringBuilder sb = new StringBuilder("getMaxValidOrderAmount_args(");
-
 
27420
      boolean first = true;
-
 
27421
 
-
 
27422
      sb.append(")");
-
 
27423
      return sb.toString();
-
 
27424
    }
-
 
27425
 
-
 
27426
    public void validate() throws TException {
-
 
27427
      // check for required fields
-
 
27428
    }
-
 
27429
 
-
 
27430
  }
-
 
27431
 
-
 
27432
  public static class getMaxValidOrderAmount_result implements TBase<getMaxValidOrderAmount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMaxValidOrderAmount_result>   {
-
 
27433
    private static final TStruct STRUCT_DESC = new TStruct("getMaxValidOrderAmount_result");
-
 
27434
 
-
 
27435
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.DOUBLE, (short)0);
-
 
27436
 
-
 
27437
    private double success;
-
 
27438
 
-
 
27439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27440
    public enum _Fields implements TFieldIdEnum {
-
 
27441
      SUCCESS((short)0, "success");
-
 
27442
 
-
 
27443
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27445
 
-
 
27446
      static {
-
 
27447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27448
          byId.put((int)field._thriftId, field);
-
 
27449
          byName.put(field.getFieldName(), field);
-
 
27450
        }
-
 
27451
      }
-
 
27452
 
-
 
27453
      /**
-
 
27454
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27455
       */
-
 
27456
      public static _Fields findByThriftId(int fieldId) {
-
 
27457
        return byId.get(fieldId);
-
 
27458
      }
-
 
27459
 
-
 
27460
      /**
-
 
27461
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27462
       * if it is not found.
-
 
27463
       */
-
 
27464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27465
        _Fields fields = findByThriftId(fieldId);
-
 
27466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27467
        return fields;
-
 
27468
      }
-
 
27469
 
-
 
27470
      /**
-
 
27471
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27472
       */
-
 
27473
      public static _Fields findByName(String name) {
-
 
27474
        return byName.get(name);
-
 
27475
      }
-
 
27476
 
-
 
27477
      private final short _thriftId;
-
 
27478
      private final String _fieldName;
-
 
27479
 
-
 
27480
      _Fields(short thriftId, String fieldName) {
-
 
27481
        _thriftId = thriftId;
-
 
27482
        _fieldName = fieldName;
-
 
27483
      }
-
 
27484
 
-
 
27485
      public short getThriftFieldId() {
-
 
27486
        return _thriftId;
-
 
27487
      }
-
 
27488
 
-
 
27489
      public String getFieldName() {
-
 
27490
        return _fieldName;
-
 
27491
      }
-
 
27492
    }
-
 
27493
 
-
 
27494
    // isset id assignments
-
 
27495
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
27496
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27497
 
-
 
27498
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27499
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
27500
          new FieldValueMetaData(TType.DOUBLE)));
-
 
27501
    }});
-
 
27502
 
-
 
27503
    static {
-
 
27504
      FieldMetaData.addStructMetaDataMap(getMaxValidOrderAmount_result.class, metaDataMap);
-
 
27505
    }
-
 
27506
 
-
 
27507
    public getMaxValidOrderAmount_result() {
-
 
27508
    }
-
 
27509
 
-
 
27510
    public getMaxValidOrderAmount_result(
-
 
27511
      double success)
-
 
27512
    {
-
 
27513
      this();
-
 
27514
      this.success = success;
-
 
27515
      setSuccessIsSet(true);
-
 
27516
    }
-
 
27517
 
-
 
27518
    /**
-
 
27519
     * Performs a deep copy on <i>other</i>.
-
 
27520
     */
-
 
27521
    public getMaxValidOrderAmount_result(getMaxValidOrderAmount_result other) {
-
 
27522
      __isset_bit_vector.clear();
-
 
27523
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27524
      this.success = other.success;
-
 
27525
    }
-
 
27526
 
-
 
27527
    public getMaxValidOrderAmount_result deepCopy() {
-
 
27528
      return new getMaxValidOrderAmount_result(this);
-
 
27529
    }
-
 
27530
 
-
 
27531
    @Deprecated
-
 
27532
    public getMaxValidOrderAmount_result clone() {
-
 
27533
      return new getMaxValidOrderAmount_result(this);
-
 
27534
    }
-
 
27535
 
-
 
27536
    public double getSuccess() {
-
 
27537
      return this.success;
-
 
27538
    }
-
 
27539
 
-
 
27540
    public getMaxValidOrderAmount_result setSuccess(double success) {
-
 
27541
      this.success = success;
-
 
27542
      setSuccessIsSet(true);
-
 
27543
      return this;
-
 
27544
    }
-
 
27545
 
-
 
27546
    public void unsetSuccess() {
-
 
27547
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
27548
    }
-
 
27549
 
-
 
27550
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
27551
    public boolean isSetSuccess() {
-
 
27552
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
27553
    }
-
 
27554
 
-
 
27555
    public void setSuccessIsSet(boolean value) {
-
 
27556
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
27557
    }
-
 
27558
 
-
 
27559
    public void setFieldValue(_Fields field, Object value) {
-
 
27560
      switch (field) {
-
 
27561
      case SUCCESS:
-
 
27562
        if (value == null) {
-
 
27563
          unsetSuccess();
-
 
27564
        } else {
-
 
27565
          setSuccess((Double)value);
-
 
27566
        }
-
 
27567
        break;
-
 
27568
 
-
 
27569
      }
-
 
27570
    }
-
 
27571
 
-
 
27572
    public void setFieldValue(int fieldID, Object value) {
-
 
27573
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27574
    }
-
 
27575
 
-
 
27576
    public Object getFieldValue(_Fields field) {
-
 
27577
      switch (field) {
-
 
27578
      case SUCCESS:
-
 
27579
        return new Double(getSuccess());
-
 
27580
 
-
 
27581
      }
-
 
27582
      throw new IllegalStateException();
-
 
27583
    }
-
 
27584
 
-
 
27585
    public Object getFieldValue(int fieldId) {
-
 
27586
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27587
    }
-
 
27588
 
-
 
27589
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27590
    public boolean isSet(_Fields field) {
-
 
27591
      switch (field) {
-
 
27592
      case SUCCESS:
-
 
27593
        return isSetSuccess();
-
 
27594
      }
-
 
27595
      throw new IllegalStateException();
-
 
27596
    }
-
 
27597
 
-
 
27598
    public boolean isSet(int fieldID) {
-
 
27599
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27600
    }
-
 
27601
 
-
 
27602
    @Override
-
 
27603
    public boolean equals(Object that) {
-
 
27604
      if (that == null)
-
 
27605
        return false;
-
 
27606
      if (that instanceof getMaxValidOrderAmount_result)
-
 
27607
        return this.equals((getMaxValidOrderAmount_result)that);
-
 
27608
      return false;
-
 
27609
    }
-
 
27610
 
-
 
27611
    public boolean equals(getMaxValidOrderAmount_result that) {
-
 
27612
      if (that == null)
-
 
27613
        return false;
-
 
27614
 
-
 
27615
      boolean this_present_success = true;
-
 
27616
      boolean that_present_success = true;
-
 
27617
      if (this_present_success || that_present_success) {
-
 
27618
        if (!(this_present_success && that_present_success))
-
 
27619
          return false;
-
 
27620
        if (this.success != that.success)
-
 
27621
          return false;
-
 
27622
      }
-
 
27623
 
-
 
27624
      return true;
-
 
27625
    }
-
 
27626
 
-
 
27627
    @Override
-
 
27628
    public int hashCode() {
-
 
27629
      return 0;
-
 
27630
    }
-
 
27631
 
-
 
27632
    public int compareTo(getMaxValidOrderAmount_result other) {
-
 
27633
      if (!getClass().equals(other.getClass())) {
-
 
27634
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27635
      }
-
 
27636
 
-
 
27637
      int lastComparison = 0;
-
 
27638
      getMaxValidOrderAmount_result typedOther = (getMaxValidOrderAmount_result)other;
-
 
27639
 
-
 
27640
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
27641
      if (lastComparison != 0) {
-
 
27642
        return lastComparison;
-
 
27643
      }
-
 
27644
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
27645
      if (lastComparison != 0) {
-
 
27646
        return lastComparison;
-
 
27647
      }
-
 
27648
      return 0;
-
 
27649
    }
-
 
27650
 
-
 
27651
    public void read(TProtocol iprot) throws TException {
-
 
27652
      TField field;
-
 
27653
      iprot.readStructBegin();
-
 
27654
      while (true)
-
 
27655
      {
-
 
27656
        field = iprot.readFieldBegin();
-
 
27657
        if (field.type == TType.STOP) { 
-
 
27658
          break;
-
 
27659
        }
-
 
27660
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27661
        if (fieldId == null) {
-
 
27662
          TProtocolUtil.skip(iprot, field.type);
-
 
27663
        } else {
-
 
27664
          switch (fieldId) {
-
 
27665
            case SUCCESS:
-
 
27666
              if (field.type == TType.DOUBLE) {
-
 
27667
                this.success = iprot.readDouble();
-
 
27668
                setSuccessIsSet(true);
-
 
27669
              } else { 
-
 
27670
                TProtocolUtil.skip(iprot, field.type);
-
 
27671
              }
-
 
27672
              break;
-
 
27673
          }
-
 
27674
          iprot.readFieldEnd();
-
 
27675
        }
-
 
27676
      }
-
 
27677
      iprot.readStructEnd();
-
 
27678
      validate();
-
 
27679
    }
-
 
27680
 
-
 
27681
    public void write(TProtocol oprot) throws TException {
-
 
27682
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27683
 
-
 
27684
      if (this.isSetSuccess()) {
-
 
27685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
27686
        oprot.writeDouble(this.success);
-
 
27687
        oprot.writeFieldEnd();
-
 
27688
      }
-
 
27689
      oprot.writeFieldStop();
-
 
27690
      oprot.writeStructEnd();
-
 
27691
    }
-
 
27692
 
-
 
27693
    @Override
-
 
27694
    public String toString() {
-
 
27695
      StringBuilder sb = new StringBuilder("getMaxValidOrderAmount_result(");
-
 
27696
      boolean first = true;
-
 
27697
 
-
 
27698
      sb.append("success:");
-
 
27699
      sb.append(this.success);
-
 
27700
      first = false;
-
 
27701
      sb.append(")");
-
 
27702
      return sb.toString();
-
 
27703
    }
-
 
27704
 
-
 
27705
    public void validate() throws TException {
-
 
27706
      // check for required fields
-
 
27707
    }
-
 
27708
 
-
 
27709
  }
-
 
27710
 
-
 
27711
  public static class getMinValidOrderAmount_args implements TBase<getMinValidOrderAmount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMinValidOrderAmount_args>   {
-
 
27712
    private static final TStruct STRUCT_DESC = new TStruct("getMinValidOrderAmount_args");
-
 
27713
 
-
 
27714
 
-
 
27715
 
-
 
27716
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27717
    public enum _Fields implements TFieldIdEnum {
-
 
27718
;
-
 
27719
 
-
 
27720
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27722
 
-
 
27723
      static {
-
 
27724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27725
          byId.put((int)field._thriftId, field);
-
 
27726
          byName.put(field.getFieldName(), field);
-
 
27727
        }
-
 
27728
      }
-
 
27729
 
-
 
27730
      /**
-
 
27731
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27732
       */
-
 
27733
      public static _Fields findByThriftId(int fieldId) {
-
 
27734
        return byId.get(fieldId);
-
 
27735
      }
-
 
27736
 
-
 
27737
      /**
-
 
27738
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27739
       * if it is not found.
-
 
27740
       */
-
 
27741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27742
        _Fields fields = findByThriftId(fieldId);
-
 
27743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27744
        return fields;
-
 
27745
      }
-
 
27746
 
-
 
27747
      /**
-
 
27748
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27749
       */
-
 
27750
      public static _Fields findByName(String name) {
-
 
27751
        return byName.get(name);
-
 
27752
      }
-
 
27753
 
-
 
27754
      private final short _thriftId;
-
 
27755
      private final String _fieldName;
-
 
27756
 
-
 
27757
      _Fields(short thriftId, String fieldName) {
-
 
27758
        _thriftId = thriftId;
-
 
27759
        _fieldName = fieldName;
-
 
27760
      }
-
 
27761
 
-
 
27762
      public short getThriftFieldId() {
-
 
27763
        return _thriftId;
-
 
27764
      }
-
 
27765
 
-
 
27766
      public String getFieldName() {
-
 
27767
        return _fieldName;
-
 
27768
      }
-
 
27769
    }
-
 
27770
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27771
    }});
-
 
27772
 
-
 
27773
    static {
-
 
27774
      FieldMetaData.addStructMetaDataMap(getMinValidOrderAmount_args.class, metaDataMap);
-
 
27775
    }
-
 
27776
 
-
 
27777
    public getMinValidOrderAmount_args() {
-
 
27778
    }
-
 
27779
 
-
 
27780
    /**
-
 
27781
     * Performs a deep copy on <i>other</i>.
-
 
27782
     */
-
 
27783
    public getMinValidOrderAmount_args(getMinValidOrderAmount_args other) {
-
 
27784
    }
-
 
27785
 
-
 
27786
    public getMinValidOrderAmount_args deepCopy() {
-
 
27787
      return new getMinValidOrderAmount_args(this);
-
 
27788
    }
-
 
27789
 
-
 
27790
    @Deprecated
-
 
27791
    public getMinValidOrderAmount_args clone() {
-
 
27792
      return new getMinValidOrderAmount_args(this);
-
 
27793
    }
-
 
27794
 
-
 
27795
    public void setFieldValue(_Fields field, Object value) {
-
 
27796
      switch (field) {
-
 
27797
      }
-
 
27798
    }
-
 
27799
 
-
 
27800
    public void setFieldValue(int fieldID, Object value) {
-
 
27801
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27802
    }
-
 
27803
 
-
 
27804
    public Object getFieldValue(_Fields field) {
-
 
27805
      switch (field) {
-
 
27806
      }
-
 
27807
      throw new IllegalStateException();
-
 
27808
    }
-
 
27809
 
-
 
27810
    public Object getFieldValue(int fieldId) {
-
 
27811
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
27812
    }
-
 
27813
 
-
 
27814
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27815
    public boolean isSet(_Fields field) {
-
 
27816
      switch (field) {
-
 
27817
      }
-
 
27818
      throw new IllegalStateException();
-
 
27819
    }
-
 
27820
 
-
 
27821
    public boolean isSet(int fieldID) {
-
 
27822
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
27823
    }
-
 
27824
 
-
 
27825
    @Override
-
 
27826
    public boolean equals(Object that) {
-
 
27827
      if (that == null)
-
 
27828
        return false;
-
 
27829
      if (that instanceof getMinValidOrderAmount_args)
-
 
27830
        return this.equals((getMinValidOrderAmount_args)that);
-
 
27831
      return false;
-
 
27832
    }
-
 
27833
 
-
 
27834
    public boolean equals(getMinValidOrderAmount_args that) {
-
 
27835
      if (that == null)
-
 
27836
        return false;
-
 
27837
 
-
 
27838
      return true;
-
 
27839
    }
-
 
27840
 
-
 
27841
    @Override
-
 
27842
    public int hashCode() {
-
 
27843
      return 0;
-
 
27844
    }
-
 
27845
 
-
 
27846
    public int compareTo(getMinValidOrderAmount_args other) {
-
 
27847
      if (!getClass().equals(other.getClass())) {
-
 
27848
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27849
      }
-
 
27850
 
-
 
27851
      int lastComparison = 0;
-
 
27852
      getMinValidOrderAmount_args typedOther = (getMinValidOrderAmount_args)other;
-
 
27853
 
-
 
27854
      return 0;
-
 
27855
    }
-
 
27856
 
-
 
27857
    public void read(TProtocol iprot) throws TException {
-
 
27858
      TField field;
-
 
27859
      iprot.readStructBegin();
-
 
27860
      while (true)
-
 
27861
      {
-
 
27862
        field = iprot.readFieldBegin();
-
 
27863
        if (field.type == TType.STOP) { 
-
 
27864
          break;
-
 
27865
        }
-
 
27866
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27867
        if (fieldId == null) {
-
 
27868
          TProtocolUtil.skip(iprot, field.type);
-
 
27869
        } else {
-
 
27870
          switch (fieldId) {
-
 
27871
          }
-
 
27872
          iprot.readFieldEnd();
-
 
27873
        }
-
 
27874
      }
-
 
27875
      iprot.readStructEnd();
-
 
27876
      validate();
-
 
27877
    }
-
 
27878
 
-
 
27879
    public void write(TProtocol oprot) throws TException {
-
 
27880
      validate();
-
 
27881
 
-
 
27882
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27883
      oprot.writeFieldStop();
-
 
27884
      oprot.writeStructEnd();
-
 
27885
    }
-
 
27886
 
-
 
27887
    @Override
-
 
27888
    public String toString() {
-
 
27889
      StringBuilder sb = new StringBuilder("getMinValidOrderAmount_args(");
-
 
27890
      boolean first = true;
-
 
27891
 
-
 
27892
      sb.append(")");
-
 
27893
      return sb.toString();
-
 
27894
    }
-
 
27895
 
-
 
27896
    public void validate() throws TException {
-
 
27897
      // check for required fields
-
 
27898
    }
-
 
27899
 
-
 
27900
  }
-
 
27901
 
-
 
27902
  public static class getMinValidOrderAmount_result implements TBase<getMinValidOrderAmount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMinValidOrderAmount_result>   {
-
 
27903
    private static final TStruct STRUCT_DESC = new TStruct("getMinValidOrderAmount_result");
-
 
27904
 
-
 
27905
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.DOUBLE, (short)0);
-
 
27906
 
-
 
27907
    private double success;
-
 
27908
 
-
 
27909
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27910
    public enum _Fields implements TFieldIdEnum {
-
 
27911
      SUCCESS((short)0, "success");
-
 
27912
 
-
 
27913
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27914
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27915
 
-
 
27916
      static {
-
 
27917
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27918
          byId.put((int)field._thriftId, field);
-
 
27919
          byName.put(field.getFieldName(), field);
-
 
27920
        }
-
 
27921
      }
-
 
27922
 
-
 
27923
      /**
-
 
27924
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27925
       */
-
 
27926
      public static _Fields findByThriftId(int fieldId) {
-
 
27927
        return byId.get(fieldId);
-
 
27928
      }
-
 
27929
 
-
 
27930
      /**
-
 
27931
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27932
       * if it is not found.
-
 
27933
       */
-
 
27934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27935
        _Fields fields = findByThriftId(fieldId);
-
 
27936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27937
        return fields;
-
 
27938
      }
-
 
27939
 
-
 
27940
      /**
-
 
27941
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27942
       */
-
 
27943
      public static _Fields findByName(String name) {
-
 
27944
        return byName.get(name);
-
 
27945
      }
-
 
27946
 
-
 
27947
      private final short _thriftId;
-
 
27948
      private final String _fieldName;
-
 
27949
 
-
 
27950
      _Fields(short thriftId, String fieldName) {
-
 
27951
        _thriftId = thriftId;
-
 
27952
        _fieldName = fieldName;
-
 
27953
      }
-
 
27954
 
-
 
27955
      public short getThriftFieldId() {
-
 
27956
        return _thriftId;
-
 
27957
      }
-
 
27958
 
-
 
27959
      public String getFieldName() {
-
 
27960
        return _fieldName;
-
 
27961
      }
-
 
27962
    }
-
 
27963
 
-
 
27964
    // isset id assignments
-
 
27965
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
27966
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27967
 
-
 
27968
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27969
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
27970
          new FieldValueMetaData(TType.DOUBLE)));
-
 
27971
    }});
-
 
27972
 
-
 
27973
    static {
-
 
27974
      FieldMetaData.addStructMetaDataMap(getMinValidOrderAmount_result.class, metaDataMap);
-
 
27975
    }
-
 
27976
 
-
 
27977
    public getMinValidOrderAmount_result() {
-
 
27978
    }
-
 
27979
 
-
 
27980
    public getMinValidOrderAmount_result(
-
 
27981
      double success)
-
 
27982
    {
-
 
27983
      this();
-
 
27984
      this.success = success;
-
 
27985
      setSuccessIsSet(true);
-
 
27986
    }
-
 
27987
 
-
 
27988
    /**
-
 
27989
     * Performs a deep copy on <i>other</i>.
-
 
27990
     */
-
 
27991
    public getMinValidOrderAmount_result(getMinValidOrderAmount_result other) {
-
 
27992
      __isset_bit_vector.clear();
-
 
27993
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27994
      this.success = other.success;
-
 
27995
    }
-
 
27996
 
-
 
27997
    public getMinValidOrderAmount_result deepCopy() {
-
 
27998
      return new getMinValidOrderAmount_result(this);
-
 
27999
    }
-
 
28000
 
-
 
28001
    @Deprecated
-
 
28002
    public getMinValidOrderAmount_result clone() {
-
 
28003
      return new getMinValidOrderAmount_result(this);
-
 
28004
    }
-
 
28005
 
-
 
28006
    public double getSuccess() {
-
 
28007
      return this.success;
-
 
28008
    }
-
 
28009
 
-
 
28010
    public getMinValidOrderAmount_result setSuccess(double success) {
-
 
28011
      this.success = success;
-
 
28012
      setSuccessIsSet(true);
-
 
28013
      return this;
-
 
28014
    }
-
 
28015
 
-
 
28016
    public void unsetSuccess() {
-
 
28017
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
28018
    }
-
 
28019
 
-
 
28020
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
28021
    public boolean isSetSuccess() {
-
 
28022
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
28023
    }
-
 
28024
 
-
 
28025
    public void setSuccessIsSet(boolean value) {
-
 
28026
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
28027
    }
-
 
28028
 
-
 
28029
    public void setFieldValue(_Fields field, Object value) {
-
 
28030
      switch (field) {
-
 
28031
      case SUCCESS:
-
 
28032
        if (value == null) {
-
 
28033
          unsetSuccess();
-
 
28034
        } else {
-
 
28035
          setSuccess((Double)value);
-
 
28036
        }
-
 
28037
        break;
-
 
28038
 
-
 
28039
      }
-
 
28040
    }
-
 
28041
 
-
 
28042
    public void setFieldValue(int fieldID, Object value) {
-
 
28043
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28044
    }
-
 
28045
 
-
 
28046
    public Object getFieldValue(_Fields field) {
-
 
28047
      switch (field) {
-
 
28048
      case SUCCESS:
-
 
28049
        return new Double(getSuccess());
-
 
28050
 
-
 
28051
      }
-
 
28052
      throw new IllegalStateException();
-
 
28053
    }
-
 
28054
 
-
 
28055
    public Object getFieldValue(int fieldId) {
-
 
28056
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28057
    }
-
 
28058
 
-
 
28059
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28060
    public boolean isSet(_Fields field) {
-
 
28061
      switch (field) {
-
 
28062
      case SUCCESS:
-
 
28063
        return isSetSuccess();
-
 
28064
      }
-
 
28065
      throw new IllegalStateException();
-
 
28066
    }
-
 
28067
 
-
 
28068
    public boolean isSet(int fieldID) {
-
 
28069
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28070
    }
-
 
28071
 
-
 
28072
    @Override
-
 
28073
    public boolean equals(Object that) {
-
 
28074
      if (that == null)
-
 
28075
        return false;
-
 
28076
      if (that instanceof getMinValidOrderAmount_result)
-
 
28077
        return this.equals((getMinValidOrderAmount_result)that);
-
 
28078
      return false;
-
 
28079
    }
-
 
28080
 
-
 
28081
    public boolean equals(getMinValidOrderAmount_result that) {
-
 
28082
      if (that == null)
-
 
28083
        return false;
-
 
28084
 
-
 
28085
      boolean this_present_success = true;
-
 
28086
      boolean that_present_success = true;
-
 
28087
      if (this_present_success || that_present_success) {
-
 
28088
        if (!(this_present_success && that_present_success))
-
 
28089
          return false;
-
 
28090
        if (this.success != that.success)
-
 
28091
          return false;
-
 
28092
      }
-
 
28093
 
-
 
28094
      return true;
-
 
28095
    }
-
 
28096
 
-
 
28097
    @Override
-
 
28098
    public int hashCode() {
-
 
28099
      return 0;
-
 
28100
    }
-
 
28101
 
-
 
28102
    public int compareTo(getMinValidOrderAmount_result other) {
-
 
28103
      if (!getClass().equals(other.getClass())) {
-
 
28104
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28105
      }
-
 
28106
 
-
 
28107
      int lastComparison = 0;
-
 
28108
      getMinValidOrderAmount_result typedOther = (getMinValidOrderAmount_result)other;
-
 
28109
 
-
 
28110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
28111
      if (lastComparison != 0) {
-
 
28112
        return lastComparison;
-
 
28113
      }
-
 
28114
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
28115
      if (lastComparison != 0) {
-
 
28116
        return lastComparison;
-
 
28117
      }
-
 
28118
      return 0;
-
 
28119
    }
-
 
28120
 
-
 
28121
    public void read(TProtocol iprot) throws TException {
-
 
28122
      TField field;
-
 
28123
      iprot.readStructBegin();
-
 
28124
      while (true)
-
 
28125
      {
-
 
28126
        field = iprot.readFieldBegin();
-
 
28127
        if (field.type == TType.STOP) { 
-
 
28128
          break;
-
 
28129
        }
-
 
28130
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28131
        if (fieldId == null) {
-
 
28132
          TProtocolUtil.skip(iprot, field.type);
-
 
28133
        } else {
-
 
28134
          switch (fieldId) {
-
 
28135
            case SUCCESS:
-
 
28136
              if (field.type == TType.DOUBLE) {
-
 
28137
                this.success = iprot.readDouble();
-
 
28138
                setSuccessIsSet(true);
-
 
28139
              } else { 
-
 
28140
                TProtocolUtil.skip(iprot, field.type);
-
 
28141
              }
-
 
28142
              break;
-
 
28143
          }
-
 
28144
          iprot.readFieldEnd();
-
 
28145
        }
-
 
28146
      }
-
 
28147
      iprot.readStructEnd();
-
 
28148
      validate();
-
 
28149
    }
-
 
28150
 
-
 
28151
    public void write(TProtocol oprot) throws TException {
-
 
28152
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28153
 
-
 
28154
      if (this.isSetSuccess()) {
-
 
28155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28156
        oprot.writeDouble(this.success);
-
 
28157
        oprot.writeFieldEnd();
-
 
28158
      }
-
 
28159
      oprot.writeFieldStop();
-
 
28160
      oprot.writeStructEnd();
-
 
28161
    }
-
 
28162
 
-
 
28163
    @Override
-
 
28164
    public String toString() {
-
 
28165
      StringBuilder sb = new StringBuilder("getMinValidOrderAmount_result(");
-
 
28166
      boolean first = true;
-
 
28167
 
-
 
28168
      sb.append("success:");
-
 
28169
      sb.append(this.success);
-
 
28170
      first = false;
26596
      sb.append(")");
28171
      sb.append(")");
26597
      return sb.toString();
28172
      return sb.toString();
26598
    }
28173
    }
26599
 
28174
 
26600
    public void validate() throws TException {
28175
    public void validate() throws TException {