Subversion Repositories SmartDukaan

Rev

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

Rev 19474 Rev 20724
Line 61... Line 61...
61
 
61
 
62
    /**
62
    /**
63
     * Returns an unused AWB number for the given provider.
63
     * Returns an unused AWB number for the given provider.
64
     * 
64
     * 
65
     * @param providerId
65
     * @param providerId
66
     * @param type
66
     * @param logisticsTransactionId
67
     */
67
     */
68
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
68
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException;
69
 
69
 
70
    /**
70
    /**
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
72
     * 
72
     * 
73
     * @param awbNumber
73
     * @param awbNumber
Line 172... Line 172...
172
 
172
 
173
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
173
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
174
 
174
 
175
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
175
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
176
 
176
 
177
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
177
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
178
 
178
 
179
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
179
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
180
 
180
 
181
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
181
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
182
 
182
 
Line 372... Line 372...
372
        throw result.se;
372
        throw result.se;
373
      }
373
      }
374
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
374
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
375
    }
375
    }
376
 
376
 
377
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
377
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException
378
    {
378
    {
379
      send_getEmptyAWB(providerId, type);
379
      send_getEmptyAWB(providerId, logisticsTransactionId);
380
      return recv_getEmptyAWB();
380
      return recv_getEmptyAWB();
381
    }
381
    }
382
 
382
 
383
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
383
    public void send_getEmptyAWB(long providerId, String logisticsTransactionId) throws org.apache.thrift.TException
384
    {
384
    {
385
      getEmptyAWB_args args = new getEmptyAWB_args();
385
      getEmptyAWB_args args = new getEmptyAWB_args();
386
      args.setProviderId(providerId);
386
      args.setProviderId(providerId);
387
      args.setType(type);
387
      args.setLogisticsTransactionId(logisticsTransactionId);
388
      sendBase("getEmptyAWB", args);
388
      sendBase("getEmptyAWB", args);
389
    }
389
    }
390
 
390
 
391
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
391
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
392
    {
392
    {
Line 1094... Line 1094...
1094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1095
        return (new Client(prot)).recv_getLogisticsInfo();
1095
        return (new Client(prot)).recv_getLogisticsInfo();
1096
      }
1096
      }
1097
    }
1097
    }
1098
 
1098
 
1099
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
1099
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
1100
      checkReady();
1100
      checkReady();
1101
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1101
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
1102
      this.___currentMethod = method_call;
1102
      this.___currentMethod = method_call;
1103
      ___manager.call(method_call);
1103
      ___manager.call(method_call);
1104
    }
1104
    }
1105
 
1105
 
1106
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1106
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1107
      private long providerId;
1107
      private long providerId;
1108
      private DeliveryType type;
1108
      private String logisticsTransactionId;
1109
      public getEmptyAWB_call(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_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 {
1109
      public getEmptyAWB_call(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.providerId = providerId;
1111
        this.providerId = providerId;
1112
        this.type = type;
1112
        this.logisticsTransactionId = logisticsTransactionId;
1113
      }
1113
      }
1114
 
1114
 
1115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1117
        getEmptyAWB_args args = new getEmptyAWB_args();
1117
        getEmptyAWB_args args = new getEmptyAWB_args();
1118
        args.setProviderId(providerId);
1118
        args.setProviderId(providerId);
1119
        args.setType(type);
1119
        args.setLogisticsTransactionId(logisticsTransactionId);
1120
        args.write(prot);
1120
        args.write(prot);
1121
        prot.writeMessageEnd();
1121
        prot.writeMessageEnd();
1122
      }
1122
      }
1123
 
1123
 
1124
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1124
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
Line 2013... Line 2013...
2013
      }
2013
      }
2014
 
2014
 
2015
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
2015
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
2016
        getEmptyAWB_result result = new getEmptyAWB_result();
2016
        getEmptyAWB_result result = new getEmptyAWB_result();
2017
        try {
2017
        try {
2018
          result.success = iface.getEmptyAWB(args.providerId, args.type);
2018
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
2019
        } catch (LogisticsServiceException se) {
2019
        } catch (LogisticsServiceException se) {
2020
          result.se = se;
2020
          result.se = se;
2021
        }
2021
        }
2022
        return result;
2022
        return result;
2023
      }
2023
      }
Line 6361... Line 6361...
6361
 
6361
 
6362
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6362
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
6363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
6364
 
6364
 
6365
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
6365
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
6366
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)-1);
6366
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)2);
6367
 
6367
 
6368
    private long providerId; // required
6368
    private long providerId; // required
6369
    private DeliveryType type; // required
6369
    private String logisticsTransactionId; // required
6370
 
6370
 
6371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6373
      PROVIDER_ID((short)1, "providerId"),
6373
      PROVIDER_ID((short)1, "providerId"),
6374
      /**
-
 
6375
       * 
-
 
6376
       * @see DeliveryType
-
 
6377
       */
-
 
6378
      TYPE((short)-1, "type");
6374
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
6379
 
6375
 
6380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6381
 
6377
 
6382
      static {
6378
      static {
6383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 6390... Line 6386...
6390
       */
6386
       */
6391
      public static _Fields findByThriftId(int fieldId) {
6387
      public static _Fields findByThriftId(int fieldId) {
6392
        switch(fieldId) {
6388
        switch(fieldId) {
6393
          case 1: // PROVIDER_ID
6389
          case 1: // PROVIDER_ID
6394
            return PROVIDER_ID;
6390
            return PROVIDER_ID;
6395
          case -1: // TYPE
6391
          case 2: // LOGISTICS_TRANSACTION_ID
6396
            return TYPE;
6392
            return LOGISTICS_TRANSACTION_ID;
6397
          default:
6393
          default:
6398
            return null;
6394
            return null;
6399
        }
6395
        }
6400
      }
6396
      }
6401
 
6397
 
Line 6440... Line 6436...
6440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6441
    static {
6437
    static {
6442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6443
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6439
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6445
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6441
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6446
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
6442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
6444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
6449
    }
6445
    }
6450
 
6446
 
6451
    public getEmptyAWB_args() {
6447
    public getEmptyAWB_args() {
6452
    }
6448
    }
6453
 
6449
 
6454
    public getEmptyAWB_args(
6450
    public getEmptyAWB_args(
6455
      long providerId,
6451
      long providerId,
6456
      DeliveryType type)
6452
      String logisticsTransactionId)
6457
    {
6453
    {
6458
      this();
6454
      this();
6459
      this.providerId = providerId;
6455
      this.providerId = providerId;
6460
      setProviderIdIsSet(true);
6456
      setProviderIdIsSet(true);
6461
      this.type = type;
6457
      this.logisticsTransactionId = logisticsTransactionId;
6462
    }
6458
    }
6463
 
6459
 
6464
    /**
6460
    /**
6465
     * Performs a deep copy on <i>other</i>.
6461
     * Performs a deep copy on <i>other</i>.
6466
     */
6462
     */
6467
    public getEmptyAWB_args(getEmptyAWB_args other) {
6463
    public getEmptyAWB_args(getEmptyAWB_args other) {
6468
      __isset_bit_vector.clear();
6464
      __isset_bit_vector.clear();
6469
      __isset_bit_vector.or(other.__isset_bit_vector);
6465
      __isset_bit_vector.or(other.__isset_bit_vector);
6470
      this.providerId = other.providerId;
6466
      this.providerId = other.providerId;
6471
      if (other.isSetType()) {
6467
      if (other.isSetLogisticsTransactionId()) {
6472
        this.type = other.type;
6468
        this.logisticsTransactionId = other.logisticsTransactionId;
6473
      }
6469
      }
6474
    }
6470
    }
6475
 
6471
 
6476
    public getEmptyAWB_args deepCopy() {
6472
    public getEmptyAWB_args deepCopy() {
6477
      return new getEmptyAWB_args(this);
6473
      return new getEmptyAWB_args(this);
Line 6479... Line 6475...
6479
 
6475
 
6480
    @Override
6476
    @Override
6481
    public void clear() {
6477
    public void clear() {
6482
      setProviderIdIsSet(false);
6478
      setProviderIdIsSet(false);
6483
      this.providerId = 0;
6479
      this.providerId = 0;
6484
      this.type = null;
6480
      this.logisticsTransactionId = null;
6485
    }
6481
    }
6486
 
6482
 
6487
    public long getProviderId() {
6483
    public long getProviderId() {
6488
      return this.providerId;
6484
      return this.providerId;
6489
    }
6485
    }
Line 6504... Line 6500...
6504
 
6500
 
6505
    public void setProviderIdIsSet(boolean value) {
6501
    public void setProviderIdIsSet(boolean value) {
6506
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
6502
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
6507
    }
6503
    }
6508
 
6504
 
6509
    /**
-
 
6510
     * 
-
 
6511
     * @see DeliveryType
-
 
6512
     */
-
 
6513
    public DeliveryType getType() {
6505
    public String getLogisticsTransactionId() {
6514
      return this.type;
6506
      return this.logisticsTransactionId;
6515
    }
6507
    }
6516
 
6508
 
6517
    /**
-
 
6518
     * 
-
 
6519
     * @see DeliveryType
-
 
6520
     */
-
 
6521
    public void setType(DeliveryType type) {
6509
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6522
      this.type = type;
6510
      this.logisticsTransactionId = logisticsTransactionId;
6523
    }
6511
    }
6524
 
6512
 
6525
    public void unsetType() {
6513
    public void unsetLogisticsTransactionId() {
6526
      this.type = null;
6514
      this.logisticsTransactionId = null;
6527
    }
6515
    }
6528
 
6516
 
6529
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6517
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6530
    public boolean isSetType() {
6518
    public boolean isSetLogisticsTransactionId() {
6531
      return this.type != null;
6519
      return this.logisticsTransactionId != null;
6532
    }
6520
    }
6533
 
6521
 
6534
    public void setTypeIsSet(boolean value) {
6522
    public void setLogisticsTransactionIdIsSet(boolean value) {
6535
      if (!value) {
6523
      if (!value) {
6536
        this.type = null;
6524
        this.logisticsTransactionId = null;
6537
      }
6525
      }
6538
    }
6526
    }
6539
 
6527
 
6540
    public void setFieldValue(_Fields field, Object value) {
6528
    public void setFieldValue(_Fields field, Object value) {
6541
      switch (field) {
6529
      switch (field) {
Line 6545... Line 6533...
6545
        } else {
6533
        } else {
6546
          setProviderId((Long)value);
6534
          setProviderId((Long)value);
6547
        }
6535
        }
6548
        break;
6536
        break;
6549
 
6537
 
6550
      case TYPE:
6538
      case LOGISTICS_TRANSACTION_ID:
6551
        if (value == null) {
6539
        if (value == null) {
6552
          unsetType();
6540
          unsetLogisticsTransactionId();
6553
        } else {
6541
        } else {
6554
          setType((DeliveryType)value);
6542
          setLogisticsTransactionId((String)value);
6555
        }
6543
        }
6556
        break;
6544
        break;
6557
 
6545
 
6558
      }
6546
      }
6559
    }
6547
    }
Line 6561... Line 6549...
6561
    public Object getFieldValue(_Fields field) {
6549
    public Object getFieldValue(_Fields field) {
6562
      switch (field) {
6550
      switch (field) {
6563
      case PROVIDER_ID:
6551
      case PROVIDER_ID:
6564
        return Long.valueOf(getProviderId());
6552
        return Long.valueOf(getProviderId());
6565
 
6553
 
6566
      case TYPE:
6554
      case LOGISTICS_TRANSACTION_ID:
6567
        return getType();
6555
        return getLogisticsTransactionId();
6568
 
6556
 
6569
      }
6557
      }
6570
      throw new IllegalStateException();
6558
      throw new IllegalStateException();
6571
    }
6559
    }
6572
 
6560
 
Line 6577... Line 6565...
6577
      }
6565
      }
6578
 
6566
 
6579
      switch (field) {
6567
      switch (field) {
6580
      case PROVIDER_ID:
6568
      case PROVIDER_ID:
6581
        return isSetProviderId();
6569
        return isSetProviderId();
6582
      case TYPE:
6570
      case LOGISTICS_TRANSACTION_ID:
6583
        return isSetType();
6571
        return isSetLogisticsTransactionId();
6584
      }
6572
      }
6585
      throw new IllegalStateException();
6573
      throw new IllegalStateException();
6586
    }
6574
    }
6587
 
6575
 
6588
    @Override
6576
    @Override
Line 6605... Line 6593...
6605
          return false;
6593
          return false;
6606
        if (this.providerId != that.providerId)
6594
        if (this.providerId != that.providerId)
6607
          return false;
6595
          return false;
6608
      }
6596
      }
6609
 
6597
 
6610
      boolean this_present_type = true && this.isSetType();
6598
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6611
      boolean that_present_type = true && that.isSetType();
6599
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6612
      if (this_present_type || that_present_type) {
6600
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6613
        if (!(this_present_type && that_present_type))
6601
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
6614
          return false;
6602
          return false;
6615
        if (!this.type.equals(that.type))
6603
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
6616
          return false;
6604
          return false;
6617
      }
6605
      }
6618
 
6606
 
6619
      return true;
6607
      return true;
6620
    }
6608
    }
Line 6640... Line 6628...
6640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6641
        if (lastComparison != 0) {
6629
        if (lastComparison != 0) {
6642
          return lastComparison;
6630
          return lastComparison;
6643
        }
6631
        }
6644
      }
6632
      }
6645
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6633
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
6646
      if (lastComparison != 0) {
6634
      if (lastComparison != 0) {
6647
        return lastComparison;
6635
        return lastComparison;
6648
      }
6636
      }
6649
      if (isSetType()) {
6637
      if (isSetLogisticsTransactionId()) {
6650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
6651
        if (lastComparison != 0) {
6639
        if (lastComparison != 0) {
6652
          return lastComparison;
6640
          return lastComparison;
6653
        }
6641
        }
6654
      }
6642
      }
6655
      return 0;
6643
      return 0;
Line 6675... Line 6663...
6675
              setProviderIdIsSet(true);
6663
              setProviderIdIsSet(true);
6676
            } else { 
6664
            } else { 
6677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6678
            }
6666
            }
6679
            break;
6667
            break;
6680
          case -1: // TYPE
6668
          case 2: // LOGISTICS_TRANSACTION_ID
6681
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6669
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6682
              this.type = DeliveryType.findByValue(iprot.readI32());
6670
              this.logisticsTransactionId = iprot.readString();
6683
            } else { 
6671
            } else { 
6684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6685
            }
6673
            }
6686
            break;
6674
            break;
6687
          default:
6675
          default:
Line 6695... Line 6683...
6695
 
6683
 
6696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6697
      validate();
6685
      validate();
6698
 
6686
 
6699
      oprot.writeStructBegin(STRUCT_DESC);
6687
      oprot.writeStructBegin(STRUCT_DESC);
6700
      if (this.type != null) {
-
 
6701
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
6702
        oprot.writeI32(this.type.getValue());
-
 
6703
        oprot.writeFieldEnd();
-
 
6704
      }
-
 
6705
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6688
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6706
      oprot.writeI64(this.providerId);
6689
      oprot.writeI64(this.providerId);
6707
      oprot.writeFieldEnd();
6690
      oprot.writeFieldEnd();
-
 
6691
      if (this.logisticsTransactionId != null) {
-
 
6692
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
-
 
6693
        oprot.writeString(this.logisticsTransactionId);
-
 
6694
        oprot.writeFieldEnd();
-
 
6695
      }
6708
      oprot.writeFieldStop();
6696
      oprot.writeFieldStop();
6709
      oprot.writeStructEnd();
6697
      oprot.writeStructEnd();
6710
    }
6698
    }
6711
 
6699
 
6712
    @Override
6700
    @Override
Line 6716... Line 6704...
6716
 
6704
 
6717
      sb.append("providerId:");
6705
      sb.append("providerId:");
6718
      sb.append(this.providerId);
6706
      sb.append(this.providerId);
6719
      first = false;
6707
      first = false;
6720
      if (!first) sb.append(", ");
6708
      if (!first) sb.append(", ");
6721
      sb.append("type:");
6709
      sb.append("logisticsTransactionId:");
6722
      if (this.type == null) {
6710
      if (this.logisticsTransactionId == null) {
6723
        sb.append("null");
6711
        sb.append("null");
6724
      } else {
6712
      } else {
6725
        sb.append(this.type);
6713
        sb.append(this.logisticsTransactionId);
6726
      }
6714
      }
6727
      first = false;
6715
      first = false;
6728
      sb.append(")");
6716
      sb.append(")");
6729
      return sb.toString();
6717
      return sb.toString();
6730
    }
6718
    }