Subversion Repositories SmartDukaan

Rev

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

Rev 6410 Rev 6412
Line 900... Line 900...
900
 
900
 
901
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException;
901
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException;
902
 
902
 
903
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException;
903
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException;
904
 
904
 
905
    public Map<Long,Long> getMiscCharges(long transactionId) throws org.apache.thrift.TException;
905
    public Map<Long,Double> getMiscCharges(long transactionId) throws org.apache.thrift.TException;
906
 
906
 
907
  }
907
  }
908
 
908
 
909
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
909
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
910
 
910
 
Line 4901... Line 4901...
4901
        return result.success;
4901
        return result.success;
4902
      }
4902
      }
4903
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAvailableEmiSchemes failed: unknown result");
4903
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAvailableEmiSchemes failed: unknown result");
4904
    }
4904
    }
4905
 
4905
 
4906
    public Map<Long,Long> getMiscCharges(long transactionId) throws org.apache.thrift.TException
4906
    public Map<Long,Double> getMiscCharges(long transactionId) throws org.apache.thrift.TException
4907
    {
4907
    {
4908
      send_getMiscCharges(transactionId);
4908
      send_getMiscCharges(transactionId);
4909
      return recv_getMiscCharges();
4909
      return recv_getMiscCharges();
4910
    }
4910
    }
4911
 
4911
 
Line 4914... Line 4914...
4914
      getMiscCharges_args args = new getMiscCharges_args();
4914
      getMiscCharges_args args = new getMiscCharges_args();
4915
      args.setTransactionId(transactionId);
4915
      args.setTransactionId(transactionId);
4916
      sendBase("getMiscCharges", args);
4916
      sendBase("getMiscCharges", args);
4917
    }
4917
    }
4918
 
4918
 
4919
    public Map<Long,Long> recv_getMiscCharges() throws org.apache.thrift.TException
4919
    public Map<Long,Double> recv_getMiscCharges() throws org.apache.thrift.TException
4920
    {
4920
    {
4921
      getMiscCharges_result result = new getMiscCharges_result();
4921
      getMiscCharges_result result = new getMiscCharges_result();
4922
      receiveBase(result, "getMiscCharges");
4922
      receiveBase(result, "getMiscCharges");
4923
      if (result.isSetSuccess()) {
4923
      if (result.isSetSuccess()) {
4924
        return result.success;
4924
        return result.success;
Line 10059... Line 10059...
10059
        args.setTransactionId(transactionId);
10059
        args.setTransactionId(transactionId);
10060
        args.write(prot);
10060
        args.write(prot);
10061
        prot.writeMessageEnd();
10061
        prot.writeMessageEnd();
10062
      }
10062
      }
10063
 
10063
 
10064
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
10064
      public Map<Long,Double> getResult() throws org.apache.thrift.TException {
10065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
10065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
10066
          throw new IllegalStateException("Method call not finished!");
10066
          throw new IllegalStateException("Method call not finished!");
10067
        }
10067
        }
10068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
10068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
10069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 119422... Line 119422...
119422
  public static class getMiscCharges_result implements org.apache.thrift.TBase<getMiscCharges_result, getMiscCharges_result._Fields>, java.io.Serializable, Cloneable   {
119422
  public static class getMiscCharges_result implements org.apache.thrift.TBase<getMiscCharges_result, getMiscCharges_result._Fields>, java.io.Serializable, Cloneable   {
119423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMiscCharges_result");
119423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMiscCharges_result");
119424
 
119424
 
119425
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
119425
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
119426
 
119426
 
119427
    private Map<Long,Long> success; // required
119427
    private Map<Long,Double> success; // required
119428
 
119428
 
119429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
119429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
119430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
119430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
119431
      SUCCESS((short)0, "success");
119431
      SUCCESS((short)0, "success");
119432
 
119432
 
Line 119490... Line 119490...
119490
    static {
119490
    static {
119491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
119491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
119492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119493
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
119493
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
119494
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
119494
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
119495
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
119495
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
119496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
119496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
119497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMiscCharges_result.class, metaDataMap);
119497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMiscCharges_result.class, metaDataMap);
119498
    }
119498
    }
119499
 
119499
 
119500
    public getMiscCharges_result() {
119500
    public getMiscCharges_result() {
119501
    }
119501
    }
119502
 
119502
 
119503
    public getMiscCharges_result(
119503
    public getMiscCharges_result(
119504
      Map<Long,Long> success)
119504
      Map<Long,Double> success)
119505
    {
119505
    {
119506
      this();
119506
      this();
119507
      this.success = success;
119507
      this.success = success;
119508
    }
119508
    }
119509
 
119509
 
119510
    /**
119510
    /**
119511
     * Performs a deep copy on <i>other</i>.
119511
     * Performs a deep copy on <i>other</i>.
119512
     */
119512
     */
119513
    public getMiscCharges_result(getMiscCharges_result other) {
119513
    public getMiscCharges_result(getMiscCharges_result other) {
119514
      if (other.isSetSuccess()) {
119514
      if (other.isSetSuccess()) {
119515
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
119515
        Map<Long,Double> __this__success = new HashMap<Long,Double>();
119516
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
119516
        for (Map.Entry<Long, Double> other_element : other.success.entrySet()) {
119517
 
119517
 
119518
          Long other_element_key = other_element.getKey();
119518
          Long other_element_key = other_element.getKey();
119519
          Long other_element_value = other_element.getValue();
119519
          Double other_element_value = other_element.getValue();
119520
 
119520
 
119521
          Long __this__success_copy_key = other_element_key;
119521
          Long __this__success_copy_key = other_element_key;
119522
 
119522
 
119523
          Long __this__success_copy_value = other_element_value;
119523
          Double __this__success_copy_value = other_element_value;
119524
 
119524
 
119525
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
119525
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
119526
        }
119526
        }
119527
        this.success = __this__success;
119527
        this.success = __this__success;
119528
      }
119528
      }
Line 119539... Line 119539...
119539
 
119539
 
119540
    public int getSuccessSize() {
119540
    public int getSuccessSize() {
119541
      return (this.success == null) ? 0 : this.success.size();
119541
      return (this.success == null) ? 0 : this.success.size();
119542
    }
119542
    }
119543
 
119543
 
119544
    public void putToSuccess(long key, long val) {
119544
    public void putToSuccess(long key, double val) {
119545
      if (this.success == null) {
119545
      if (this.success == null) {
119546
        this.success = new HashMap<Long,Long>();
119546
        this.success = new HashMap<Long,Double>();
119547
      }
119547
      }
119548
      this.success.put(key, val);
119548
      this.success.put(key, val);
119549
    }
119549
    }
119550
 
119550
 
119551
    public Map<Long,Long> getSuccess() {
119551
    public Map<Long,Double> getSuccess() {
119552
      return this.success;
119552
      return this.success;
119553
    }
119553
    }
119554
 
119554
 
119555
    public void setSuccess(Map<Long,Long> success) {
119555
    public void setSuccess(Map<Long,Double> success) {
119556
      this.success = success;
119556
      this.success = success;
119557
    }
119557
    }
119558
 
119558
 
119559
    public void unsetSuccess() {
119559
    public void unsetSuccess() {
119560
      this.success = null;
119560
      this.success = null;
Line 119575... Line 119575...
119575
      switch (field) {
119575
      switch (field) {
119576
      case SUCCESS:
119576
      case SUCCESS:
119577
        if (value == null) {
119577
        if (value == null) {
119578
          unsetSuccess();
119578
          unsetSuccess();
119579
        } else {
119579
        } else {
119580
          setSuccess((Map<Long,Long>)value);
119580
          setSuccess((Map<Long,Double>)value);
119581
        }
119581
        }
119582
        break;
119582
        break;
119583
 
119583
 
119584
      }
119584
      }
119585
    }
119585
    }
Line 119673... Line 119673...
119673
        switch (field.id) {
119673
        switch (field.id) {
119674
          case 0: // SUCCESS
119674
          case 0: // SUCCESS
119675
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
119675
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
119676
              {
119676
              {
119677
                org.apache.thrift.protocol.TMap _map405 = iprot.readMapBegin();
119677
                org.apache.thrift.protocol.TMap _map405 = iprot.readMapBegin();
119678
                this.success = new HashMap<Long,Long>(2*_map405.size);
119678
                this.success = new HashMap<Long,Double>(2*_map405.size);
119679
                for (int _i406 = 0; _i406 < _map405.size; ++_i406)
119679
                for (int _i406 = 0; _i406 < _map405.size; ++_i406)
119680
                {
119680
                {
119681
                  long _key407; // required
119681
                  long _key407; // required
119682
                  long _val408; // required
119682
                  double _val408; // required
119683
                  _key407 = iprot.readI64();
119683
                  _key407 = iprot.readI64();
119684
                  _val408 = iprot.readI64();
119684
                  _val408 = iprot.readDouble();
119685
                  this.success.put(_key407, _val408);
119685
                  this.success.put(_key407, _val408);
119686
                }
119686
                }
119687
                iprot.readMapEnd();
119687
                iprot.readMapEnd();
119688
              }
119688
              }
119689
            } else { 
119689
            } else { 
Line 119703... Line 119703...
119703
      oprot.writeStructBegin(STRUCT_DESC);
119703
      oprot.writeStructBegin(STRUCT_DESC);
119704
 
119704
 
119705
      if (this.isSetSuccess()) {
119705
      if (this.isSetSuccess()) {
119706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
119706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
119707
        {
119707
        {
119708
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
119708
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
119709
          for (Map.Entry<Long, Long> _iter409 : this.success.entrySet())
119709
          for (Map.Entry<Long, Double> _iter409 : this.success.entrySet())
119710
          {
119710
          {
119711
            oprot.writeI64(_iter409.getKey());
119711
            oprot.writeI64(_iter409.getKey());
119712
            oprot.writeI64(_iter409.getValue());
119712
            oprot.writeDouble(_iter409.getValue());
119713
          }
119713
          }
119714
          oprot.writeMapEnd();
119714
          oprot.writeMapEnd();
119715
        }
119715
        }
119716
        oprot.writeFieldEnd();
119716
        oprot.writeFieldEnd();
119717
      }
119717
      }