Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 4386
Line 103... Line 103...
103
     * 
103
     * 
104
     * @param destination_pincode
104
     * @param destination_pincode
105
     */
105
     */
106
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException;
106
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException;
107
 
107
 
-
 
108
    /**
-
 
109
     * Returns AWB object identified by its AWB number
-
 
110
     * 
-
 
111
     * @param awbNumber
-
 
112
     */
-
 
113
    public Awb getAwbForNumber(String awbNumber) throws org.apache.thrift.TException;
-
 
114
 
108
  }
115
  }
109
 
116
 
110
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
117
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
111
 
118
 
112
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
119
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 127... Line 134...
127
 
134
 
128
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
135
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
129
 
136
 
130
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCodAllowed_call> resultHandler) throws org.apache.thrift.TException;
137
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCodAllowed_call> resultHandler) throws org.apache.thrift.TException;
131
 
138
 
-
 
139
    public void getAwbForNumber(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAwbForNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
140
 
132
  }
141
  }
133
 
142
 
134
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
143
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
135
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
144
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
136
      public Factory() {}
145
      public Factory() {}
Line 406... Line 415...
406
        return result.success;
415
        return result.success;
407
      }
416
      }
408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
409
    }
418
    }
410
 
419
 
-
 
420
    public Awb getAwbForNumber(String awbNumber) throws org.apache.thrift.TException
-
 
421
    {
-
 
422
      send_getAwbForNumber(awbNumber);
-
 
423
      return recv_getAwbForNumber();
-
 
424
    }
-
 
425
 
-
 
426
    public void send_getAwbForNumber(String awbNumber) throws org.apache.thrift.TException
-
 
427
    {
-
 
428
      getAwbForNumber_args args = new getAwbForNumber_args();
-
 
429
      args.setAwbNumber(awbNumber);
-
 
430
      sendBase("getAwbForNumber", args);
-
 
431
    }
-
 
432
 
-
 
433
    public Awb recv_getAwbForNumber() throws org.apache.thrift.TException
-
 
434
    {
-
 
435
      getAwbForNumber_result result = new getAwbForNumber_result();
-
 
436
      receiveBase(result, "getAwbForNumber");
-
 
437
      if (result.isSetSuccess()) {
-
 
438
        return result.success;
-
 
439
      }
-
 
440
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAwbForNumber failed: unknown result");
-
 
441
    }
-
 
442
 
411
  }
443
  }
412
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
444
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
413
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
445
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
414
      private org.apache.thrift.async.TAsyncClientManager clientManager;
446
      private org.apache.thrift.async.TAsyncClientManager clientManager;
415
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
447
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 762... Line 794...
762
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
794
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
763
        return (new Client(prot)).recv_isCodAllowed();
795
        return (new Client(prot)).recv_isCodAllowed();
764
      }
796
      }
765
    }
797
    }
766
 
798
 
-
 
799
    public void getAwbForNumber(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<getAwbForNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
800
      checkReady();
-
 
801
      getAwbForNumber_call method_call = new getAwbForNumber_call(awbNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
802
      this.___currentMethod = method_call;
-
 
803
      ___manager.call(method_call);
-
 
804
    }
-
 
805
 
-
 
806
    public static class getAwbForNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
807
      private String awbNumber;
-
 
808
      public getAwbForNumber_call(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<getAwbForNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
809
        super(client, protocolFactory, transport, resultHandler, false);
-
 
810
        this.awbNumber = awbNumber;
-
 
811
      }
-
 
812
 
-
 
813
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
814
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAwbForNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
815
        getAwbForNumber_args args = new getAwbForNumber_args();
-
 
816
        args.setAwbNumber(awbNumber);
-
 
817
        args.write(prot);
-
 
818
        prot.writeMessageEnd();
-
 
819
      }
-
 
820
 
-
 
821
      public Awb getResult() throws org.apache.thrift.TException {
-
 
822
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
823
          throw new IllegalStateException("Method call not finished!");
-
 
824
        }
-
 
825
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
826
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
827
        return (new Client(prot)).recv_getAwbForNumber();
-
 
828
      }
-
 
829
    }
-
 
830
 
767
  }
831
  }
768
 
832
 
769
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
833
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
770
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
834
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
771
    public Processor(I iface) {
835
    public Processor(I iface) {
Line 785... Line 849...
785
      processMap.put("getShipmentInfo", new getShipmentInfo());
849
      processMap.put("getShipmentInfo", new getShipmentInfo());
786
      processMap.put("getDestinationCode", new getDestinationCode());
850
      processMap.put("getDestinationCode", new getDestinationCode());
787
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
851
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
788
      processMap.put("getHolidays", new getHolidays());
852
      processMap.put("getHolidays", new getHolidays());
789
      processMap.put("isCodAllowed", new isCodAllowed());
853
      processMap.put("isCodAllowed", new isCodAllowed());
-
 
854
      processMap.put("getAwbForNumber", new getAwbForNumber());
790
      return processMap;
855
      return processMap;
791
    }
856
    }
792
 
857
 
793
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
858
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
794
      public getProvider() {
859
      public getProvider() {
Line 978... Line 1043...
978
        result.setSuccessIsSet(true);
1043
        result.setSuccessIsSet(true);
979
        return result;
1044
        return result;
980
      }
1045
      }
981
    }
1046
    }
982
 
1047
 
-
 
1048
    private static class getAwbForNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAwbForNumber_args> {
-
 
1049
      public getAwbForNumber() {
-
 
1050
        super("getAwbForNumber");
-
 
1051
      }
-
 
1052
 
-
 
1053
      protected getAwbForNumber_args getEmptyArgsInstance() {
-
 
1054
        return new getAwbForNumber_args();
-
 
1055
      }
-
 
1056
 
-
 
1057
      protected getAwbForNumber_result getResult(I iface, getAwbForNumber_args args) throws org.apache.thrift.TException {
-
 
1058
        getAwbForNumber_result result = new getAwbForNumber_result();
-
 
1059
        result.success = iface.getAwbForNumber(args.awbNumber);
-
 
1060
        return result;
-
 
1061
      }
-
 
1062
    }
-
 
1063
 
983
  }
1064
  }
984
 
1065
 
985
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1066
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
987
 
1068
 
Line 8077... Line 8158...
8077
      first = false;
8158
      first = false;
8078
      sb.append(")");
8159
      sb.append(")");
8079
      return sb.toString();
8160
      return sb.toString();
8080
    }
8161
    }
8081
 
8162
 
-
 
8163
    public void validate() throws org.apache.thrift.TException {
-
 
8164
      // check for required fields
-
 
8165
    }
-
 
8166
 
-
 
8167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8168
      try {
-
 
8169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8170
      } catch (org.apache.thrift.TException te) {
-
 
8171
        throw new java.io.IOException(te);
-
 
8172
      }
-
 
8173
    }
-
 
8174
 
-
 
8175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8176
      try {
-
 
8177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8178
      } catch (org.apache.thrift.TException te) {
-
 
8179
        throw new java.io.IOException(te);
-
 
8180
      }
-
 
8181
    }
-
 
8182
 
-
 
8183
  }
-
 
8184
 
-
 
8185
  public static class getAwbForNumber_args implements org.apache.thrift.TBase<getAwbForNumber_args, getAwbForNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAwbForNumber_args");
-
 
8187
 
-
 
8188
    private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
8189
 
-
 
8190
    private String awbNumber; // required
-
 
8191
 
-
 
8192
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8193
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8194
      AWB_NUMBER((short)1, "awbNumber");
-
 
8195
 
-
 
8196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8197
 
-
 
8198
      static {
-
 
8199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8200
          byName.put(field.getFieldName(), field);
-
 
8201
        }
-
 
8202
      }
-
 
8203
 
-
 
8204
      /**
-
 
8205
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8206
       */
-
 
8207
      public static _Fields findByThriftId(int fieldId) {
-
 
8208
        switch(fieldId) {
-
 
8209
          case 1: // AWB_NUMBER
-
 
8210
            return AWB_NUMBER;
-
 
8211
          default:
-
 
8212
            return null;
-
 
8213
        }
-
 
8214
      }
-
 
8215
 
-
 
8216
      /**
-
 
8217
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8218
       * if it is not found.
-
 
8219
       */
-
 
8220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8221
        _Fields fields = findByThriftId(fieldId);
-
 
8222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8223
        return fields;
-
 
8224
      }
-
 
8225
 
-
 
8226
      /**
-
 
8227
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8228
       */
-
 
8229
      public static _Fields findByName(String name) {
-
 
8230
        return byName.get(name);
-
 
8231
      }
-
 
8232
 
-
 
8233
      private final short _thriftId;
-
 
8234
      private final String _fieldName;
-
 
8235
 
-
 
8236
      _Fields(short thriftId, String fieldName) {
-
 
8237
        _thriftId = thriftId;
-
 
8238
        _fieldName = fieldName;
-
 
8239
      }
-
 
8240
 
-
 
8241
      public short getThriftFieldId() {
-
 
8242
        return _thriftId;
-
 
8243
      }
-
 
8244
 
-
 
8245
      public String getFieldName() {
-
 
8246
        return _fieldName;
-
 
8247
      }
-
 
8248
    }
-
 
8249
 
-
 
8250
    // isset id assignments
-
 
8251
 
-
 
8252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8253
    static {
-
 
8254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8255
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8256
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
8257
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8258
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAwbForNumber_args.class, metaDataMap);
-
 
8259
    }
-
 
8260
 
-
 
8261
    public getAwbForNumber_args() {
-
 
8262
    }
-
 
8263
 
-
 
8264
    public getAwbForNumber_args(
-
 
8265
      String awbNumber)
-
 
8266
    {
-
 
8267
      this();
-
 
8268
      this.awbNumber = awbNumber;
-
 
8269
    }
-
 
8270
 
-
 
8271
    /**
-
 
8272
     * Performs a deep copy on <i>other</i>.
-
 
8273
     */
-
 
8274
    public getAwbForNumber_args(getAwbForNumber_args other) {
-
 
8275
      if (other.isSetAwbNumber()) {
-
 
8276
        this.awbNumber = other.awbNumber;
-
 
8277
      }
-
 
8278
    }
-
 
8279
 
-
 
8280
    public getAwbForNumber_args deepCopy() {
-
 
8281
      return new getAwbForNumber_args(this);
-
 
8282
    }
-
 
8283
 
-
 
8284
    @Override
-
 
8285
    public void clear() {
-
 
8286
      this.awbNumber = null;
-
 
8287
    }
-
 
8288
 
-
 
8289
    public String getAwbNumber() {
-
 
8290
      return this.awbNumber;
-
 
8291
    }
-
 
8292
 
-
 
8293
    public void setAwbNumber(String awbNumber) {
-
 
8294
      this.awbNumber = awbNumber;
-
 
8295
    }
-
 
8296
 
-
 
8297
    public void unsetAwbNumber() {
-
 
8298
      this.awbNumber = null;
-
 
8299
    }
-
 
8300
 
-
 
8301
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
-
 
8302
    public boolean isSetAwbNumber() {
-
 
8303
      return this.awbNumber != null;
-
 
8304
    }
-
 
8305
 
-
 
8306
    public void setAwbNumberIsSet(boolean value) {
-
 
8307
      if (!value) {
-
 
8308
        this.awbNumber = null;
-
 
8309
      }
-
 
8310
    }
-
 
8311
 
-
 
8312
    public void setFieldValue(_Fields field, Object value) {
-
 
8313
      switch (field) {
-
 
8314
      case AWB_NUMBER:
-
 
8315
        if (value == null) {
-
 
8316
          unsetAwbNumber();
-
 
8317
        } else {
-
 
8318
          setAwbNumber((String)value);
-
 
8319
        }
-
 
8320
        break;
-
 
8321
 
-
 
8322
      }
-
 
8323
    }
-
 
8324
 
-
 
8325
    public Object getFieldValue(_Fields field) {
-
 
8326
      switch (field) {
-
 
8327
      case AWB_NUMBER:
-
 
8328
        return getAwbNumber();
-
 
8329
 
-
 
8330
      }
-
 
8331
      throw new IllegalStateException();
-
 
8332
    }
-
 
8333
 
-
 
8334
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8335
    public boolean isSet(_Fields field) {
-
 
8336
      if (field == null) {
-
 
8337
        throw new IllegalArgumentException();
-
 
8338
      }
-
 
8339
 
-
 
8340
      switch (field) {
-
 
8341
      case AWB_NUMBER:
-
 
8342
        return isSetAwbNumber();
-
 
8343
      }
-
 
8344
      throw new IllegalStateException();
-
 
8345
    }
-
 
8346
 
-
 
8347
    @Override
-
 
8348
    public boolean equals(Object that) {
-
 
8349
      if (that == null)
-
 
8350
        return false;
-
 
8351
      if (that instanceof getAwbForNumber_args)
-
 
8352
        return this.equals((getAwbForNumber_args)that);
-
 
8353
      return false;
-
 
8354
    }
-
 
8355
 
-
 
8356
    public boolean equals(getAwbForNumber_args that) {
-
 
8357
      if (that == null)
-
 
8358
        return false;
-
 
8359
 
-
 
8360
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
-
 
8361
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
-
 
8362
      if (this_present_awbNumber || that_present_awbNumber) {
-
 
8363
        if (!(this_present_awbNumber && that_present_awbNumber))
-
 
8364
          return false;
-
 
8365
        if (!this.awbNumber.equals(that.awbNumber))
-
 
8366
          return false;
-
 
8367
      }
-
 
8368
 
-
 
8369
      return true;
-
 
8370
    }
-
 
8371
 
-
 
8372
    @Override
-
 
8373
    public int hashCode() {
-
 
8374
      return 0;
-
 
8375
    }
-
 
8376
 
-
 
8377
    public int compareTo(getAwbForNumber_args other) {
-
 
8378
      if (!getClass().equals(other.getClass())) {
-
 
8379
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8380
      }
-
 
8381
 
-
 
8382
      int lastComparison = 0;
-
 
8383
      getAwbForNumber_args typedOther = (getAwbForNumber_args)other;
-
 
8384
 
-
 
8385
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
-
 
8386
      if (lastComparison != 0) {
-
 
8387
        return lastComparison;
-
 
8388
      }
-
 
8389
      if (isSetAwbNumber()) {
-
 
8390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
-
 
8391
        if (lastComparison != 0) {
-
 
8392
          return lastComparison;
-
 
8393
        }
-
 
8394
      }
-
 
8395
      return 0;
-
 
8396
    }
-
 
8397
 
-
 
8398
    public _Fields fieldForId(int fieldId) {
-
 
8399
      return _Fields.findByThriftId(fieldId);
-
 
8400
    }
-
 
8401
 
-
 
8402
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8403
      org.apache.thrift.protocol.TField field;
-
 
8404
      iprot.readStructBegin();
-
 
8405
      while (true)
-
 
8406
      {
-
 
8407
        field = iprot.readFieldBegin();
-
 
8408
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8409
          break;
-
 
8410
        }
-
 
8411
        switch (field.id) {
-
 
8412
          case 1: // AWB_NUMBER
-
 
8413
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
8414
              this.awbNumber = iprot.readString();
-
 
8415
            } else { 
-
 
8416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8417
            }
-
 
8418
            break;
-
 
8419
          default:
-
 
8420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8421
        }
-
 
8422
        iprot.readFieldEnd();
-
 
8423
      }
-
 
8424
      iprot.readStructEnd();
-
 
8425
      validate();
-
 
8426
    }
-
 
8427
 
-
 
8428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8429
      validate();
-
 
8430
 
-
 
8431
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8432
      if (this.awbNumber != null) {
-
 
8433
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
-
 
8434
        oprot.writeString(this.awbNumber);
-
 
8435
        oprot.writeFieldEnd();
-
 
8436
      }
-
 
8437
      oprot.writeFieldStop();
-
 
8438
      oprot.writeStructEnd();
-
 
8439
    }
-
 
8440
 
-
 
8441
    @Override
-
 
8442
    public String toString() {
-
 
8443
      StringBuilder sb = new StringBuilder("getAwbForNumber_args(");
-
 
8444
      boolean first = true;
-
 
8445
 
-
 
8446
      sb.append("awbNumber:");
-
 
8447
      if (this.awbNumber == null) {
-
 
8448
        sb.append("null");
-
 
8449
      } else {
-
 
8450
        sb.append(this.awbNumber);
-
 
8451
      }
-
 
8452
      first = false;
-
 
8453
      sb.append(")");
-
 
8454
      return sb.toString();
-
 
8455
    }
-
 
8456
 
-
 
8457
    public void validate() throws org.apache.thrift.TException {
-
 
8458
      // check for required fields
-
 
8459
    }
-
 
8460
 
-
 
8461
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8462
      try {
-
 
8463
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8464
      } catch (org.apache.thrift.TException te) {
-
 
8465
        throw new java.io.IOException(te);
-
 
8466
      }
-
 
8467
    }
-
 
8468
 
-
 
8469
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8470
      try {
-
 
8471
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8472
      } catch (org.apache.thrift.TException te) {
-
 
8473
        throw new java.io.IOException(te);
-
 
8474
      }
-
 
8475
    }
-
 
8476
 
-
 
8477
  }
-
 
8478
 
-
 
8479
  public static class getAwbForNumber_result implements org.apache.thrift.TBase<getAwbForNumber_result, getAwbForNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8480
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAwbForNumber_result");
-
 
8481
 
-
 
8482
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
8483
 
-
 
8484
    private Awb success; // required
-
 
8485
 
-
 
8486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8488
      SUCCESS((short)0, "success");
-
 
8489
 
-
 
8490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8491
 
-
 
8492
      static {
-
 
8493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8494
          byName.put(field.getFieldName(), field);
-
 
8495
        }
-
 
8496
      }
-
 
8497
 
-
 
8498
      /**
-
 
8499
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8500
       */
-
 
8501
      public static _Fields findByThriftId(int fieldId) {
-
 
8502
        switch(fieldId) {
-
 
8503
          case 0: // SUCCESS
-
 
8504
            return SUCCESS;
-
 
8505
          default:
-
 
8506
            return null;
-
 
8507
        }
-
 
8508
      }
-
 
8509
 
-
 
8510
      /**
-
 
8511
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8512
       * if it is not found.
-
 
8513
       */
-
 
8514
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8515
        _Fields fields = findByThriftId(fieldId);
-
 
8516
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8517
        return fields;
-
 
8518
      }
-
 
8519
 
-
 
8520
      /**
-
 
8521
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8522
       */
-
 
8523
      public static _Fields findByName(String name) {
-
 
8524
        return byName.get(name);
-
 
8525
      }
-
 
8526
 
-
 
8527
      private final short _thriftId;
-
 
8528
      private final String _fieldName;
-
 
8529
 
-
 
8530
      _Fields(short thriftId, String fieldName) {
-
 
8531
        _thriftId = thriftId;
-
 
8532
        _fieldName = fieldName;
-
 
8533
      }
-
 
8534
 
-
 
8535
      public short getThriftFieldId() {
-
 
8536
        return _thriftId;
-
 
8537
      }
-
 
8538
 
-
 
8539
      public String getFieldName() {
-
 
8540
        return _fieldName;
-
 
8541
      }
-
 
8542
    }
-
 
8543
 
-
 
8544
    // isset id assignments
-
 
8545
 
-
 
8546
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8547
    static {
-
 
8548
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8549
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8550
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Awb.class)));
-
 
8551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAwbForNumber_result.class, metaDataMap);
-
 
8553
    }
-
 
8554
 
-
 
8555
    public getAwbForNumber_result() {
-
 
8556
    }
-
 
8557
 
-
 
8558
    public getAwbForNumber_result(
-
 
8559
      Awb success)
-
 
8560
    {
-
 
8561
      this();
-
 
8562
      this.success = success;
-
 
8563
    }
-
 
8564
 
-
 
8565
    /**
-
 
8566
     * Performs a deep copy on <i>other</i>.
-
 
8567
     */
-
 
8568
    public getAwbForNumber_result(getAwbForNumber_result other) {
-
 
8569
      if (other.isSetSuccess()) {
-
 
8570
        this.success = new Awb(other.success);
-
 
8571
      }
-
 
8572
    }
-
 
8573
 
-
 
8574
    public getAwbForNumber_result deepCopy() {
-
 
8575
      return new getAwbForNumber_result(this);
-
 
8576
    }
-
 
8577
 
-
 
8578
    @Override
-
 
8579
    public void clear() {
-
 
8580
      this.success = null;
-
 
8581
    }
-
 
8582
 
-
 
8583
    public Awb getSuccess() {
-
 
8584
      return this.success;
-
 
8585
    }
-
 
8586
 
-
 
8587
    public void setSuccess(Awb success) {
-
 
8588
      this.success = success;
-
 
8589
    }
-
 
8590
 
-
 
8591
    public void unsetSuccess() {
-
 
8592
      this.success = null;
-
 
8593
    }
-
 
8594
 
-
 
8595
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
8596
    public boolean isSetSuccess() {
-
 
8597
      return this.success != null;
-
 
8598
    }
-
 
8599
 
-
 
8600
    public void setSuccessIsSet(boolean value) {
-
 
8601
      if (!value) {
-
 
8602
        this.success = null;
-
 
8603
      }
-
 
8604
    }
-
 
8605
 
-
 
8606
    public void setFieldValue(_Fields field, Object value) {
-
 
8607
      switch (field) {
-
 
8608
      case SUCCESS:
-
 
8609
        if (value == null) {
-
 
8610
          unsetSuccess();
-
 
8611
        } else {
-
 
8612
          setSuccess((Awb)value);
-
 
8613
        }
-
 
8614
        break;
-
 
8615
 
-
 
8616
      }
-
 
8617
    }
-
 
8618
 
-
 
8619
    public Object getFieldValue(_Fields field) {
-
 
8620
      switch (field) {
-
 
8621
      case SUCCESS:
-
 
8622
        return getSuccess();
-
 
8623
 
-
 
8624
      }
-
 
8625
      throw new IllegalStateException();
-
 
8626
    }
-
 
8627
 
-
 
8628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8629
    public boolean isSet(_Fields field) {
-
 
8630
      if (field == null) {
-
 
8631
        throw new IllegalArgumentException();
-
 
8632
      }
-
 
8633
 
-
 
8634
      switch (field) {
-
 
8635
      case SUCCESS:
-
 
8636
        return isSetSuccess();
-
 
8637
      }
-
 
8638
      throw new IllegalStateException();
-
 
8639
    }
-
 
8640
 
-
 
8641
    @Override
-
 
8642
    public boolean equals(Object that) {
-
 
8643
      if (that == null)
-
 
8644
        return false;
-
 
8645
      if (that instanceof getAwbForNumber_result)
-
 
8646
        return this.equals((getAwbForNumber_result)that);
-
 
8647
      return false;
-
 
8648
    }
-
 
8649
 
-
 
8650
    public boolean equals(getAwbForNumber_result that) {
-
 
8651
      if (that == null)
-
 
8652
        return false;
-
 
8653
 
-
 
8654
      boolean this_present_success = true && this.isSetSuccess();
-
 
8655
      boolean that_present_success = true && that.isSetSuccess();
-
 
8656
      if (this_present_success || that_present_success) {
-
 
8657
        if (!(this_present_success && that_present_success))
-
 
8658
          return false;
-
 
8659
        if (!this.success.equals(that.success))
-
 
8660
          return false;
-
 
8661
      }
-
 
8662
 
-
 
8663
      return true;
-
 
8664
    }
-
 
8665
 
-
 
8666
    @Override
-
 
8667
    public int hashCode() {
-
 
8668
      return 0;
-
 
8669
    }
-
 
8670
 
-
 
8671
    public int compareTo(getAwbForNumber_result other) {
-
 
8672
      if (!getClass().equals(other.getClass())) {
-
 
8673
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8674
      }
-
 
8675
 
-
 
8676
      int lastComparison = 0;
-
 
8677
      getAwbForNumber_result typedOther = (getAwbForNumber_result)other;
-
 
8678
 
-
 
8679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
8680
      if (lastComparison != 0) {
-
 
8681
        return lastComparison;
-
 
8682
      }
-
 
8683
      if (isSetSuccess()) {
-
 
8684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
8685
        if (lastComparison != 0) {
-
 
8686
          return lastComparison;
-
 
8687
        }
-
 
8688
      }
-
 
8689
      return 0;
-
 
8690
    }
-
 
8691
 
-
 
8692
    public _Fields fieldForId(int fieldId) {
-
 
8693
      return _Fields.findByThriftId(fieldId);
-
 
8694
    }
-
 
8695
 
-
 
8696
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8697
      org.apache.thrift.protocol.TField field;
-
 
8698
      iprot.readStructBegin();
-
 
8699
      while (true)
-
 
8700
      {
-
 
8701
        field = iprot.readFieldBegin();
-
 
8702
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8703
          break;
-
 
8704
        }
-
 
8705
        switch (field.id) {
-
 
8706
          case 0: // SUCCESS
-
 
8707
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8708
              this.success = new Awb();
-
 
8709
              this.success.read(iprot);
-
 
8710
            } else { 
-
 
8711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8712
            }
-
 
8713
            break;
-
 
8714
          default:
-
 
8715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8716
        }
-
 
8717
        iprot.readFieldEnd();
-
 
8718
      }
-
 
8719
      iprot.readStructEnd();
-
 
8720
      validate();
-
 
8721
    }
-
 
8722
 
-
 
8723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8724
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8725
 
-
 
8726
      if (this.isSetSuccess()) {
-
 
8727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8728
        this.success.write(oprot);
-
 
8729
        oprot.writeFieldEnd();
-
 
8730
      }
-
 
8731
      oprot.writeFieldStop();
-
 
8732
      oprot.writeStructEnd();
-
 
8733
    }
-
 
8734
 
-
 
8735
    @Override
-
 
8736
    public String toString() {
-
 
8737
      StringBuilder sb = new StringBuilder("getAwbForNumber_result(");
-
 
8738
      boolean first = true;
-
 
8739
 
-
 
8740
      sb.append("success:");
-
 
8741
      if (this.success == null) {
-
 
8742
        sb.append("null");
-
 
8743
      } else {
-
 
8744
        sb.append(this.success);
-
 
8745
      }
-
 
8746
      first = false;
-
 
8747
      sb.append(")");
-
 
8748
      return sb.toString();
-
 
8749
    }
-
 
8750
 
8082
    public void validate() throws org.apache.thrift.TException {
8751
    public void validate() throws org.apache.thrift.TException {
8083
      // check for required fields
8752
      // check for required fields
8084
    }
8753
    }
8085
 
8754
 
8086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {