Subversion Repositories SmartDukaan

Rev

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

Rev 4579 Rev 4581
Line 277... Line 277...
277
     */
277
     */
278
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;
278
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;
279
 
279
 
280
    /**
280
    /**
281
     * Update the status description of orders whose AWB numbers are keys of the Map.
281
     * Update the status description of orders whose AWB numbers are keys of the Map.
-
 
282
     * Returns a list of orders that were picked up or shipped four days ago but did not get delivered.
282
     * 
283
     * 
283
     * @param providerId
284
     * @param providerId
284
     * @param undeliveredOrders
285
     * @param undeliveredOrders
285
     */
286
     */
286
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
287
    public List<Order> updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
287
 
288
 
288
    /**
289
    /**
289
     * Returns the list of orders whose delivery time has passed but have not been
290
     * Returns the list of orders whose delivery time has passed but have not been
290
     * delivered yet for the given provider and warehouse. To get a complete list of
291
     * delivered yet for the given provider and warehouse. To get a complete list of
291
     * undelivered orders, pass them as -1.
292
     * undelivered orders, pass them as -1.
Line 1853... Line 1854...
1853
        throw result.ex;
1854
        throw result.ex;
1854
      }
1855
      }
1855
      return;
1856
      return;
1856
    }
1857
    }
1857
 
1858
 
1858
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1859
    public List<Order> updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1859
    {
1860
    {
1860
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1861
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1861
      recv_updateNonDeliveryReason();
1862
      return recv_updateNonDeliveryReason();
1862
    }
1863
    }
1863
 
1864
 
1864
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException
1865
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException
1865
    {
1866
    {
1866
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
1867
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
1867
      args.setProviderId(providerId);
1868
      args.setProviderId(providerId);
1868
      args.setUndeliveredOrders(undeliveredOrders);
1869
      args.setUndeliveredOrders(undeliveredOrders);
1869
      sendBase("updateNonDeliveryReason", args);
1870
      sendBase("updateNonDeliveryReason", args);
1870
    }
1871
    }
1871
 
1872
 
1872
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException
1873
    public List<Order> recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException
1873
    {
1874
    {
1874
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
1875
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
1875
      receiveBase(result, "updateNonDeliveryReason");
1876
      receiveBase(result, "updateNonDeliveryReason");
-
 
1877
      if (result.isSetSuccess()) {
-
 
1878
        return result.success;
-
 
1879
      }
1876
      if (result.ex != null) {
1880
      if (result.ex != null) {
1877
        throw result.ex;
1881
        throw result.ex;
1878
      }
1882
      }
1879
      return;
-
 
-
 
1883
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateNonDeliveryReason failed: unknown result");
1880
    }
1884
    }
1881
 
1885
 
1882
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1883
    {
1887
    {
1884
      send_getUndeliveredOrders(providerId, warehouseId);
1888
      send_getUndeliveredOrders(providerId, warehouseId);
Line 4327... Line 4331...
4327
        args.setUndeliveredOrders(undeliveredOrders);
4331
        args.setUndeliveredOrders(undeliveredOrders);
4328
        args.write(prot);
4332
        args.write(prot);
4329
        prot.writeMessageEnd();
4333
        prot.writeMessageEnd();
4330
      }
4334
      }
4331
 
4335
 
4332
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4336
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
4333
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4337
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4334
          throw new IllegalStateException("Method call not finished!");
4338
          throw new IllegalStateException("Method call not finished!");
4335
        }
4339
        }
4336
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4340
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4337
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4338
        (new Client(prot)).recv_updateNonDeliveryReason();
4342
        return (new Client(prot)).recv_updateNonDeliveryReason();
4339
      }
4343
      }
4340
    }
4344
    }
4341
 
4345
 
4342
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {
4346
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {
4343
      checkReady();
4347
      checkReady();
Line 6605... Line 6609...
6605
      }
6609
      }
6606
 
6610
 
6607
      protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {
6611
      protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {
6608
        updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
6612
        updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
6609
        try {
6613
        try {
6610
          iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);
6614
          result.success = iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);
6611
        } catch (TransactionServiceException ex) {
6615
        } catch (TransactionServiceException ex) {
6612
          result.ex = ex;
6616
          result.ex = ex;
6613
        }
6617
        }
6614
        return result;
6618
        return result;
6615
      }
6619
      }
Line 37778... Line 37782...
37778
  }
37782
  }
37779
 
37783
 
37780
  public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable   {
37784
  public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable   {
37781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");
37785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");
37782
 
37786
 
-
 
37787
    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);
37783
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37788
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37784
 
37789
 
-
 
37790
    private List<Order> success; // required
37785
    private TransactionServiceException ex; // required
37791
    private TransactionServiceException ex; // required
37786
 
37792
 
37787
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37788
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
37795
      SUCCESS((short)0, "success"),
37789
      EX((short)1, "ex");
37796
      EX((short)1, "ex");
37790
 
37797
 
37791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37792
 
37799
 
37793
      static {
37800
      static {
Line 37799... Line 37806...
37799
      /**
37806
      /**
37800
       * Find the _Fields constant that matches fieldId, or null if its not found.
37807
       * Find the _Fields constant that matches fieldId, or null if its not found.
37801
       */
37808
       */
37802
      public static _Fields findByThriftId(int fieldId) {
37809
      public static _Fields findByThriftId(int fieldId) {
37803
        switch(fieldId) {
37810
        switch(fieldId) {
-
 
37811
          case 0: // SUCCESS
-
 
37812
            return SUCCESS;
37804
          case 1: // EX
37813
          case 1: // EX
37805
            return EX;
37814
            return EX;
37806
          default:
37815
          default:
37807
            return null;
37816
            return null;
37808
        }
37817
        }
Line 37845... Line 37854...
37845
    // isset id assignments
37854
    // isset id assignments
37846
 
37855
 
37847
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37848
    static {
37857
    static {
37849
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37859
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37860
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
37861
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
37850
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37862
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37864
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
37865
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
37854
    }
37866
    }
37855
 
37867
 
37856
    public updateNonDeliveryReason_result() {
37868
    public updateNonDeliveryReason_result() {
37857
    }
37869
    }
37858
 
37870
 
37859
    public updateNonDeliveryReason_result(
37871
    public updateNonDeliveryReason_result(
-
 
37872
      List<Order> success,
37860
      TransactionServiceException ex)
37873
      TransactionServiceException ex)
37861
    {
37874
    {
37862
      this();
37875
      this();
-
 
37876
      this.success = success;
37863
      this.ex = ex;
37877
      this.ex = ex;
37864
    }
37878
    }
37865
 
37879
 
37866
    /**
37880
    /**
37867
     * Performs a deep copy on <i>other</i>.
37881
     * Performs a deep copy on <i>other</i>.
37868
     */
37882
     */
37869
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
37883
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
-
 
37884
      if (other.isSetSuccess()) {
-
 
37885
        List<Order> __this__success = new ArrayList<Order>();
-
 
37886
        for (Order other_element : other.success) {
-
 
37887
          __this__success.add(new Order(other_element));
-
 
37888
        }
-
 
37889
        this.success = __this__success;
-
 
37890
      }
37870
      if (other.isSetEx()) {
37891
      if (other.isSetEx()) {
37871
        this.ex = new TransactionServiceException(other.ex);
37892
        this.ex = new TransactionServiceException(other.ex);
37872
      }
37893
      }
37873
    }
37894
    }
37874
 
37895
 
Line 37876... Line 37897...
37876
      return new updateNonDeliveryReason_result(this);
37897
      return new updateNonDeliveryReason_result(this);
37877
    }
37898
    }
37878
 
37899
 
37879
    @Override
37900
    @Override
37880
    public void clear() {
37901
    public void clear() {
-
 
37902
      this.success = null;
37881
      this.ex = null;
37903
      this.ex = null;
37882
    }
37904
    }
37883
 
37905
 
-
 
37906
    public int getSuccessSize() {
-
 
37907
      return (this.success == null) ? 0 : this.success.size();
-
 
37908
    }
-
 
37909
 
-
 
37910
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
37911
      return (this.success == null) ? null : this.success.iterator();
-
 
37912
    }
-
 
37913
 
-
 
37914
    public void addToSuccess(Order elem) {
-
 
37915
      if (this.success == null) {
-
 
37916
        this.success = new ArrayList<Order>();
-
 
37917
      }
-
 
37918
      this.success.add(elem);
-
 
37919
    }
-
 
37920
 
-
 
37921
    public List<Order> getSuccess() {
-
 
37922
      return this.success;
-
 
37923
    }
-
 
37924
 
-
 
37925
    public void setSuccess(List<Order> success) {
-
 
37926
      this.success = success;
-
 
37927
    }
-
 
37928
 
-
 
37929
    public void unsetSuccess() {
-
 
37930
      this.success = null;
-
 
37931
    }
-
 
37932
 
-
 
37933
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
37934
    public boolean isSetSuccess() {
-
 
37935
      return this.success != null;
-
 
37936
    }
-
 
37937
 
-
 
37938
    public void setSuccessIsSet(boolean value) {
-
 
37939
      if (!value) {
-
 
37940
        this.success = null;
-
 
37941
      }
-
 
37942
    }
-
 
37943
 
37884
    public TransactionServiceException getEx() {
37944
    public TransactionServiceException getEx() {
37885
      return this.ex;
37945
      return this.ex;
37886
    }
37946
    }
37887
 
37947
 
37888
    public void setEx(TransactionServiceException ex) {
37948
    public void setEx(TransactionServiceException ex) {
Line 37904... Line 37964...
37904
      }
37964
      }
37905
    }
37965
    }
37906
 
37966
 
37907
    public void setFieldValue(_Fields field, Object value) {
37967
    public void setFieldValue(_Fields field, Object value) {
37908
      switch (field) {
37968
      switch (field) {
-
 
37969
      case SUCCESS:
-
 
37970
        if (value == null) {
-
 
37971
          unsetSuccess();
-
 
37972
        } else {
-
 
37973
          setSuccess((List<Order>)value);
-
 
37974
        }
-
 
37975
        break;
-
 
37976
 
37909
      case EX:
37977
      case EX:
37910
        if (value == null) {
37978
        if (value == null) {
37911
          unsetEx();
37979
          unsetEx();
37912
        } else {
37980
        } else {
37913
          setEx((TransactionServiceException)value);
37981
          setEx((TransactionServiceException)value);
Line 37917... Line 37985...
37917
      }
37985
      }
37918
    }
37986
    }
37919
 
37987
 
37920
    public Object getFieldValue(_Fields field) {
37988
    public Object getFieldValue(_Fields field) {
37921
      switch (field) {
37989
      switch (field) {
-
 
37990
      case SUCCESS:
-
 
37991
        return getSuccess();
-
 
37992
 
37922
      case EX:
37993
      case EX:
37923
        return getEx();
37994
        return getEx();
37924
 
37995
 
37925
      }
37996
      }
37926
      throw new IllegalStateException();
37997
      throw new IllegalStateException();
Line 37931... Line 38002...
37931
      if (field == null) {
38002
      if (field == null) {
37932
        throw new IllegalArgumentException();
38003
        throw new IllegalArgumentException();
37933
      }
38004
      }
37934
 
38005
 
37935
      switch (field) {
38006
      switch (field) {
-
 
38007
      case SUCCESS:
-
 
38008
        return isSetSuccess();
37936
      case EX:
38009
      case EX:
37937
        return isSetEx();
38010
        return isSetEx();
37938
      }
38011
      }
37939
      throw new IllegalStateException();
38012
      throw new IllegalStateException();
37940
    }
38013
    }
Line 37950... Line 38023...
37950
 
38023
 
37951
    public boolean equals(updateNonDeliveryReason_result that) {
38024
    public boolean equals(updateNonDeliveryReason_result that) {
37952
      if (that == null)
38025
      if (that == null)
37953
        return false;
38026
        return false;
37954
 
38027
 
-
 
38028
      boolean this_present_success = true && this.isSetSuccess();
-
 
38029
      boolean that_present_success = true && that.isSetSuccess();
-
 
38030
      if (this_present_success || that_present_success) {
-
 
38031
        if (!(this_present_success && that_present_success))
-
 
38032
          return false;
-
 
38033
        if (!this.success.equals(that.success))
-
 
38034
          return false;
-
 
38035
      }
-
 
38036
 
37955
      boolean this_present_ex = true && this.isSetEx();
38037
      boolean this_present_ex = true && this.isSetEx();
37956
      boolean that_present_ex = true && that.isSetEx();
38038
      boolean that_present_ex = true && that.isSetEx();
37957
      if (this_present_ex || that_present_ex) {
38039
      if (this_present_ex || that_present_ex) {
37958
        if (!(this_present_ex && that_present_ex))
38040
        if (!(this_present_ex && that_present_ex))
37959
          return false;
38041
          return false;
Line 37975... Line 38057...
37975
      }
38057
      }
37976
 
38058
 
37977
      int lastComparison = 0;
38059
      int lastComparison = 0;
37978
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
38060
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
37979
 
38061
 
-
 
38062
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38063
      if (lastComparison != 0) {
-
 
38064
        return lastComparison;
-
 
38065
      }
-
 
38066
      if (isSetSuccess()) {
-
 
38067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38068
        if (lastComparison != 0) {
-
 
38069
          return lastComparison;
-
 
38070
        }
-
 
38071
      }
37980
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
38072
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
37981
      if (lastComparison != 0) {
38073
      if (lastComparison != 0) {
37982
        return lastComparison;
38074
        return lastComparison;
37983
      }
38075
      }
37984
      if (isSetEx()) {
38076
      if (isSetEx()) {
Line 38002... Line 38094...
38002
        field = iprot.readFieldBegin();
38094
        field = iprot.readFieldBegin();
38003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38004
          break;
38096
          break;
38005
        }
38097
        }
38006
        switch (field.id) {
38098
        switch (field.id) {
-
 
38099
          case 0: // SUCCESS
-
 
38100
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
38101
              {
-
 
38102
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
-
 
38103
                this.success = new ArrayList<Order>(_list104.size);
-
 
38104
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
-
 
38105
                {
-
 
38106
                  Order _elem106; // required
-
 
38107
                  _elem106 = new Order();
-
 
38108
                  _elem106.read(iprot);
-
 
38109
                  this.success.add(_elem106);
-
 
38110
                }
-
 
38111
                iprot.readListEnd();
-
 
38112
              }
-
 
38113
            } else { 
-
 
38114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38115
            }
-
 
38116
            break;
38007
          case 1: // EX
38117
          case 1: // EX
38008
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38118
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38009
              this.ex = new TransactionServiceException();
38119
              this.ex = new TransactionServiceException();
38010
              this.ex.read(iprot);
38120
              this.ex.read(iprot);
38011
            } else { 
38121
            } else { 
Line 38022... Line 38132...
38022
    }
38132
    }
38023
 
38133
 
38024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38025
      oprot.writeStructBegin(STRUCT_DESC);
38135
      oprot.writeStructBegin(STRUCT_DESC);
38026
 
38136
 
-
 
38137
      if (this.isSetSuccess()) {
-
 
38138
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38139
        {
-
 
38140
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
38141
          for (Order _iter107 : this.success)
-
 
38142
          {
-
 
38143
            _iter107.write(oprot);
-
 
38144
          }
-
 
38145
          oprot.writeListEnd();
-
 
38146
        }
-
 
38147
        oprot.writeFieldEnd();
38027
      if (this.isSetEx()) {
38148
      } else if (this.isSetEx()) {
38028
        oprot.writeFieldBegin(EX_FIELD_DESC);
38149
        oprot.writeFieldBegin(EX_FIELD_DESC);
38029
        this.ex.write(oprot);
38150
        this.ex.write(oprot);
38030
        oprot.writeFieldEnd();
38151
        oprot.writeFieldEnd();
38031
      }
38152
      }
38032
      oprot.writeFieldStop();
38153
      oprot.writeFieldStop();
Line 38036... Line 38157...
38036
    @Override
38157
    @Override
38037
    public String toString() {
38158
    public String toString() {
38038
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
38159
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
38039
      boolean first = true;
38160
      boolean first = true;
38040
 
38161
 
-
 
38162
      sb.append("success:");
-
 
38163
      if (this.success == null) {
-
 
38164
        sb.append("null");
-
 
38165
      } else {
-
 
38166
        sb.append(this.success);
-
 
38167
      }
-
 
38168
      first = false;
-
 
38169
      if (!first) sb.append(", ");
38041
      sb.append("ex:");
38170
      sb.append("ex:");
38042
      if (this.ex == null) {
38171
      if (this.ex == null) {
38043
        sb.append("null");
38172
        sb.append("null");
38044
      } else {
38173
      } else {
38045
        sb.append(this.ex);
38174
        sb.append(this.ex);
Line 38694... Line 38823...
38694
        }
38823
        }
38695
        switch (field.id) {
38824
        switch (field.id) {
38696
          case 0: // SUCCESS
38825
          case 0: // SUCCESS
38697
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38826
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38698
              {
38827
              {
38699
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
38828
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
38700
                this.success = new ArrayList<Order>(_list104.size);
38829
                this.success = new ArrayList<Order>(_list108.size);
38701
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
38830
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
38702
                {
38831
                {
38703
                  Order _elem106; // required
38832
                  Order _elem110; // required
38704
                  _elem106 = new Order();
38833
                  _elem110 = new Order();
38705
                  _elem106.read(iprot);
38834
                  _elem110.read(iprot);
38706
                  this.success.add(_elem106);
38835
                  this.success.add(_elem110);
38707
                }
38836
                }
38708
                iprot.readListEnd();
38837
                iprot.readListEnd();
38709
              }
38838
              }
38710
            } else { 
38839
            } else { 
38711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 38725... Line 38854...
38725
 
38854
 
38726
      if (this.isSetSuccess()) {
38855
      if (this.isSetSuccess()) {
38727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38856
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38728
        {
38857
        {
38729
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38858
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38730
          for (Order _iter107 : this.success)
38859
          for (Order _iter111 : this.success)
38731
          {
38860
          {
38732
            _iter107.write(oprot);
38861
            _iter111.write(oprot);
38733
          }
38862
          }
38734
          oprot.writeListEnd();
38863
          oprot.writeListEnd();
38735
        }
38864
        }
38736
        oprot.writeFieldEnd();
38865
        oprot.writeFieldEnd();
38737
      }
38866
      }
Line 44159... Line 44288...
44159
            }
44288
            }
44160
            break;
44289
            break;
44161
          case 2: // PICKUP_DETAILS
44290
          case 2: // PICKUP_DETAILS
44162
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
44291
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
44163
              {
44292
              {
44164
                org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin();
44293
                org.apache.thrift.protocol.TMap _map112 = iprot.readMapBegin();
44165
                this.pickupDetails = new HashMap<String,String>(2*_map108.size);
44294
                this.pickupDetails = new HashMap<String,String>(2*_map112.size);
44166
                for (int _i109 = 0; _i109 < _map108.size; ++_i109)
44295
                for (int _i113 = 0; _i113 < _map112.size; ++_i113)
44167
                {
44296
                {
44168
                  String _key110; // required
44297
                  String _key114; // required
44169
                  String _val111; // required
44298
                  String _val115; // required
44170
                  _key110 = iprot.readString();
44299
                  _key114 = iprot.readString();
44171
                  _val111 = iprot.readString();
44300
                  _val115 = iprot.readString();
44172
                  this.pickupDetails.put(_key110, _val111);
44301
                  this.pickupDetails.put(_key114, _val115);
44173
                }
44302
                }
44174
                iprot.readMapEnd();
44303
                iprot.readMapEnd();
44175
              }
44304
              }
44176
            } else { 
44305
            } else { 
44177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 44195... Line 44324...
44195
      oprot.writeFieldEnd();
44324
      oprot.writeFieldEnd();
44196
      if (this.pickupDetails != null) {
44325
      if (this.pickupDetails != null) {
44197
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
44326
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
44198
        {
44327
        {
44199
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
44328
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
44200
          for (Map.Entry<String, String> _iter112 : this.pickupDetails.entrySet())
44329
          for (Map.Entry<String, String> _iter116 : this.pickupDetails.entrySet())
44201
          {
44330
          {
44202
            oprot.writeString(_iter112.getKey());
44331
            oprot.writeString(_iter116.getKey());
44203
            oprot.writeString(_iter112.getValue());
44332
            oprot.writeString(_iter116.getValue());
44204
          }
44333
          }
44205
          oprot.writeMapEnd();
44334
          oprot.writeMapEnd();
44206
        }
44335
        }
44207
        oprot.writeFieldEnd();
44336
        oprot.writeFieldEnd();
44208
      }
44337
      }
Line 44500... Line 44629...
44500
        }
44629
        }
44501
        switch (field.id) {
44630
        switch (field.id) {
44502
          case 0: // SUCCESS
44631
          case 0: // SUCCESS
44503
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44632
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44504
              {
44633
              {
44505
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
44634
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
44506
                this.success = new ArrayList<Order>(_list113.size);
44635
                this.success = new ArrayList<Order>(_list117.size);
44507
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
44636
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
44508
                {
44637
                {
44509
                  Order _elem115; // required
44638
                  Order _elem119; // required
44510
                  _elem115 = new Order();
44639
                  _elem119 = new Order();
44511
                  _elem115.read(iprot);
44640
                  _elem119.read(iprot);
44512
                  this.success.add(_elem115);
44641
                  this.success.add(_elem119);
44513
                }
44642
                }
44514
                iprot.readListEnd();
44643
                iprot.readListEnd();
44515
              }
44644
              }
44516
            } else { 
44645
            } else { 
44517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 44531... Line 44660...
44531
 
44660
 
44532
      if (this.isSetSuccess()) {
44661
      if (this.isSetSuccess()) {
44533
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44534
        {
44663
        {
44535
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
44664
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
44536
          for (Order _iter116 : this.success)
44665
          for (Order _iter120 : this.success)
44537
          {
44666
          {
44538
            _iter116.write(oprot);
44667
            _iter120.write(oprot);
44539
          }
44668
          }
44540
          oprot.writeListEnd();
44669
          oprot.writeListEnd();
44541
        }
44670
        }
44542
        oprot.writeFieldEnd();
44671
        oprot.writeFieldEnd();
44543
      }
44672
      }
Line 49083... Line 49212...
49083
        }
49212
        }
49084
        switch (field.id) {
49213
        switch (field.id) {
49085
          case 0: // SUCCESS
49214
          case 0: // SUCCESS
49086
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49087
              {
49216
              {
49088
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
49217
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
49089
                this.success = new ArrayList<ReturnOrder>(_list117.size);
49218
                this.success = new ArrayList<ReturnOrder>(_list121.size);
49090
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
49219
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
49091
                {
49220
                {
49092
                  ReturnOrder _elem119; // required
49221
                  ReturnOrder _elem123; // required
49093
                  _elem119 = new ReturnOrder();
49222
                  _elem123 = new ReturnOrder();
49094
                  _elem119.read(iprot);
49223
                  _elem123.read(iprot);
49095
                  this.success.add(_elem119);
49224
                  this.success.add(_elem123);
49096
                }
49225
                }
49097
                iprot.readListEnd();
49226
                iprot.readListEnd();
49098
              }
49227
              }
49099
            } else { 
49228
            } else { 
49100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49114... Line 49243...
49114
 
49243
 
49115
      if (this.isSetSuccess()) {
49244
      if (this.isSetSuccess()) {
49116
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49245
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49117
        {
49246
        {
49118
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
49247
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
49119
          for (ReturnOrder _iter120 : this.success)
49248
          for (ReturnOrder _iter124 : this.success)
49120
          {
49249
          {
49121
            _iter120.write(oprot);
49250
            _iter124.write(oprot);
49122
          }
49251
          }
49123
          oprot.writeListEnd();
49252
          oprot.writeListEnd();
49124
        }
49253
        }
49125
        oprot.writeFieldEnd();
49254
        oprot.writeFieldEnd();
49126
      }
49255
      }
Line 54686... Line 54815...
54686
        }
54815
        }
54687
        switch (field.id) {
54816
        switch (field.id) {
54688
          case 1: // COLLECTED_AMOUNT_MAP
54817
          case 1: // COLLECTED_AMOUNT_MAP
54689
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
54818
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
54690
              {
54819
              {
54691
                org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin();
54820
                org.apache.thrift.protocol.TMap _map125 = iprot.readMapBegin();
54692
                this.collectedAmountMap = new HashMap<String,Double>(2*_map121.size);
54821
                this.collectedAmountMap = new HashMap<String,Double>(2*_map125.size);
54693
                for (int _i122 = 0; _i122 < _map121.size; ++_i122)
54822
                for (int _i126 = 0; _i126 < _map125.size; ++_i126)
54694
                {
54823
                {
54695
                  String _key123; // required
54824
                  String _key127; // required
54696
                  double _val124; // required
54825
                  double _val128; // required
54697
                  _key123 = iprot.readString();
54826
                  _key127 = iprot.readString();
54698
                  _val124 = iprot.readDouble();
54827
                  _val128 = iprot.readDouble();
54699
                  this.collectedAmountMap.put(_key123, _val124);
54828
                  this.collectedAmountMap.put(_key127, _val128);
54700
                }
54829
                }
54701
                iprot.readMapEnd();
54830
                iprot.readMapEnd();
54702
              }
54831
              }
54703
            } else { 
54832
            } else { 
54704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54741... Line 54870...
54741
      oprot.writeStructBegin(STRUCT_DESC);
54870
      oprot.writeStructBegin(STRUCT_DESC);
54742
      if (this.collectedAmountMap != null) {
54871
      if (this.collectedAmountMap != null) {
54743
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
54872
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
54744
        {
54873
        {
54745
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
54874
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
54746
          for (Map.Entry<String, Double> _iter125 : this.collectedAmountMap.entrySet())
54875
          for (Map.Entry<String, Double> _iter129 : this.collectedAmountMap.entrySet())
54747
          {
54876
          {
54748
            oprot.writeString(_iter125.getKey());
54877
            oprot.writeString(_iter129.getKey());
54749
            oprot.writeDouble(_iter125.getValue());
54878
            oprot.writeDouble(_iter129.getValue());
54750
          }
54879
          }
54751
          oprot.writeMapEnd();
54880
          oprot.writeMapEnd();
54752
        }
54881
        }
54753
        oprot.writeFieldEnd();
54882
        oprot.writeFieldEnd();
54754
      }
54883
      }
Line 55148... Line 55277...
55148
        }
55277
        }
55149
        switch (field.id) {
55278
        switch (field.id) {
55150
          case 0: // SUCCESS
55279
          case 0: // SUCCESS
55151
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
55280
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
55152
              {
55281
              {
55153
                org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin();
55282
                org.apache.thrift.protocol.TMap _map130 = iprot.readMapBegin();
55154
                this.success = new HashMap<String,String>(2*_map126.size);
55283
                this.success = new HashMap<String,String>(2*_map130.size);
55155
                for (int _i127 = 0; _i127 < _map126.size; ++_i127)
55284
                for (int _i131 = 0; _i131 < _map130.size; ++_i131)
55156
                {
55285
                {
55157
                  String _key128; // required
55286
                  String _key132; // required
55158
                  String _val129; // required
55287
                  String _val133; // required
55159
                  _key128 = iprot.readString();
55288
                  _key132 = iprot.readString();
55160
                  _val129 = iprot.readString();
55289
                  _val133 = iprot.readString();
55161
                  this.success.put(_key128, _val129);
55290
                  this.success.put(_key132, _val133);
55162
                }
55291
                }
55163
                iprot.readMapEnd();
55292
                iprot.readMapEnd();
55164
              }
55293
              }
55165
            } else { 
55294
            } else { 
55166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55188... Line 55317...
55188
 
55317
 
55189
      if (this.isSetSuccess()) {
55318
      if (this.isSetSuccess()) {
55190
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55319
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55191
        {
55320
        {
55192
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
55321
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
55193
          for (Map.Entry<String, String> _iter130 : this.success.entrySet())
55322
          for (Map.Entry<String, String> _iter134 : this.success.entrySet())
55194
          {
55323
          {
55195
            oprot.writeString(_iter130.getKey());
55324
            oprot.writeString(_iter134.getKey());
55196
            oprot.writeString(_iter130.getValue());
55325
            oprot.writeString(_iter134.getValue());
55197
          }
55326
          }
55198
          oprot.writeMapEnd();
55327
          oprot.writeMapEnd();
55199
        }
55328
        }
55200
        oprot.writeFieldEnd();
55329
        oprot.writeFieldEnd();
55201
      } else if (this.isSetEx()) {
55330
      } else if (this.isSetEx()) {
Line 55807... Line 55936...
55807
        }
55936
        }
55808
        switch (field.id) {
55937
        switch (field.id) {
55809
          case 0: // SUCCESS
55938
          case 0: // SUCCESS
55810
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55939
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55811
              {
55940
              {
55812
                org.apache.thrift.protocol.TList _list131 = iprot.readListBegin();
55941
                org.apache.thrift.protocol.TList _list135 = iprot.readListBegin();
55813
                this.success = new ArrayList<Long>(_list131.size);
55942
                this.success = new ArrayList<Long>(_list135.size);
55814
                for (int _i132 = 0; _i132 < _list131.size; ++_i132)
55943
                for (int _i136 = 0; _i136 < _list135.size; ++_i136)
55815
                {
55944
                {
55816
                  long _elem133; // required
55945
                  long _elem137; // required
55817
                  _elem133 = iprot.readI64();
55946
                  _elem137 = iprot.readI64();
55818
                  this.success.add(_elem133);
55947
                  this.success.add(_elem137);
55819
                }
55948
                }
55820
                iprot.readListEnd();
55949
                iprot.readListEnd();
55821
              }
55950
              }
55822
            } else { 
55951
            } else { 
55823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55837... Line 55966...
55837
 
55966
 
55838
      if (this.isSetSuccess()) {
55967
      if (this.isSetSuccess()) {
55839
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55840
        {
55969
        {
55841
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55970
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55842
          for (long _iter134 : this.success)
55971
          for (long _iter138 : this.success)
55843
          {
55972
          {
55844
            oprot.writeI64(_iter134);
55973
            oprot.writeI64(_iter138);
55845
          }
55974
          }
55846
          oprot.writeListEnd();
55975
          oprot.writeListEnd();
55847
        }
55976
        }
55848
        oprot.writeFieldEnd();
55977
        oprot.writeFieldEnd();
55849
      }
55978
      }
Line 56933... Line 57062...
56933
        }
57062
        }
56934
        switch (field.id) {
57063
        switch (field.id) {
56935
          case 0: // SUCCESS
57064
          case 0: // SUCCESS
56936
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57065
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
56937
              {
57066
              {
56938
                org.apache.thrift.protocol.TMap _map135 = iprot.readMapBegin();
57067
                org.apache.thrift.protocol.TMap _map139 = iprot.readMapBegin();
56939
                this.success = new HashMap<Long,Long>(2*_map135.size);
57068
                this.success = new HashMap<Long,Long>(2*_map139.size);
56940
                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
57069
                for (int _i140 = 0; _i140 < _map139.size; ++_i140)
56941
                {
57070
                {
56942
                  long _key137; // required
57071
                  long _key141; // required
56943
                  long _val138; // required
57072
                  long _val142; // required
56944
                  _key137 = iprot.readI64();
57073
                  _key141 = iprot.readI64();
56945
                  _val138 = iprot.readI64();
57074
                  _val142 = iprot.readI64();
56946
                  this.success.put(_key137, _val138);
57075
                  this.success.put(_key141, _val142);
56947
                }
57076
                }
56948
                iprot.readMapEnd();
57077
                iprot.readMapEnd();
56949
              }
57078
              }
56950
            } else { 
57079
            } else { 
56951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56965... Line 57094...
56965
 
57094
 
56966
      if (this.isSetSuccess()) {
57095
      if (this.isSetSuccess()) {
56967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57096
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56968
        {
57097
        {
56969
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
57098
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
56970
          for (Map.Entry<Long, Long> _iter139 : this.success.entrySet())
57099
          for (Map.Entry<Long, Long> _iter143 : this.success.entrySet())
56971
          {
57100
          {
56972
            oprot.writeI64(_iter139.getKey());
57101
            oprot.writeI64(_iter143.getKey());
56973
            oprot.writeI64(_iter139.getValue());
57102
            oprot.writeI64(_iter143.getValue());
56974
          }
57103
          }
56975
          oprot.writeMapEnd();
57104
          oprot.writeMapEnd();
56976
        }
57105
        }
56977
        oprot.writeFieldEnd();
57106
        oprot.writeFieldEnd();
56978
      }
57107
      }
Line 57266... Line 57395...
57266
        }
57395
        }
57267
        switch (field.id) {
57396
        switch (field.id) {
57268
          case 1: // ITEM_IDS
57397
          case 1: // ITEM_IDS
57269
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57398
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57270
              {
57399
              {
57271
                org.apache.thrift.protocol.TList _list140 = iprot.readListBegin();
57400
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
57272
                this.itemIds = new ArrayList<Long>(_list140.size);
57401
                this.itemIds = new ArrayList<Long>(_list144.size);
57273
                for (int _i141 = 0; _i141 < _list140.size; ++_i141)
57402
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
57274
                {
57403
                {
57275
                  long _elem142; // required
57404
                  long _elem146; // required
57276
                  _elem142 = iprot.readI64();
57405
                  _elem146 = iprot.readI64();
57277
                  this.itemIds.add(_elem142);
57406
                  this.itemIds.add(_elem146);
57278
                }
57407
                }
57279
                iprot.readListEnd();
57408
                iprot.readListEnd();
57280
              }
57409
              }
57281
            } else { 
57410
            } else { 
57282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57297... Line 57426...
57297
      oprot.writeStructBegin(STRUCT_DESC);
57426
      oprot.writeStructBegin(STRUCT_DESC);
57298
      if (this.itemIds != null) {
57427
      if (this.itemIds != null) {
57299
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
57428
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
57300
        {
57429
        {
57301
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
57430
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
57302
          for (long _iter143 : this.itemIds)
57431
          for (long _iter147 : this.itemIds)
57303
          {
57432
          {
57304
            oprot.writeI64(_iter143);
57433
            oprot.writeI64(_iter147);
57305
          }
57434
          }
57306
          oprot.writeListEnd();
57435
          oprot.writeListEnd();
57307
        }
57436
        }
57308
        oprot.writeFieldEnd();
57437
        oprot.writeFieldEnd();
57309
      }
57438
      }
Line 57597... Line 57726...
57597
        }
57726
        }
57598
        switch (field.id) {
57727
        switch (field.id) {
57599
          case 0: // SUCCESS
57728
          case 0: // SUCCESS
57600
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57729
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57601
              {
57730
              {
57602
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
57731
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
57603
                this.success = new ArrayList<Order>(_list144.size);
57732
                this.success = new ArrayList<Order>(_list148.size);
57604
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
57733
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
57605
                {
57734
                {
57606
                  Order _elem146; // required
57735
                  Order _elem150; // required
57607
                  _elem146 = new Order();
57736
                  _elem150 = new Order();
57608
                  _elem146.read(iprot);
57737
                  _elem150.read(iprot);
57609
                  this.success.add(_elem146);
57738
                  this.success.add(_elem150);
57610
                }
57739
                }
57611
                iprot.readListEnd();
57740
                iprot.readListEnd();
57612
              }
57741
              }
57613
            } else { 
57742
            } else { 
57614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57743
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57628... Line 57757...
57628
 
57757
 
57629
      if (this.isSetSuccess()) {
57758
      if (this.isSetSuccess()) {
57630
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57759
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57631
        {
57760
        {
57632
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57761
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57633
          for (Order _iter147 : this.success)
57762
          for (Order _iter151 : this.success)
57634
          {
57763
          {
57635
            _iter147.write(oprot);
57764
            _iter151.write(oprot);
57636
          }
57765
          }
57637
          oprot.writeListEnd();
57766
          oprot.writeListEnd();
57638
        }
57767
        }
57639
        oprot.writeFieldEnd();
57768
        oprot.writeFieldEnd();
57640
      }
57769
      }
Line 65586... Line 65715...
65586
        }
65715
        }
65587
        switch (field.id) {
65716
        switch (field.id) {
65588
          case 0: // SUCCESS
65717
          case 0: // SUCCESS
65589
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
65718
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
65590
              {
65719
              {
65591
                org.apache.thrift.protocol.TMap _map148 = iprot.readMapBegin();
65720
                org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin();
65592
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map148.size);
65721
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map152.size);
65593
                for (int _i149 = 0; _i149 < _map148.size; ++_i149)
65722
                for (int _i153 = 0; _i153 < _map152.size; ++_i153)
65594
                {
65723
                {
65595
                  int _key150; // required
65724
                  int _key154; // required
65596
                  TimeoutSummary _val151; // required
65725
                  TimeoutSummary _val155; // required
65597
                  _key150 = iprot.readI32();
65726
                  _key154 = iprot.readI32();
65598
                  _val151 = new TimeoutSummary();
65727
                  _val155 = new TimeoutSummary();
65599
                  _val151.read(iprot);
65728
                  _val155.read(iprot);
65600
                  this.success.put(_key150, _val151);
65729
                  this.success.put(_key154, _val155);
65601
                }
65730
                }
65602
                iprot.readMapEnd();
65731
                iprot.readMapEnd();
65603
              }
65732
              }
65604
            } else { 
65733
            } else { 
65605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
65734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 65627... Line 65756...
65627
 
65756
 
65628
      if (this.isSetSuccess()) {
65757
      if (this.isSetSuccess()) {
65629
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
65758
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
65630
        {
65759
        {
65631
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
65760
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
65632
          for (Map.Entry<Integer, TimeoutSummary> _iter152 : this.success.entrySet())
65761
          for (Map.Entry<Integer, TimeoutSummary> _iter156 : this.success.entrySet())
65633
          {
65762
          {
65634
            oprot.writeI32(_iter152.getKey());
65763
            oprot.writeI32(_iter156.getKey());
65635
            _iter152.getValue().write(oprot);
65764
            _iter156.getValue().write(oprot);
65636
          }
65765
          }
65637
          oprot.writeMapEnd();
65766
          oprot.writeMapEnd();
65638
        }
65767
        }
65639
        oprot.writeFieldEnd();
65768
        oprot.writeFieldEnd();
65640
      } else if (this.isSetEx()) {
65769
      } else if (this.isSetEx()) {
Line 67078... Line 67207...
67078
        }
67207
        }
67079
        switch (field.id) {
67208
        switch (field.id) {
67080
          case 0: // SUCCESS
67209
          case 0: // SUCCESS
67081
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
67210
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
67082
              {
67211
              {
67083
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
67212
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
67084
                this.success = new ArrayList<Order>(_list153.size);
67213
                this.success = new ArrayList<Order>(_list157.size);
67085
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
67214
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
67086
                {
67215
                {
67087
                  Order _elem155; // required
67216
                  Order _elem159; // required
67088
                  _elem155 = new Order();
67217
                  _elem159 = new Order();
67089
                  _elem155.read(iprot);
67218
                  _elem159.read(iprot);
67090
                  this.success.add(_elem155);
67219
                  this.success.add(_elem159);
67091
                }
67220
                }
67092
                iprot.readListEnd();
67221
                iprot.readListEnd();
67093
              }
67222
              }
67094
            } else { 
67223
            } else { 
67095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
67224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 67117... Line 67246...
67117
 
67246
 
67118
      if (this.isSetSuccess()) {
67247
      if (this.isSetSuccess()) {
67119
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
67248
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
67120
        {
67249
        {
67121
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
67250
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
67122
          for (Order _iter156 : this.success)
67251
          for (Order _iter160 : this.success)
67123
          {
67252
          {
67124
            _iter156.write(oprot);
67253
            _iter160.write(oprot);
67125
          }
67254
          }
67126
          oprot.writeListEnd();
67255
          oprot.writeListEnd();
67127
        }
67256
        }
67128
        oprot.writeFieldEnd();
67257
        oprot.writeFieldEnd();
67129
      } else if (this.isSetEx()) {
67258
      } else if (this.isSetEx()) {