Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 1139
Line 84... Line 84...
84
     * @param providerId
84
     * @param providerId
85
     * @param pinCode
85
     * @param pinCode
86
     */
86
     */
87
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, TException;
87
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, TException;
88
 
88
 
-
 
89
    /**
-
 
90
     * Returns the number of unused AWB numbers for the given provider
-
 
91
     * 
-
 
92
     * @param providerId
-
 
93
     */
-
 
94
    public long getFreeAwbCount(long providerId) throws TException;
-
 
95
 
89
  }
96
  }
90
 
97
 
91
  public static class Client implements Iface {
98
  public static class Client implements Iface {
92
    public Client(TProtocol prot)
99
    public Client(TProtocol prot)
93
    {
100
    {
Line 397... Line 404...
397
        throw result.se;
404
        throw result.se;
398
      }
405
      }
399
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
406
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
400
    }
407
    }
401
 
408
 
-
 
409
    public long getFreeAwbCount(long providerId) throws TException
-
 
410
    {
-
 
411
      send_getFreeAwbCount(providerId);
-
 
412
      return recv_getFreeAwbCount();
-
 
413
    }
-
 
414
 
-
 
415
    public void send_getFreeAwbCount(long providerId) throws TException
-
 
416
    {
-
 
417
      oprot_.writeMessageBegin(new TMessage("getFreeAwbCount", TMessageType.CALL, seqid_));
-
 
418
      getFreeAwbCount_args args = new getFreeAwbCount_args();
-
 
419
      args.providerId = providerId;
-
 
420
      args.write(oprot_);
-
 
421
      oprot_.writeMessageEnd();
-
 
422
      oprot_.getTransport().flush();
-
 
423
    }
-
 
424
 
-
 
425
    public long recv_getFreeAwbCount() throws TException
-
 
426
    {
-
 
427
      TMessage msg = iprot_.readMessageBegin();
-
 
428
      if (msg.type == TMessageType.EXCEPTION) {
-
 
429
        TApplicationException x = TApplicationException.read(iprot_);
-
 
430
        iprot_.readMessageEnd();
-
 
431
        throw x;
-
 
432
      }
-
 
433
      getFreeAwbCount_result result = new getFreeAwbCount_result();
-
 
434
      result.read(iprot_);
-
 
435
      iprot_.readMessageEnd();
-
 
436
      if (result.isSetSuccess()) {
-
 
437
        return result.success;
-
 
438
      }
-
 
439
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
-
 
440
    }
-
 
441
 
402
  }
442
  }
403
  public static class Processor implements TProcessor {
443
  public static class Processor implements TProcessor {
404
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
444
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
405
    public Processor(Iface iface)
445
    public Processor(Iface iface)
406
    {
446
    {
Line 411... Line 451...
411
      processMap_.put("getLogisticsEstimation", new getLogisticsEstimation());
451
      processMap_.put("getLogisticsEstimation", new getLogisticsEstimation());
412
      processMap_.put("getLogisticsInfo", new getLogisticsInfo());
452
      processMap_.put("getLogisticsInfo", new getLogisticsInfo());
413
      processMap_.put("getEmptyAWB", new getEmptyAWB());
453
      processMap_.put("getEmptyAWB", new getEmptyAWB());
414
      processMap_.put("getShipmentInfo", new getShipmentInfo());
454
      processMap_.put("getShipmentInfo", new getShipmentInfo());
415
      processMap_.put("getDestinationCode", new getDestinationCode());
455
      processMap_.put("getDestinationCode", new getDestinationCode());
-
 
456
      processMap_.put("getFreeAwbCount", new getFreeAwbCount());
416
    }
457
    }
417
 
458
 
418
    protected static interface ProcessFunction {
459
    protected static interface ProcessFunction {
419
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
460
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
420
    }
461
    }
Line 650... Line 691...
650
        oprot.getTransport().flush();
691
        oprot.getTransport().flush();
651
      }
692
      }
652
 
693
 
653
    }
694
    }
654
 
695
 
-
 
696
    private class getFreeAwbCount implements ProcessFunction {
-
 
697
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
698
      {
-
 
699
        getFreeAwbCount_args args = new getFreeAwbCount_args();
-
 
700
        args.read(iprot);
-
 
701
        iprot.readMessageEnd();
-
 
702
        getFreeAwbCount_result result = new getFreeAwbCount_result();
-
 
703
        result.success = iface_.getFreeAwbCount(args.providerId);
-
 
704
        result.setSuccessIsSet(true);
-
 
705
        oprot.writeMessageBegin(new TMessage("getFreeAwbCount", TMessageType.REPLY, seqid));
-
 
706
        result.write(oprot);
-
 
707
        oprot.writeMessageEnd();
-
 
708
        oprot.getTransport().flush();
-
 
709
      }
-
 
710
 
-
 
711
    }
-
 
712
 
655
  }
713
  }
656
 
714
 
657
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
715
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
658
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
716
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
659
 
717
 
Line 5849... Line 5907...
5849
      first = false;
5907
      first = false;
5850
      sb.append(")");
5908
      sb.append(")");
5851
      return sb.toString();
5909
      return sb.toString();
5852
    }
5910
    }
5853
 
5911
 
-
 
5912
    public void validate() throws TException {
-
 
5913
      // check for required fields
-
 
5914
    }
-
 
5915
 
-
 
5916
  }
-
 
5917
 
-
 
5918
  public static class getFreeAwbCount_args implements TBase<getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFreeAwbCount_args>   {
-
 
5919
    private static final TStruct STRUCT_DESC = new TStruct("getFreeAwbCount_args");
-
 
5920
 
-
 
5921
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
5922
 
-
 
5923
    private long providerId;
-
 
5924
 
-
 
5925
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5926
    public enum _Fields implements TFieldIdEnum {
-
 
5927
      PROVIDER_ID((short)1, "providerId");
-
 
5928
 
-
 
5929
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5930
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5931
 
-
 
5932
      static {
-
 
5933
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5934
          byId.put((int)field._thriftId, field);
-
 
5935
          byName.put(field.getFieldName(), field);
-
 
5936
        }
-
 
5937
      }
-
 
5938
 
-
 
5939
      /**
-
 
5940
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5941
       */
-
 
5942
      public static _Fields findByThriftId(int fieldId) {
-
 
5943
        return byId.get(fieldId);
-
 
5944
      }
-
 
5945
 
-
 
5946
      /**
-
 
5947
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5948
       * if it is not found.
-
 
5949
       */
-
 
5950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5951
        _Fields fields = findByThriftId(fieldId);
-
 
5952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5953
        return fields;
-
 
5954
      }
-
 
5955
 
-
 
5956
      /**
-
 
5957
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5958
       */
-
 
5959
      public static _Fields findByName(String name) {
-
 
5960
        return byName.get(name);
-
 
5961
      }
-
 
5962
 
-
 
5963
      private final short _thriftId;
-
 
5964
      private final String _fieldName;
-
 
5965
 
-
 
5966
      _Fields(short thriftId, String fieldName) {
-
 
5967
        _thriftId = thriftId;
-
 
5968
        _fieldName = fieldName;
-
 
5969
      }
-
 
5970
 
-
 
5971
      public short getThriftFieldId() {
-
 
5972
        return _thriftId;
-
 
5973
      }
-
 
5974
 
-
 
5975
      public String getFieldName() {
-
 
5976
        return _fieldName;
-
 
5977
      }
-
 
5978
    }
-
 
5979
 
-
 
5980
    // isset id assignments
-
 
5981
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
5982
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5983
 
-
 
5984
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5985
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
5986
          new FieldValueMetaData(TType.I64)));
-
 
5987
    }});
-
 
5988
 
-
 
5989
    static {
-
 
5990
      FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
-
 
5991
    }
-
 
5992
 
-
 
5993
    public getFreeAwbCount_args() {
-
 
5994
    }
-
 
5995
 
-
 
5996
    public getFreeAwbCount_args(
-
 
5997
      long providerId)
-
 
5998
    {
-
 
5999
      this();
-
 
6000
      this.providerId = providerId;
-
 
6001
      setProviderIdIsSet(true);
-
 
6002
    }
-
 
6003
 
-
 
6004
    /**
-
 
6005
     * Performs a deep copy on <i>other</i>.
-
 
6006
     */
-
 
6007
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
-
 
6008
      __isset_bit_vector.clear();
-
 
6009
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6010
      this.providerId = other.providerId;
-
 
6011
    }
-
 
6012
 
-
 
6013
    public getFreeAwbCount_args deepCopy() {
-
 
6014
      return new getFreeAwbCount_args(this);
-
 
6015
    }
-
 
6016
 
-
 
6017
    @Deprecated
-
 
6018
    public getFreeAwbCount_args clone() {
-
 
6019
      return new getFreeAwbCount_args(this);
-
 
6020
    }
-
 
6021
 
-
 
6022
    public long getProviderId() {
-
 
6023
      return this.providerId;
-
 
6024
    }
-
 
6025
 
-
 
6026
    public getFreeAwbCount_args setProviderId(long providerId) {
-
 
6027
      this.providerId = providerId;
-
 
6028
      setProviderIdIsSet(true);
-
 
6029
      return this;
-
 
6030
    }
-
 
6031
 
-
 
6032
    public void unsetProviderId() {
-
 
6033
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
6034
    }
-
 
6035
 
-
 
6036
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
6037
    public boolean isSetProviderId() {
-
 
6038
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
6039
    }
-
 
6040
 
-
 
6041
    public void setProviderIdIsSet(boolean value) {
-
 
6042
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
6043
    }
-
 
6044
 
-
 
6045
    public void setFieldValue(_Fields field, Object value) {
-
 
6046
      switch (field) {
-
 
6047
      case PROVIDER_ID:
-
 
6048
        if (value == null) {
-
 
6049
          unsetProviderId();
-
 
6050
        } else {
-
 
6051
          setProviderId((Long)value);
-
 
6052
        }
-
 
6053
        break;
-
 
6054
 
-
 
6055
      }
-
 
6056
    }
-
 
6057
 
-
 
6058
    public void setFieldValue(int fieldID, Object value) {
-
 
6059
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6060
    }
-
 
6061
 
-
 
6062
    public Object getFieldValue(_Fields field) {
-
 
6063
      switch (field) {
-
 
6064
      case PROVIDER_ID:
-
 
6065
        return new Long(getProviderId());
-
 
6066
 
-
 
6067
      }
-
 
6068
      throw new IllegalStateException();
-
 
6069
    }
-
 
6070
 
-
 
6071
    public Object getFieldValue(int fieldId) {
-
 
6072
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6073
    }
-
 
6074
 
-
 
6075
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6076
    public boolean isSet(_Fields field) {
-
 
6077
      switch (field) {
-
 
6078
      case PROVIDER_ID:
-
 
6079
        return isSetProviderId();
-
 
6080
      }
-
 
6081
      throw new IllegalStateException();
-
 
6082
    }
-
 
6083
 
-
 
6084
    public boolean isSet(int fieldID) {
-
 
6085
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6086
    }
-
 
6087
 
-
 
6088
    @Override
-
 
6089
    public boolean equals(Object that) {
-
 
6090
      if (that == null)
-
 
6091
        return false;
-
 
6092
      if (that instanceof getFreeAwbCount_args)
-
 
6093
        return this.equals((getFreeAwbCount_args)that);
-
 
6094
      return false;
-
 
6095
    }
-
 
6096
 
-
 
6097
    public boolean equals(getFreeAwbCount_args that) {
-
 
6098
      if (that == null)
-
 
6099
        return false;
-
 
6100
 
-
 
6101
      boolean this_present_providerId = true;
-
 
6102
      boolean that_present_providerId = true;
-
 
6103
      if (this_present_providerId || that_present_providerId) {
-
 
6104
        if (!(this_present_providerId && that_present_providerId))
-
 
6105
          return false;
-
 
6106
        if (this.providerId != that.providerId)
-
 
6107
          return false;
-
 
6108
      }
-
 
6109
 
-
 
6110
      return true;
-
 
6111
    }
-
 
6112
 
-
 
6113
    @Override
-
 
6114
    public int hashCode() {
-
 
6115
      return 0;
-
 
6116
    }
-
 
6117
 
-
 
6118
    public int compareTo(getFreeAwbCount_args other) {
-
 
6119
      if (!getClass().equals(other.getClass())) {
-
 
6120
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6121
      }
-
 
6122
 
-
 
6123
      int lastComparison = 0;
-
 
6124
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
-
 
6125
 
-
 
6126
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
-
 
6127
      if (lastComparison != 0) {
-
 
6128
        return lastComparison;
-
 
6129
      }
-
 
6130
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
-
 
6131
      if (lastComparison != 0) {
-
 
6132
        return lastComparison;
-
 
6133
      }
-
 
6134
      return 0;
-
 
6135
    }
-
 
6136
 
-
 
6137
    public void read(TProtocol iprot) throws TException {
-
 
6138
      TField field;
-
 
6139
      iprot.readStructBegin();
-
 
6140
      while (true)
-
 
6141
      {
-
 
6142
        field = iprot.readFieldBegin();
-
 
6143
        if (field.type == TType.STOP) { 
-
 
6144
          break;
-
 
6145
        }
-
 
6146
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6147
        if (fieldId == null) {
-
 
6148
          TProtocolUtil.skip(iprot, field.type);
-
 
6149
        } else {
-
 
6150
          switch (fieldId) {
-
 
6151
            case PROVIDER_ID:
-
 
6152
              if (field.type == TType.I64) {
-
 
6153
                this.providerId = iprot.readI64();
-
 
6154
                setProviderIdIsSet(true);
-
 
6155
              } else { 
-
 
6156
                TProtocolUtil.skip(iprot, field.type);
-
 
6157
              }
-
 
6158
              break;
-
 
6159
          }
-
 
6160
          iprot.readFieldEnd();
-
 
6161
        }
-
 
6162
      }
-
 
6163
      iprot.readStructEnd();
-
 
6164
      validate();
-
 
6165
    }
-
 
6166
 
-
 
6167
    public void write(TProtocol oprot) throws TException {
-
 
6168
      validate();
-
 
6169
 
-
 
6170
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6171
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
6172
      oprot.writeI64(this.providerId);
-
 
6173
      oprot.writeFieldEnd();
-
 
6174
      oprot.writeFieldStop();
-
 
6175
      oprot.writeStructEnd();
-
 
6176
    }
-
 
6177
 
-
 
6178
    @Override
-
 
6179
    public String toString() {
-
 
6180
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
-
 
6181
      boolean first = true;
-
 
6182
 
-
 
6183
      sb.append("providerId:");
-
 
6184
      sb.append(this.providerId);
-
 
6185
      first = false;
-
 
6186
      sb.append(")");
-
 
6187
      return sb.toString();
-
 
6188
    }
-
 
6189
 
-
 
6190
    public void validate() throws TException {
-
 
6191
      // check for required fields
-
 
6192
    }
-
 
6193
 
-
 
6194
  }
-
 
6195
 
-
 
6196
  public static class getFreeAwbCount_result implements TBase<getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFreeAwbCount_result>   {
-
 
6197
    private static final TStruct STRUCT_DESC = new TStruct("getFreeAwbCount_result");
-
 
6198
 
-
 
6199
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
6200
 
-
 
6201
    private long success;
-
 
6202
 
-
 
6203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6204
    public enum _Fields implements TFieldIdEnum {
-
 
6205
      SUCCESS((short)0, "success");
-
 
6206
 
-
 
6207
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6209
 
-
 
6210
      static {
-
 
6211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6212
          byId.put((int)field._thriftId, field);
-
 
6213
          byName.put(field.getFieldName(), field);
-
 
6214
        }
-
 
6215
      }
-
 
6216
 
-
 
6217
      /**
-
 
6218
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6219
       */
-
 
6220
      public static _Fields findByThriftId(int fieldId) {
-
 
6221
        return byId.get(fieldId);
-
 
6222
      }
-
 
6223
 
-
 
6224
      /**
-
 
6225
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6226
       * if it is not found.
-
 
6227
       */
-
 
6228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6229
        _Fields fields = findByThriftId(fieldId);
-
 
6230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6231
        return fields;
-
 
6232
      }
-
 
6233
 
-
 
6234
      /**
-
 
6235
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6236
       */
-
 
6237
      public static _Fields findByName(String name) {
-
 
6238
        return byName.get(name);
-
 
6239
      }
-
 
6240
 
-
 
6241
      private final short _thriftId;
-
 
6242
      private final String _fieldName;
-
 
6243
 
-
 
6244
      _Fields(short thriftId, String fieldName) {
-
 
6245
        _thriftId = thriftId;
-
 
6246
        _fieldName = fieldName;
-
 
6247
      }
-
 
6248
 
-
 
6249
      public short getThriftFieldId() {
-
 
6250
        return _thriftId;
-
 
6251
      }
-
 
6252
 
-
 
6253
      public String getFieldName() {
-
 
6254
        return _fieldName;
-
 
6255
      }
-
 
6256
    }
-
 
6257
 
-
 
6258
    // isset id assignments
-
 
6259
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
6260
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6261
 
-
 
6262
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6263
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6264
          new FieldValueMetaData(TType.I64)));
-
 
6265
    }});
-
 
6266
 
-
 
6267
    static {
-
 
6268
      FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
-
 
6269
    }
-
 
6270
 
-
 
6271
    public getFreeAwbCount_result() {
-
 
6272
    }
-
 
6273
 
-
 
6274
    public getFreeAwbCount_result(
-
 
6275
      long success)
-
 
6276
    {
-
 
6277
      this();
-
 
6278
      this.success = success;
-
 
6279
      setSuccessIsSet(true);
-
 
6280
    }
-
 
6281
 
-
 
6282
    /**
-
 
6283
     * Performs a deep copy on <i>other</i>.
-
 
6284
     */
-
 
6285
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
-
 
6286
      __isset_bit_vector.clear();
-
 
6287
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6288
      this.success = other.success;
-
 
6289
    }
-
 
6290
 
-
 
6291
    public getFreeAwbCount_result deepCopy() {
-
 
6292
      return new getFreeAwbCount_result(this);
-
 
6293
    }
-
 
6294
 
-
 
6295
    @Deprecated
-
 
6296
    public getFreeAwbCount_result clone() {
-
 
6297
      return new getFreeAwbCount_result(this);
-
 
6298
    }
-
 
6299
 
-
 
6300
    public long getSuccess() {
-
 
6301
      return this.success;
-
 
6302
    }
-
 
6303
 
-
 
6304
    public getFreeAwbCount_result setSuccess(long success) {
-
 
6305
      this.success = success;
-
 
6306
      setSuccessIsSet(true);
-
 
6307
      return this;
-
 
6308
    }
-
 
6309
 
-
 
6310
    public void unsetSuccess() {
-
 
6311
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
6312
    }
-
 
6313
 
-
 
6314
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6315
    public boolean isSetSuccess() {
-
 
6316
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
6317
    }
-
 
6318
 
-
 
6319
    public void setSuccessIsSet(boolean value) {
-
 
6320
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
6321
    }
-
 
6322
 
-
 
6323
    public void setFieldValue(_Fields field, Object value) {
-
 
6324
      switch (field) {
-
 
6325
      case SUCCESS:
-
 
6326
        if (value == null) {
-
 
6327
          unsetSuccess();
-
 
6328
        } else {
-
 
6329
          setSuccess((Long)value);
-
 
6330
        }
-
 
6331
        break;
-
 
6332
 
-
 
6333
      }
-
 
6334
    }
-
 
6335
 
-
 
6336
    public void setFieldValue(int fieldID, Object value) {
-
 
6337
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6338
    }
-
 
6339
 
-
 
6340
    public Object getFieldValue(_Fields field) {
-
 
6341
      switch (field) {
-
 
6342
      case SUCCESS:
-
 
6343
        return new Long(getSuccess());
-
 
6344
 
-
 
6345
      }
-
 
6346
      throw new IllegalStateException();
-
 
6347
    }
-
 
6348
 
-
 
6349
    public Object getFieldValue(int fieldId) {
-
 
6350
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6351
    }
-
 
6352
 
-
 
6353
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6354
    public boolean isSet(_Fields field) {
-
 
6355
      switch (field) {
-
 
6356
      case SUCCESS:
-
 
6357
        return isSetSuccess();
-
 
6358
      }
-
 
6359
      throw new IllegalStateException();
-
 
6360
    }
-
 
6361
 
-
 
6362
    public boolean isSet(int fieldID) {
-
 
6363
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6364
    }
-
 
6365
 
-
 
6366
    @Override
-
 
6367
    public boolean equals(Object that) {
-
 
6368
      if (that == null)
-
 
6369
        return false;
-
 
6370
      if (that instanceof getFreeAwbCount_result)
-
 
6371
        return this.equals((getFreeAwbCount_result)that);
-
 
6372
      return false;
-
 
6373
    }
-
 
6374
 
-
 
6375
    public boolean equals(getFreeAwbCount_result that) {
-
 
6376
      if (that == null)
-
 
6377
        return false;
-
 
6378
 
-
 
6379
      boolean this_present_success = true;
-
 
6380
      boolean that_present_success = true;
-
 
6381
      if (this_present_success || that_present_success) {
-
 
6382
        if (!(this_present_success && that_present_success))
-
 
6383
          return false;
-
 
6384
        if (this.success != that.success)
-
 
6385
          return false;
-
 
6386
      }
-
 
6387
 
-
 
6388
      return true;
-
 
6389
    }
-
 
6390
 
-
 
6391
    @Override
-
 
6392
    public int hashCode() {
-
 
6393
      return 0;
-
 
6394
    }
-
 
6395
 
-
 
6396
    public int compareTo(getFreeAwbCount_result other) {
-
 
6397
      if (!getClass().equals(other.getClass())) {
-
 
6398
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6399
      }
-
 
6400
 
-
 
6401
      int lastComparison = 0;
-
 
6402
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
-
 
6403
 
-
 
6404
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6405
      if (lastComparison != 0) {
-
 
6406
        return lastComparison;
-
 
6407
      }
-
 
6408
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6409
      if (lastComparison != 0) {
-
 
6410
        return lastComparison;
-
 
6411
      }
-
 
6412
      return 0;
-
 
6413
    }
-
 
6414
 
-
 
6415
    public void read(TProtocol iprot) throws TException {
-
 
6416
      TField field;
-
 
6417
      iprot.readStructBegin();
-
 
6418
      while (true)
-
 
6419
      {
-
 
6420
        field = iprot.readFieldBegin();
-
 
6421
        if (field.type == TType.STOP) { 
-
 
6422
          break;
-
 
6423
        }
-
 
6424
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6425
        if (fieldId == null) {
-
 
6426
          TProtocolUtil.skip(iprot, field.type);
-
 
6427
        } else {
-
 
6428
          switch (fieldId) {
-
 
6429
            case SUCCESS:
-
 
6430
              if (field.type == TType.I64) {
-
 
6431
                this.success = iprot.readI64();
-
 
6432
                setSuccessIsSet(true);
-
 
6433
              } else { 
-
 
6434
                TProtocolUtil.skip(iprot, field.type);
-
 
6435
              }
-
 
6436
              break;
-
 
6437
          }
-
 
6438
          iprot.readFieldEnd();
-
 
6439
        }
-
 
6440
      }
-
 
6441
      iprot.readStructEnd();
-
 
6442
      validate();
-
 
6443
    }
-
 
6444
 
-
 
6445
    public void write(TProtocol oprot) throws TException {
-
 
6446
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6447
 
-
 
6448
      if (this.isSetSuccess()) {
-
 
6449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6450
        oprot.writeI64(this.success);
-
 
6451
        oprot.writeFieldEnd();
-
 
6452
      }
-
 
6453
      oprot.writeFieldStop();
-
 
6454
      oprot.writeStructEnd();
-
 
6455
    }
-
 
6456
 
-
 
6457
    @Override
-
 
6458
    public String toString() {
-
 
6459
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
-
 
6460
      boolean first = true;
-
 
6461
 
-
 
6462
      sb.append("success:");
-
 
6463
      sb.append(this.success);
-
 
6464
      first = false;
-
 
6465
      sb.append(")");
-
 
6466
      return sb.toString();
-
 
6467
    }
-
 
6468
 
5854
    public void validate() throws TException {
6469
    public void validate() throws TException {
5855
      // check for required fields
6470
      // check for required fields
5856
    }
6471
    }
5857
 
6472
 
5858
  }
6473
  }