Subversion Repositories SmartDukaan

Rev

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

Rev 6988 Rev 7026
Line 914... Line 914...
914
 
914
 
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
916
 
916
 
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
918
 
918
 
-
 
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
-
 
920
 
919
  }
921
  }
920
 
922
 
921
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
923
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
922
 
924
 
923
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
925
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1222... Line 1224...
1222
 
1224
 
1223
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1225
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1224
 
1226
 
1225
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1227
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1226
 
1228
 
-
 
1229
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
-
 
1230
 
1227
  }
1231
  }
1228
 
1232
 
1229
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1233
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1230
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1234
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1231
      public Factory() {}
1235
      public Factory() {}
Line 5074... Line 5078...
5074
        return result.success;
5078
        return result.success;
5075
      }
5079
      }
5076
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveInvoice failed: unknown result");
5080
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveInvoice failed: unknown result");
5077
    }
5081
    }
5078
 
5082
 
-
 
5083
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException
-
 
5084
    {
-
 
5085
      send_receiveUpdatesForRedExpress(awbNumber);
-
 
5086
      return recv_receiveUpdatesForRedExpress();
-
 
5087
    }
-
 
5088
 
-
 
5089
    public void send_receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException
-
 
5090
    {
-
 
5091
      receiveUpdatesForRedExpress_args args = new receiveUpdatesForRedExpress_args();
-
 
5092
      args.setAwbNumber(awbNumber);
-
 
5093
      sendBase("receiveUpdatesForRedExpress", args);
-
 
5094
    }
-
 
5095
 
-
 
5096
    public List<String> recv_receiveUpdatesForRedExpress() throws org.apache.thrift.TException
-
 
5097
    {
-
 
5098
      receiveUpdatesForRedExpress_result result = new receiveUpdatesForRedExpress_result();
-
 
5099
      receiveBase(result, "receiveUpdatesForRedExpress");
-
 
5100
      if (result.isSetSuccess()) {
-
 
5101
        return result.success;
-
 
5102
      }
-
 
5103
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveUpdatesForRedExpress failed: unknown result");
-
 
5104
    }
-
 
5105
 
5079
  }
5106
  }
5080
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5107
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5081
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5108
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5082
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5109
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5083
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5110
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10409... Line 10436...
10409
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10436
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10410
        return (new Client(prot)).recv_retrieveInvoice();
10437
        return (new Client(prot)).recv_retrieveInvoice();
10411
      }
10438
      }
10412
    }
10439
    }
10413
 
10440
 
-
 
10441
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException {
-
 
10442
      checkReady();
-
 
10443
      receiveUpdatesForRedExpress_call method_call = new receiveUpdatesForRedExpress_call(awbNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
10444
      this.___currentMethod = method_call;
-
 
10445
      ___manager.call(method_call);
-
 
10446
    }
-
 
10447
 
-
 
10448
    public static class receiveUpdatesForRedExpress_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10449
      private String awbNumber;
-
 
10450
      public receiveUpdatesForRedExpress_call(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<receiveUpdatesForRedExpress_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 {
-
 
10451
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10452
        this.awbNumber = awbNumber;
-
 
10453
      }
-
 
10454
 
-
 
10455
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10456
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveUpdatesForRedExpress", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10457
        receiveUpdatesForRedExpress_args args = new receiveUpdatesForRedExpress_args();
-
 
10458
        args.setAwbNumber(awbNumber);
-
 
10459
        args.write(prot);
-
 
10460
        prot.writeMessageEnd();
-
 
10461
      }
-
 
10462
 
-
 
10463
      public List<String> getResult() throws org.apache.thrift.TException {
-
 
10464
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10465
          throw new IllegalStateException("Method call not finished!");
-
 
10466
        }
-
 
10467
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10468
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10469
        return (new Client(prot)).recv_receiveUpdatesForRedExpress();
-
 
10470
      }
-
 
10471
    }
-
 
10472
 
10414
  }
10473
  }
10415
 
10474
 
10416
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10475
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10417
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10476
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10418
    public Processor(I iface) {
10477
    public Processor(I iface) {
Line 10574... Line 10633...
10574
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10633
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10575
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10634
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10576
      processMap.put("getDocument", new getDocument());
10635
      processMap.put("getDocument", new getDocument());
10577
      processMap.put("changeShippingAddress", new changeShippingAddress());
10636
      processMap.put("changeShippingAddress", new changeShippingAddress());
10578
      processMap.put("retrieveInvoice", new retrieveInvoice());
10637
      processMap.put("retrieveInvoice", new retrieveInvoice());
-
 
10638
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
10579
      return processMap;
10639
      return processMap;
10580
    }
10640
    }
10581
 
10641
 
10582
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10642
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10583
      public createTransaction() {
10643
      public createTransaction() {
Line 13437... Line 13497...
13437
        result.success = iface.retrieveInvoice(args.orderId);
13497
        result.success = iface.retrieveInvoice(args.orderId);
13438
        return result;
13498
        return result;
13439
      }
13499
      }
13440
    }
13500
    }
13441
 
13501
 
-
 
13502
    private static class receiveUpdatesForRedExpress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveUpdatesForRedExpress_args> {
-
 
13503
      public receiveUpdatesForRedExpress() {
-
 
13504
        super("receiveUpdatesForRedExpress");
-
 
13505
      }
-
 
13506
 
-
 
13507
      protected receiveUpdatesForRedExpress_args getEmptyArgsInstance() {
-
 
13508
        return new receiveUpdatesForRedExpress_args();
-
 
13509
      }
-
 
13510
 
-
 
13511
      protected receiveUpdatesForRedExpress_result getResult(I iface, receiveUpdatesForRedExpress_args args) throws org.apache.thrift.TException {
-
 
13512
        receiveUpdatesForRedExpress_result result = new receiveUpdatesForRedExpress_result();
-
 
13513
        result.success = iface.receiveUpdatesForRedExpress(args.awbNumber);
-
 
13514
        return result;
-
 
13515
      }
-
 
13516
    }
-
 
13517
 
13442
  }
13518
  }
13443
 
13519
 
13444
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13520
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13446
 
13522
 
Line 124114... Line 124190...
124114
      }
124190
      }
124115
      first = false;
124191
      first = false;
124116
      sb.append(")");
124192
      sb.append(")");
124117
      return sb.toString();
124193
      return sb.toString();
124118
    }
124194
    }
-
 
124195
 
-
 
124196
    public void validate() throws org.apache.thrift.TException {
-
 
124197
      // check for required fields
-
 
124198
    }
-
 
124199
 
-
 
124200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124201
      try {
-
 
124202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124203
      } catch (org.apache.thrift.TException te) {
-
 
124204
        throw new java.io.IOException(te);
-
 
124205
      }
-
 
124206
    }
-
 
124207
 
-
 
124208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124209
      try {
-
 
124210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124211
      } catch (org.apache.thrift.TException te) {
-
 
124212
        throw new java.io.IOException(te);
-
 
124213
      }
-
 
124214
    }
-
 
124215
 
-
 
124216
  }
-
 
124217
 
-
 
124218
  public static class receiveUpdatesForRedExpress_args implements org.apache.thrift.TBase<receiveUpdatesForRedExpress_args, receiveUpdatesForRedExpress_args._Fields>, java.io.Serializable, Cloneable   {
-
 
124219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveUpdatesForRedExpress_args");
-
 
124220
 
-
 
124221
    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);
-
 
124222
 
-
 
124223
    private String awbNumber; // required
-
 
124224
 
-
 
124225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124227
      AWB_NUMBER((short)1, "awbNumber");
-
 
124228
 
-
 
124229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124230
 
-
 
124231
      static {
-
 
124232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124233
          byName.put(field.getFieldName(), field);
-
 
124234
        }
-
 
124235
      }
-
 
124236
 
-
 
124237
      /**
-
 
124238
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124239
       */
-
 
124240
      public static _Fields findByThriftId(int fieldId) {
-
 
124241
        switch(fieldId) {
-
 
124242
          case 1: // AWB_NUMBER
-
 
124243
            return AWB_NUMBER;
-
 
124244
          default:
-
 
124245
            return null;
-
 
124246
        }
-
 
124247
      }
-
 
124248
 
-
 
124249
      /**
-
 
124250
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124251
       * if it is not found.
-
 
124252
       */
-
 
124253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124254
        _Fields fields = findByThriftId(fieldId);
-
 
124255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124256
        return fields;
-
 
124257
      }
-
 
124258
 
-
 
124259
      /**
-
 
124260
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124261
       */
-
 
124262
      public static _Fields findByName(String name) {
-
 
124263
        return byName.get(name);
-
 
124264
      }
-
 
124265
 
-
 
124266
      private final short _thriftId;
-
 
124267
      private final String _fieldName;
-
 
124268
 
-
 
124269
      _Fields(short thriftId, String fieldName) {
-
 
124270
        _thriftId = thriftId;
-
 
124271
        _fieldName = fieldName;
-
 
124272
      }
-
 
124273
 
-
 
124274
      public short getThriftFieldId() {
-
 
124275
        return _thriftId;
-
 
124276
      }
-
 
124277
 
-
 
124278
      public String getFieldName() {
-
 
124279
        return _fieldName;
-
 
124280
      }
-
 
124281
    }
-
 
124282
 
-
 
124283
    // isset id assignments
-
 
124284
 
-
 
124285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124286
    static {
-
 
124287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124288
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
124290
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124291
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveUpdatesForRedExpress_args.class, metaDataMap);
-
 
124292
    }
-
 
124293
 
-
 
124294
    public receiveUpdatesForRedExpress_args() {
-
 
124295
    }
-
 
124296
 
-
 
124297
    public receiveUpdatesForRedExpress_args(
-
 
124298
      String awbNumber)
-
 
124299
    {
-
 
124300
      this();
-
 
124301
      this.awbNumber = awbNumber;
-
 
124302
    }
-
 
124303
 
-
 
124304
    /**
-
 
124305
     * Performs a deep copy on <i>other</i>.
-
 
124306
     */
-
 
124307
    public receiveUpdatesForRedExpress_args(receiveUpdatesForRedExpress_args other) {
-
 
124308
      if (other.isSetAwbNumber()) {
-
 
124309
        this.awbNumber = other.awbNumber;
-
 
124310
      }
-
 
124311
    }
-
 
124312
 
-
 
124313
    public receiveUpdatesForRedExpress_args deepCopy() {
-
 
124314
      return new receiveUpdatesForRedExpress_args(this);
-
 
124315
    }
-
 
124316
 
-
 
124317
    @Override
-
 
124318
    public void clear() {
-
 
124319
      this.awbNumber = null;
-
 
124320
    }
-
 
124321
 
-
 
124322
    public String getAwbNumber() {
-
 
124323
      return this.awbNumber;
-
 
124324
    }
-
 
124325
 
-
 
124326
    public void setAwbNumber(String awbNumber) {
-
 
124327
      this.awbNumber = awbNumber;
-
 
124328
    }
-
 
124329
 
-
 
124330
    public void unsetAwbNumber() {
-
 
124331
      this.awbNumber = null;
-
 
124332
    }
-
 
124333
 
-
 
124334
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
-
 
124335
    public boolean isSetAwbNumber() {
-
 
124336
      return this.awbNumber != null;
-
 
124337
    }
-
 
124338
 
-
 
124339
    public void setAwbNumberIsSet(boolean value) {
-
 
124340
      if (!value) {
-
 
124341
        this.awbNumber = null;
-
 
124342
      }
-
 
124343
    }
-
 
124344
 
-
 
124345
    public void setFieldValue(_Fields field, Object value) {
-
 
124346
      switch (field) {
-
 
124347
      case AWB_NUMBER:
-
 
124348
        if (value == null) {
-
 
124349
          unsetAwbNumber();
-
 
124350
        } else {
-
 
124351
          setAwbNumber((String)value);
-
 
124352
        }
-
 
124353
        break;
-
 
124354
 
-
 
124355
      }
-
 
124356
    }
-
 
124357
 
-
 
124358
    public Object getFieldValue(_Fields field) {
-
 
124359
      switch (field) {
-
 
124360
      case AWB_NUMBER:
-
 
124361
        return getAwbNumber();
-
 
124362
 
-
 
124363
      }
-
 
124364
      throw new IllegalStateException();
-
 
124365
    }
-
 
124366
 
-
 
124367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
124368
    public boolean isSet(_Fields field) {
-
 
124369
      if (field == null) {
-
 
124370
        throw new IllegalArgumentException();
-
 
124371
      }
-
 
124372
 
-
 
124373
      switch (field) {
-
 
124374
      case AWB_NUMBER:
-
 
124375
        return isSetAwbNumber();
-
 
124376
      }
-
 
124377
      throw new IllegalStateException();
-
 
124378
    }
-
 
124379
 
-
 
124380
    @Override
-
 
124381
    public boolean equals(Object that) {
-
 
124382
      if (that == null)
-
 
124383
        return false;
-
 
124384
      if (that instanceof receiveUpdatesForRedExpress_args)
-
 
124385
        return this.equals((receiveUpdatesForRedExpress_args)that);
-
 
124386
      return false;
-
 
124387
    }
-
 
124388
 
-
 
124389
    public boolean equals(receiveUpdatesForRedExpress_args that) {
-
 
124390
      if (that == null)
-
 
124391
        return false;
-
 
124392
 
-
 
124393
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
-
 
124394
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
-
 
124395
      if (this_present_awbNumber || that_present_awbNumber) {
-
 
124396
        if (!(this_present_awbNumber && that_present_awbNumber))
-
 
124397
          return false;
-
 
124398
        if (!this.awbNumber.equals(that.awbNumber))
-
 
124399
          return false;
-
 
124400
      }
-
 
124401
 
-
 
124402
      return true;
-
 
124403
    }
-
 
124404
 
-
 
124405
    @Override
-
 
124406
    public int hashCode() {
-
 
124407
      return 0;
-
 
124408
    }
-
 
124409
 
-
 
124410
    public int compareTo(receiveUpdatesForRedExpress_args other) {
-
 
124411
      if (!getClass().equals(other.getClass())) {
-
 
124412
        return getClass().getName().compareTo(other.getClass().getName());
-
 
124413
      }
-
 
124414
 
-
 
124415
      int lastComparison = 0;
-
 
124416
      receiveUpdatesForRedExpress_args typedOther = (receiveUpdatesForRedExpress_args)other;
-
 
124417
 
-
 
124418
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
-
 
124419
      if (lastComparison != 0) {
-
 
124420
        return lastComparison;
-
 
124421
      }
-
 
124422
      if (isSetAwbNumber()) {
-
 
124423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
-
 
124424
        if (lastComparison != 0) {
-
 
124425
          return lastComparison;
-
 
124426
        }
-
 
124427
      }
-
 
124428
      return 0;
-
 
124429
    }
-
 
124430
 
-
 
124431
    public _Fields fieldForId(int fieldId) {
-
 
124432
      return _Fields.findByThriftId(fieldId);
-
 
124433
    }
-
 
124434
 
-
 
124435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
124436
      org.apache.thrift.protocol.TField field;
-
 
124437
      iprot.readStructBegin();
-
 
124438
      while (true)
-
 
124439
      {
-
 
124440
        field = iprot.readFieldBegin();
-
 
124441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
124442
          break;
-
 
124443
        }
-
 
124444
        switch (field.id) {
-
 
124445
          case 1: // AWB_NUMBER
-
 
124446
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
124447
              this.awbNumber = iprot.readString();
-
 
124448
            } else { 
-
 
124449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124450
            }
-
 
124451
            break;
-
 
124452
          default:
-
 
124453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124454
        }
-
 
124455
        iprot.readFieldEnd();
-
 
124456
      }
-
 
124457
      iprot.readStructEnd();
-
 
124458
      validate();
-
 
124459
    }
-
 
124460
 
-
 
124461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
124462
      validate();
-
 
124463
 
-
 
124464
      oprot.writeStructBegin(STRUCT_DESC);
-
 
124465
      if (this.awbNumber != null) {
-
 
124466
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
-
 
124467
        oprot.writeString(this.awbNumber);
-
 
124468
        oprot.writeFieldEnd();
-
 
124469
      }
-
 
124470
      oprot.writeFieldStop();
-
 
124471
      oprot.writeStructEnd();
-
 
124472
    }
-
 
124473
 
-
 
124474
    @Override
-
 
124475
    public String toString() {
-
 
124476
      StringBuilder sb = new StringBuilder("receiveUpdatesForRedExpress_args(");
-
 
124477
      boolean first = true;
-
 
124478
 
-
 
124479
      sb.append("awbNumber:");
-
 
124480
      if (this.awbNumber == null) {
-
 
124481
        sb.append("null");
-
 
124482
      } else {
-
 
124483
        sb.append(this.awbNumber);
-
 
124484
      }
-
 
124485
      first = false;
-
 
124486
      sb.append(")");
-
 
124487
      return sb.toString();
-
 
124488
    }
-
 
124489
 
-
 
124490
    public void validate() throws org.apache.thrift.TException {
-
 
124491
      // check for required fields
-
 
124492
    }
-
 
124493
 
-
 
124494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124495
      try {
-
 
124496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124497
      } catch (org.apache.thrift.TException te) {
-
 
124498
        throw new java.io.IOException(te);
-
 
124499
      }
-
 
124500
    }
-
 
124501
 
-
 
124502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124503
      try {
-
 
124504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124505
      } catch (org.apache.thrift.TException te) {
-
 
124506
        throw new java.io.IOException(te);
-
 
124507
      }
-
 
124508
    }
-
 
124509
 
-
 
124510
  }
-
 
124511
 
-
 
124512
  public static class receiveUpdatesForRedExpress_result implements org.apache.thrift.TBase<receiveUpdatesForRedExpress_result, receiveUpdatesForRedExpress_result._Fields>, java.io.Serializable, Cloneable   {
-
 
124513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveUpdatesForRedExpress_result");
-
 
124514
 
-
 
124515
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
124516
 
-
 
124517
    private List<String> success; // required
-
 
124518
 
-
 
124519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124521
      SUCCESS((short)0, "success");
-
 
124522
 
-
 
124523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124524
 
-
 
124525
      static {
-
 
124526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124527
          byName.put(field.getFieldName(), field);
-
 
124528
        }
-
 
124529
      }
-
 
124530
 
-
 
124531
      /**
-
 
124532
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124533
       */
-
 
124534
      public static _Fields findByThriftId(int fieldId) {
-
 
124535
        switch(fieldId) {
-
 
124536
          case 0: // SUCCESS
-
 
124537
            return SUCCESS;
-
 
124538
          default:
-
 
124539
            return null;
-
 
124540
        }
-
 
124541
      }
-
 
124542
 
-
 
124543
      /**
-
 
124544
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124545
       * if it is not found.
-
 
124546
       */
-
 
124547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124548
        _Fields fields = findByThriftId(fieldId);
-
 
124549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124550
        return fields;
-
 
124551
      }
-
 
124552
 
-
 
124553
      /**
-
 
124554
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124555
       */
-
 
124556
      public static _Fields findByName(String name) {
-
 
124557
        return byName.get(name);
-
 
124558
      }
-
 
124559
 
-
 
124560
      private final short _thriftId;
-
 
124561
      private final String _fieldName;
-
 
124562
 
-
 
124563
      _Fields(short thriftId, String fieldName) {
-
 
124564
        _thriftId = thriftId;
-
 
124565
        _fieldName = fieldName;
-
 
124566
      }
-
 
124567
 
-
 
124568
      public short getThriftFieldId() {
-
 
124569
        return _thriftId;
-
 
124570
      }
-
 
124571
 
-
 
124572
      public String getFieldName() {
-
 
124573
        return _fieldName;
-
 
124574
      }
-
 
124575
    }
-
 
124576
 
-
 
124577
    // isset id assignments
-
 
124578
 
-
 
124579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124580
    static {
-
 
124581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124583
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
124584
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
124585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveUpdatesForRedExpress_result.class, metaDataMap);
-
 
124587
    }
-
 
124588
 
-
 
124589
    public receiveUpdatesForRedExpress_result() {
-
 
124590
    }
-
 
124591
 
-
 
124592
    public receiveUpdatesForRedExpress_result(
-
 
124593
      List<String> success)
-
 
124594
    {
-
 
124595
      this();
-
 
124596
      this.success = success;
-
 
124597
    }
-
 
124598
 
-
 
124599
    /**
-
 
124600
     * Performs a deep copy on <i>other</i>.
-
 
124601
     */
-
 
124602
    public receiveUpdatesForRedExpress_result(receiveUpdatesForRedExpress_result other) {
-
 
124603
      if (other.isSetSuccess()) {
-
 
124604
        List<String> __this__success = new ArrayList<String>();
-
 
124605
        for (String other_element : other.success) {
-
 
124606
          __this__success.add(other_element);
-
 
124607
        }
-
 
124608
        this.success = __this__success;
-
 
124609
      }
-
 
124610
    }
-
 
124611
 
-
 
124612
    public receiveUpdatesForRedExpress_result deepCopy() {
-
 
124613
      return new receiveUpdatesForRedExpress_result(this);
-
 
124614
    }
-
 
124615
 
-
 
124616
    @Override
-
 
124617
    public void clear() {
-
 
124618
      this.success = null;
-
 
124619
    }
-
 
124620
 
-
 
124621
    public int getSuccessSize() {
-
 
124622
      return (this.success == null) ? 0 : this.success.size();
-
 
124623
    }
-
 
124624
 
-
 
124625
    public java.util.Iterator<String> getSuccessIterator() {
-
 
124626
      return (this.success == null) ? null : this.success.iterator();
-
 
124627
    }
-
 
124628
 
-
 
124629
    public void addToSuccess(String elem) {
-
 
124630
      if (this.success == null) {
-
 
124631
        this.success = new ArrayList<String>();
-
 
124632
      }
-
 
124633
      this.success.add(elem);
-
 
124634
    }
-
 
124635
 
-
 
124636
    public List<String> getSuccess() {
-
 
124637
      return this.success;
-
 
124638
    }
-
 
124639
 
-
 
124640
    public void setSuccess(List<String> success) {
-
 
124641
      this.success = success;
-
 
124642
    }
-
 
124643
 
-
 
124644
    public void unsetSuccess() {
-
 
124645
      this.success = null;
-
 
124646
    }
-
 
124647
 
-
 
124648
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
124649
    public boolean isSetSuccess() {
-
 
124650
      return this.success != null;
-
 
124651
    }
-
 
124652
 
-
 
124653
    public void setSuccessIsSet(boolean value) {
-
 
124654
      if (!value) {
-
 
124655
        this.success = null;
-
 
124656
      }
-
 
124657
    }
-
 
124658
 
-
 
124659
    public void setFieldValue(_Fields field, Object value) {
-
 
124660
      switch (field) {
-
 
124661
      case SUCCESS:
-
 
124662
        if (value == null) {
-
 
124663
          unsetSuccess();
-
 
124664
        } else {
-
 
124665
          setSuccess((List<String>)value);
-
 
124666
        }
-
 
124667
        break;
-
 
124668
 
-
 
124669
      }
-
 
124670
    }
-
 
124671
 
-
 
124672
    public Object getFieldValue(_Fields field) {
-
 
124673
      switch (field) {
-
 
124674
      case SUCCESS:
-
 
124675
        return getSuccess();
-
 
124676
 
-
 
124677
      }
-
 
124678
      throw new IllegalStateException();
-
 
124679
    }
-
 
124680
 
-
 
124681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
124682
    public boolean isSet(_Fields field) {
-
 
124683
      if (field == null) {
-
 
124684
        throw new IllegalArgumentException();
-
 
124685
      }
-
 
124686
 
-
 
124687
      switch (field) {
-
 
124688
      case SUCCESS:
-
 
124689
        return isSetSuccess();
-
 
124690
      }
-
 
124691
      throw new IllegalStateException();
-
 
124692
    }
-
 
124693
 
-
 
124694
    @Override
-
 
124695
    public boolean equals(Object that) {
-
 
124696
      if (that == null)
-
 
124697
        return false;
-
 
124698
      if (that instanceof receiveUpdatesForRedExpress_result)
-
 
124699
        return this.equals((receiveUpdatesForRedExpress_result)that);
-
 
124700
      return false;
-
 
124701
    }
-
 
124702
 
-
 
124703
    public boolean equals(receiveUpdatesForRedExpress_result that) {
-
 
124704
      if (that == null)
-
 
124705
        return false;
-
 
124706
 
-
 
124707
      boolean this_present_success = true && this.isSetSuccess();
-
 
124708
      boolean that_present_success = true && that.isSetSuccess();
-
 
124709
      if (this_present_success || that_present_success) {
-
 
124710
        if (!(this_present_success && that_present_success))
-
 
124711
          return false;
-
 
124712
        if (!this.success.equals(that.success))
-
 
124713
          return false;
-
 
124714
      }
-
 
124715
 
-
 
124716
      return true;
-
 
124717
    }
-
 
124718
 
-
 
124719
    @Override
-
 
124720
    public int hashCode() {
-
 
124721
      return 0;
-
 
124722
    }
-
 
124723
 
-
 
124724
    public int compareTo(receiveUpdatesForRedExpress_result other) {
-
 
124725
      if (!getClass().equals(other.getClass())) {
-
 
124726
        return getClass().getName().compareTo(other.getClass().getName());
-
 
124727
      }
-
 
124728
 
-
 
124729
      int lastComparison = 0;
-
 
124730
      receiveUpdatesForRedExpress_result typedOther = (receiveUpdatesForRedExpress_result)other;
-
 
124731
 
-
 
124732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
124733
      if (lastComparison != 0) {
-
 
124734
        return lastComparison;
-
 
124735
      }
-
 
124736
      if (isSetSuccess()) {
-
 
124737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
124738
        if (lastComparison != 0) {
-
 
124739
          return lastComparison;
-
 
124740
        }
-
 
124741
      }
-
 
124742
      return 0;
-
 
124743
    }
-
 
124744
 
-
 
124745
    public _Fields fieldForId(int fieldId) {
-
 
124746
      return _Fields.findByThriftId(fieldId);
-
 
124747
    }
-
 
124748
 
-
 
124749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
124750
      org.apache.thrift.protocol.TField field;
-
 
124751
      iprot.readStructBegin();
-
 
124752
      while (true)
-
 
124753
      {
-
 
124754
        field = iprot.readFieldBegin();
-
 
124755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
124756
          break;
-
 
124757
        }
-
 
124758
        switch (field.id) {
-
 
124759
          case 0: // SUCCESS
-
 
124760
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
124761
              {
-
 
124762
                org.apache.thrift.protocol.TList _list414 = iprot.readListBegin();
-
 
124763
                this.success = new ArrayList<String>(_list414.size);
-
 
124764
                for (int _i415 = 0; _i415 < _list414.size; ++_i415)
-
 
124765
                {
-
 
124766
                  String _elem416; // required
-
 
124767
                  _elem416 = iprot.readString();
-
 
124768
                  this.success.add(_elem416);
-
 
124769
                }
-
 
124770
                iprot.readListEnd();
-
 
124771
              }
-
 
124772
            } else { 
-
 
124773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124774
            }
-
 
124775
            break;
-
 
124776
          default:
-
 
124777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124778
        }
-
 
124779
        iprot.readFieldEnd();
-
 
124780
      }
-
 
124781
      iprot.readStructEnd();
-
 
124782
      validate();
-
 
124783
    }
-
 
124784
 
-
 
124785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
124786
      oprot.writeStructBegin(STRUCT_DESC);
-
 
124787
 
-
 
124788
      if (this.isSetSuccess()) {
-
 
124789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
124790
        {
-
 
124791
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
124792
          for (String _iter417 : this.success)
-
 
124793
          {
-
 
124794
            oprot.writeString(_iter417);
-
 
124795
          }
-
 
124796
          oprot.writeListEnd();
-
 
124797
        }
-
 
124798
        oprot.writeFieldEnd();
-
 
124799
      }
-
 
124800
      oprot.writeFieldStop();
-
 
124801
      oprot.writeStructEnd();
-
 
124802
    }
-
 
124803
 
-
 
124804
    @Override
-
 
124805
    public String toString() {
-
 
124806
      StringBuilder sb = new StringBuilder("receiveUpdatesForRedExpress_result(");
-
 
124807
      boolean first = true;
-
 
124808
 
-
 
124809
      sb.append("success:");
-
 
124810
      if (this.success == null) {
-
 
124811
        sb.append("null");
-
 
124812
      } else {
-
 
124813
        sb.append(this.success);
-
 
124814
      }
-
 
124815
      first = false;
-
 
124816
      sb.append(")");
-
 
124817
      return sb.toString();
-
 
124818
    }
124119
 
124819
 
124120
    public void validate() throws org.apache.thrift.TException {
124820
    public void validate() throws org.apache.thrift.TException {
124121
      // check for required fields
124821
      // check for required fields
124122
    }
124822
    }
124123
 
124823