Subversion Repositories SmartDukaan

Rev

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

Rev 4452 Rev 4454
Line 296... Line 296...
296
     * @param orderId
296
     * @param orderId
297
     */
297
     */
298
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
298
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
299
 
299
 
300
    /**
300
    /**
-
 
301
     * Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
-
 
302
     * 
-
 
303
     * @param orderId
-
 
304
     */
-
 
305
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
306
 
-
 
307
    /**
-
 
308
     * CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
-
 
309
     * to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
-
 
310
     * 
-
 
311
     * @param orderId
-
 
312
     * @param isAuthorized
-
 
313
     */
-
 
314
    public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;
-
 
315
 
-
 
316
    /**
301
     * Sends out an email to the account manager of the original courier provider used to ship the order.
317
     * Sends out an email to the account manager of the original courier provider used to ship the order.
302
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
318
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
303
     * If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
319
     * If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
304
     * For any other status, it returns false.
320
     * For any other status, it returns false.
305
     * Throws an exception if the order with the given id couldn't be found.
321
     * Throws an exception if the order with the given id couldn't be found.
Line 678... Line 694...
678
 
694
 
679
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
695
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
680
 
696
 
681
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
697
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
682
 
698
 
-
 
699
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
-
 
700
 
-
 
701
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
-
 
702
 
683
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
703
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
684
 
704
 
685
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
705
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
686
 
706
 
687
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
707
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
Line 1837... Line 1857...
1837
        throw result.ex;
1857
        throw result.ex;
1838
      }
1858
      }
1839
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1859
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1840
    }
1860
    }
1841
 
1861
 
-
 
1862
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
1863
    {
-
 
1864
      send_markOrderDoaRequestReceived(orderId);
-
 
1865
      return recv_markOrderDoaRequestReceived();
-
 
1866
    }
-
 
1867
 
-
 
1868
    public void send_markOrderDoaRequestReceived(long orderId) throws org.apache.thrift.TException
-
 
1869
    {
-
 
1870
      markOrderDoaRequestReceived_args args = new markOrderDoaRequestReceived_args();
-
 
1871
      args.setOrderId(orderId);
-
 
1872
      sendBase("markOrderDoaRequestReceived", args);
-
 
1873
    }
-
 
1874
 
-
 
1875
    public boolean recv_markOrderDoaRequestReceived() throws TransactionServiceException, org.apache.thrift.TException
-
 
1876
    {
-
 
1877
      markOrderDoaRequestReceived_result result = new markOrderDoaRequestReceived_result();
-
 
1878
      receiveBase(result, "markOrderDoaRequestReceived");
-
 
1879
      if (result.isSetSuccess()) {
-
 
1880
        return result.success;
-
 
1881
      }
-
 
1882
      if (result.ex != null) {
-
 
1883
        throw result.ex;
-
 
1884
      }
-
 
1885
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");
-
 
1886
    }
-
 
1887
 
-
 
1888
    public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException
-
 
1889
    {
-
 
1890
      send_markOrderDoaRequestAuthorized(orderId, isAuthorized);
-
 
1891
      return recv_markOrderDoaRequestAuthorized();
-
 
1892
    }
-
 
1893
 
-
 
1894
    public void send_markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws org.apache.thrift.TException
-
 
1895
    {
-
 
1896
      markOrderDoaRequestAuthorized_args args = new markOrderDoaRequestAuthorized_args();
-
 
1897
      args.setOrderId(orderId);
-
 
1898
      args.setIsAuthorized(isAuthorized);
-
 
1899
      sendBase("markOrderDoaRequestAuthorized", args);
-
 
1900
    }
-
 
1901
 
-
 
1902
    public boolean recv_markOrderDoaRequestAuthorized() throws TransactionServiceException, org.apache.thrift.TException
-
 
1903
    {
-
 
1904
      markOrderDoaRequestAuthorized_result result = new markOrderDoaRequestAuthorized_result();
-
 
1905
      receiveBase(result, "markOrderDoaRequestAuthorized");
-
 
1906
      if (result.isSetSuccess()) {
-
 
1907
        return result.success;
-
 
1908
      }
-
 
1909
      if (result.ex != null) {
-
 
1910
        throw result.ex;
-
 
1911
      }
-
 
1912
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");
-
 
1913
    }
-
 
1914
 
1842
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1915
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1843
    {
1916
    {
1844
      send_requestPickupNumber(orderId);
1917
      send_requestPickupNumber(orderId);
1845
      return recv_requestPickupNumber();
1918
      return recv_requestPickupNumber();
1846
    }
1919
    }
Line 4117... Line 4190...
4117
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4190
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4118
        return (new Client(prot)).recv_toggleDOAFlag();
4191
        return (new Client(prot)).recv_toggleDOAFlag();
4119
      }
4192
      }
4120
    }
4193
    }
4121
 
4194
 
-
 
4195
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
-
 
4196
      checkReady();
-
 
4197
      markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4198
      this.___currentMethod = method_call;
-
 
4199
      ___manager.call(method_call);
-
 
4200
    }
-
 
4201
 
-
 
4202
    public static class markOrderDoaRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4203
      private long orderId;
-
 
4204
      public markOrderDoaRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_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 {
-
 
4205
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4206
        this.orderId = orderId;
-
 
4207
      }
-
 
4208
 
-
 
4209
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4210
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderDoaRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4211
        markOrderDoaRequestReceived_args args = new markOrderDoaRequestReceived_args();
-
 
4212
        args.setOrderId(orderId);
-
 
4213
        args.write(prot);
-
 
4214
        prot.writeMessageEnd();
-
 
4215
      }
-
 
4216
 
-
 
4217
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4218
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4219
          throw new IllegalStateException("Method call not finished!");
-
 
4220
        }
-
 
4221
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4222
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4223
        return (new Client(prot)).recv_markOrderDoaRequestReceived();
-
 
4224
      }
-
 
4225
    }
-
 
4226
 
-
 
4227
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException {
-
 
4228
      checkReady();
-
 
4229
      markOrderDoaRequestAuthorized_call method_call = new markOrderDoaRequestAuthorized_call(orderId, isAuthorized, resultHandler, this, ___protocolFactory, ___transport);
-
 
4230
      this.___currentMethod = method_call;
-
 
4231
      ___manager.call(method_call);
-
 
4232
    }
-
 
4233
 
-
 
4234
    public static class markOrderDoaRequestAuthorized_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4235
      private long orderId;
-
 
4236
      private boolean isAuthorized;
-
 
4237
      public markOrderDoaRequestAuthorized_call(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestAuthorized_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 {
-
 
4238
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4239
        this.orderId = orderId;
-
 
4240
        this.isAuthorized = isAuthorized;
-
 
4241
      }
-
 
4242
 
-
 
4243
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4244
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderDoaRequestAuthorized", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4245
        markOrderDoaRequestAuthorized_args args = new markOrderDoaRequestAuthorized_args();
-
 
4246
        args.setOrderId(orderId);
-
 
4247
        args.setIsAuthorized(isAuthorized);
-
 
4248
        args.write(prot);
-
 
4249
        prot.writeMessageEnd();
-
 
4250
      }
-
 
4251
 
-
 
4252
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4253
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4254
          throw new IllegalStateException("Method call not finished!");
-
 
4255
        }
-
 
4256
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4257
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4258
        return (new Client(prot)).recv_markOrderDoaRequestAuthorized();
-
 
4259
      }
-
 
4260
    }
-
 
4261
 
4122
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
4262
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
4123
      checkReady();
4263
      checkReady();
4124
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4264
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4125
      this.___currentMethod = method_call;
4265
      this.___currentMethod = method_call;
4126
      ___manager.call(method_call);
4266
      ___manager.call(method_call);
Line 5288... Line 5428...
5288
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
5428
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
5289
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
5429
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
5290
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
5430
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
5291
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
5431
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
5292
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
5432
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
-
 
5433
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
-
 
5434
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
5293
      processMap.put("requestPickupNumber", new requestPickupNumber());
5435
      processMap.put("requestPickupNumber", new requestPickupNumber());
5294
      processMap.put("authorizePickup", new authorizePickup());
5436
      processMap.put("authorizePickup", new authorizePickup());
5295
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5437
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5296
      processMap.put("receiveReturn", new receiveReturn());
5438
      processMap.put("receiveReturn", new receiveReturn());
5297
      processMap.put("validateDoa", new validateDoa());
5439
      processMap.put("validateDoa", new validateDoa());
Line 6126... Line 6268...
6126
        }
6268
        }
6127
        return result;
6269
        return result;
6128
      }
6270
      }
6129
    }
6271
    }
6130
 
6272
 
-
 
6273
    private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {
-
 
6274
      public markOrderDoaRequestReceived() {
-
 
6275
        super("markOrderDoaRequestReceived");
-
 
6276
      }
-
 
6277
 
-
 
6278
      protected markOrderDoaRequestReceived_args getEmptyArgsInstance() {
-
 
6279
        return new markOrderDoaRequestReceived_args();
-
 
6280
      }
-
 
6281
 
-
 
6282
      protected markOrderDoaRequestReceived_result getResult(I iface, markOrderDoaRequestReceived_args args) throws org.apache.thrift.TException {
-
 
6283
        markOrderDoaRequestReceived_result result = new markOrderDoaRequestReceived_result();
-
 
6284
        try {
-
 
6285
          result.success = iface.markOrderDoaRequestReceived(args.orderId);
-
 
6286
          result.setSuccessIsSet(true);
-
 
6287
        } catch (TransactionServiceException ex) {
-
 
6288
          result.ex = ex;
-
 
6289
        }
-
 
6290
        return result;
-
 
6291
      }
-
 
6292
    }
-
 
6293
 
-
 
6294
    private static class markOrderDoaRequestAuthorized<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestAuthorized_args> {
-
 
6295
      public markOrderDoaRequestAuthorized() {
-
 
6296
        super("markOrderDoaRequestAuthorized");
-
 
6297
      }
-
 
6298
 
-
 
6299
      protected markOrderDoaRequestAuthorized_args getEmptyArgsInstance() {
-
 
6300
        return new markOrderDoaRequestAuthorized_args();
-
 
6301
      }
-
 
6302
 
-
 
6303
      protected markOrderDoaRequestAuthorized_result getResult(I iface, markOrderDoaRequestAuthorized_args args) throws org.apache.thrift.TException {
-
 
6304
        markOrderDoaRequestAuthorized_result result = new markOrderDoaRequestAuthorized_result();
-
 
6305
        try {
-
 
6306
          result.success = iface.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized);
-
 
6307
          result.setSuccessIsSet(true);
-
 
6308
        } catch (TransactionServiceException ex) {
-
 
6309
          result.ex = ex;
-
 
6310
        }
-
 
6311
        return result;
-
 
6312
      }
-
 
6313
    }
-
 
6314
 
6131
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
6315
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
6132
      public requestPickupNumber() {
6316
      public requestPickupNumber() {
6133
        super("requestPickupNumber");
6317
        super("requestPickupNumber");
6134
      }
6318
      }
6135
 
6319
 
Line 38089... Line 38273...
38089
      boolean first = true;
38273
      boolean first = true;
38090
 
38274
 
38091
      sb.append("success:");
38275
      sb.append("success:");
38092
      sb.append(this.success);
38276
      sb.append(this.success);
38093
      first = false;
38277
      first = false;
-
 
38278
      if (!first) sb.append(", ");
-
 
38279
      sb.append("ex:");
-
 
38280
      if (this.ex == null) {
-
 
38281
        sb.append("null");
-
 
38282
      } else {
-
 
38283
        sb.append(this.ex);
-
 
38284
      }
-
 
38285
      first = false;
-
 
38286
      sb.append(")");
-
 
38287
      return sb.toString();
-
 
38288
    }
-
 
38289
 
-
 
38290
    public void validate() throws org.apache.thrift.TException {
-
 
38291
      // check for required fields
-
 
38292
    }
-
 
38293
 
-
 
38294
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38295
      try {
-
 
38296
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38297
      } catch (org.apache.thrift.TException te) {
-
 
38298
        throw new java.io.IOException(te);
-
 
38299
      }
-
 
38300
    }
-
 
38301
 
-
 
38302
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38303
      try {
-
 
38304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38305
      } catch (org.apache.thrift.TException te) {
-
 
38306
        throw new java.io.IOException(te);
-
 
38307
      }
-
 
38308
    }
-
 
38309
 
-
 
38310
  }
-
 
38311
 
-
 
38312
  public static class markOrderDoaRequestReceived_args implements org.apache.thrift.TBase<markOrderDoaRequestReceived_args, markOrderDoaRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_args");
-
 
38314
 
-
 
38315
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
38316
 
-
 
38317
    private long orderId; // required
-
 
38318
 
-
 
38319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38321
      ORDER_ID((short)1, "orderId");
-
 
38322
 
-
 
38323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38324
 
-
 
38325
      static {
-
 
38326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38327
          byName.put(field.getFieldName(), field);
-
 
38328
        }
-
 
38329
      }
-
 
38330
 
-
 
38331
      /**
-
 
38332
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38333
       */
-
 
38334
      public static _Fields findByThriftId(int fieldId) {
-
 
38335
        switch(fieldId) {
-
 
38336
          case 1: // ORDER_ID
-
 
38337
            return ORDER_ID;
-
 
38338
          default:
-
 
38339
            return null;
-
 
38340
        }
-
 
38341
      }
-
 
38342
 
-
 
38343
      /**
-
 
38344
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38345
       * if it is not found.
-
 
38346
       */
-
 
38347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38348
        _Fields fields = findByThriftId(fieldId);
-
 
38349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38350
        return fields;
-
 
38351
      }
-
 
38352
 
-
 
38353
      /**
-
 
38354
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38355
       */
-
 
38356
      public static _Fields findByName(String name) {
-
 
38357
        return byName.get(name);
-
 
38358
      }
-
 
38359
 
-
 
38360
      private final short _thriftId;
-
 
38361
      private final String _fieldName;
-
 
38362
 
-
 
38363
      _Fields(short thriftId, String fieldName) {
-
 
38364
        _thriftId = thriftId;
-
 
38365
        _fieldName = fieldName;
-
 
38366
      }
-
 
38367
 
-
 
38368
      public short getThriftFieldId() {
-
 
38369
        return _thriftId;
-
 
38370
      }
-
 
38371
 
-
 
38372
      public String getFieldName() {
-
 
38373
        return _fieldName;
-
 
38374
      }
-
 
38375
    }
-
 
38376
 
-
 
38377
    // isset id assignments
-
 
38378
    private static final int __ORDERID_ISSET_ID = 0;
-
 
38379
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38380
 
-
 
38381
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38382
    static {
-
 
38383
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38384
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38385
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
38386
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38387
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestReceived_args.class, metaDataMap);
-
 
38388
    }
-
 
38389
 
-
 
38390
    public markOrderDoaRequestReceived_args() {
-
 
38391
    }
-
 
38392
 
-
 
38393
    public markOrderDoaRequestReceived_args(
-
 
38394
      long orderId)
-
 
38395
    {
-
 
38396
      this();
-
 
38397
      this.orderId = orderId;
-
 
38398
      setOrderIdIsSet(true);
-
 
38399
    }
-
 
38400
 
-
 
38401
    /**
-
 
38402
     * Performs a deep copy on <i>other</i>.
-
 
38403
     */
-
 
38404
    public markOrderDoaRequestReceived_args(markOrderDoaRequestReceived_args other) {
-
 
38405
      __isset_bit_vector.clear();
-
 
38406
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38407
      this.orderId = other.orderId;
-
 
38408
    }
-
 
38409
 
-
 
38410
    public markOrderDoaRequestReceived_args deepCopy() {
-
 
38411
      return new markOrderDoaRequestReceived_args(this);
-
 
38412
    }
-
 
38413
 
-
 
38414
    @Override
-
 
38415
    public void clear() {
-
 
38416
      setOrderIdIsSet(false);
-
 
38417
      this.orderId = 0;
-
 
38418
    }
-
 
38419
 
-
 
38420
    public long getOrderId() {
-
 
38421
      return this.orderId;
-
 
38422
    }
-
 
38423
 
-
 
38424
    public void setOrderId(long orderId) {
-
 
38425
      this.orderId = orderId;
-
 
38426
      setOrderIdIsSet(true);
-
 
38427
    }
-
 
38428
 
-
 
38429
    public void unsetOrderId() {
-
 
38430
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
38431
    }
-
 
38432
 
-
 
38433
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
38434
    public boolean isSetOrderId() {
-
 
38435
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
38436
    }
-
 
38437
 
-
 
38438
    public void setOrderIdIsSet(boolean value) {
-
 
38439
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
38440
    }
-
 
38441
 
-
 
38442
    public void setFieldValue(_Fields field, Object value) {
-
 
38443
      switch (field) {
-
 
38444
      case ORDER_ID:
-
 
38445
        if (value == null) {
-
 
38446
          unsetOrderId();
-
 
38447
        } else {
-
 
38448
          setOrderId((Long)value);
-
 
38449
        }
-
 
38450
        break;
-
 
38451
 
-
 
38452
      }
-
 
38453
    }
-
 
38454
 
-
 
38455
    public Object getFieldValue(_Fields field) {
-
 
38456
      switch (field) {
-
 
38457
      case ORDER_ID:
-
 
38458
        return Long.valueOf(getOrderId());
-
 
38459
 
-
 
38460
      }
-
 
38461
      throw new IllegalStateException();
-
 
38462
    }
-
 
38463
 
-
 
38464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38465
    public boolean isSet(_Fields field) {
-
 
38466
      if (field == null) {
-
 
38467
        throw new IllegalArgumentException();
-
 
38468
      }
-
 
38469
 
-
 
38470
      switch (field) {
-
 
38471
      case ORDER_ID:
-
 
38472
        return isSetOrderId();
-
 
38473
      }
-
 
38474
      throw new IllegalStateException();
-
 
38475
    }
-
 
38476
 
-
 
38477
    @Override
-
 
38478
    public boolean equals(Object that) {
-
 
38479
      if (that == null)
-
 
38480
        return false;
-
 
38481
      if (that instanceof markOrderDoaRequestReceived_args)
-
 
38482
        return this.equals((markOrderDoaRequestReceived_args)that);
-
 
38483
      return false;
-
 
38484
    }
-
 
38485
 
-
 
38486
    public boolean equals(markOrderDoaRequestReceived_args that) {
-
 
38487
      if (that == null)
-
 
38488
        return false;
-
 
38489
 
-
 
38490
      boolean this_present_orderId = true;
-
 
38491
      boolean that_present_orderId = true;
-
 
38492
      if (this_present_orderId || that_present_orderId) {
-
 
38493
        if (!(this_present_orderId && that_present_orderId))
-
 
38494
          return false;
-
 
38495
        if (this.orderId != that.orderId)
-
 
38496
          return false;
-
 
38497
      }
-
 
38498
 
-
 
38499
      return true;
-
 
38500
    }
-
 
38501
 
-
 
38502
    @Override
-
 
38503
    public int hashCode() {
-
 
38504
      return 0;
-
 
38505
    }
-
 
38506
 
-
 
38507
    public int compareTo(markOrderDoaRequestReceived_args other) {
-
 
38508
      if (!getClass().equals(other.getClass())) {
-
 
38509
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38510
      }
-
 
38511
 
-
 
38512
      int lastComparison = 0;
-
 
38513
      markOrderDoaRequestReceived_args typedOther = (markOrderDoaRequestReceived_args)other;
-
 
38514
 
-
 
38515
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
38516
      if (lastComparison != 0) {
-
 
38517
        return lastComparison;
-
 
38518
      }
-
 
38519
      if (isSetOrderId()) {
-
 
38520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
38521
        if (lastComparison != 0) {
-
 
38522
          return lastComparison;
-
 
38523
        }
-
 
38524
      }
-
 
38525
      return 0;
-
 
38526
    }
-
 
38527
 
-
 
38528
    public _Fields fieldForId(int fieldId) {
-
 
38529
      return _Fields.findByThriftId(fieldId);
-
 
38530
    }
-
 
38531
 
-
 
38532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38533
      org.apache.thrift.protocol.TField field;
-
 
38534
      iprot.readStructBegin();
-
 
38535
      while (true)
-
 
38536
      {
-
 
38537
        field = iprot.readFieldBegin();
-
 
38538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38539
          break;
-
 
38540
        }
-
 
38541
        switch (field.id) {
-
 
38542
          case 1: // ORDER_ID
-
 
38543
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
38544
              this.orderId = iprot.readI64();
-
 
38545
              setOrderIdIsSet(true);
-
 
38546
            } else { 
-
 
38547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38548
            }
-
 
38549
            break;
-
 
38550
          default:
-
 
38551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38552
        }
-
 
38553
        iprot.readFieldEnd();
-
 
38554
      }
-
 
38555
      iprot.readStructEnd();
-
 
38556
      validate();
-
 
38557
    }
-
 
38558
 
-
 
38559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38560
      validate();
-
 
38561
 
-
 
38562
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38563
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
38564
      oprot.writeI64(this.orderId);
-
 
38565
      oprot.writeFieldEnd();
-
 
38566
      oprot.writeFieldStop();
-
 
38567
      oprot.writeStructEnd();
-
 
38568
    }
-
 
38569
 
-
 
38570
    @Override
-
 
38571
    public String toString() {
-
 
38572
      StringBuilder sb = new StringBuilder("markOrderDoaRequestReceived_args(");
-
 
38573
      boolean first = true;
-
 
38574
 
-
 
38575
      sb.append("orderId:");
-
 
38576
      sb.append(this.orderId);
-
 
38577
      first = false;
-
 
38578
      sb.append(")");
-
 
38579
      return sb.toString();
-
 
38580
    }
-
 
38581
 
-
 
38582
    public void validate() throws org.apache.thrift.TException {
-
 
38583
      // check for required fields
-
 
38584
    }
-
 
38585
 
-
 
38586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38587
      try {
-
 
38588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38589
      } catch (org.apache.thrift.TException te) {
-
 
38590
        throw new java.io.IOException(te);
-
 
38591
      }
-
 
38592
    }
-
 
38593
 
-
 
38594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38595
      try {
-
 
38596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38597
      } catch (org.apache.thrift.TException te) {
-
 
38598
        throw new java.io.IOException(te);
-
 
38599
      }
-
 
38600
    }
-
 
38601
 
-
 
38602
  }
-
 
38603
 
-
 
38604
  public static class markOrderDoaRequestReceived_result implements org.apache.thrift.TBase<markOrderDoaRequestReceived_result, markOrderDoaRequestReceived_result._Fields>, java.io.Serializable, Cloneable   {
-
 
38605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_result");
-
 
38606
 
-
 
38607
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
38608
    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);
-
 
38609
 
-
 
38610
    private boolean success; // required
-
 
38611
    private TransactionServiceException ex; // required
-
 
38612
 
-
 
38613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38615
      SUCCESS((short)0, "success"),
-
 
38616
      EX((short)1, "ex");
-
 
38617
 
-
 
38618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38619
 
-
 
38620
      static {
-
 
38621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38622
          byName.put(field.getFieldName(), field);
-
 
38623
        }
-
 
38624
      }
-
 
38625
 
-
 
38626
      /**
-
 
38627
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38628
       */
-
 
38629
      public static _Fields findByThriftId(int fieldId) {
-
 
38630
        switch(fieldId) {
-
 
38631
          case 0: // SUCCESS
-
 
38632
            return SUCCESS;
-
 
38633
          case 1: // EX
-
 
38634
            return EX;
-
 
38635
          default:
-
 
38636
            return null;
-
 
38637
        }
-
 
38638
      }
-
 
38639
 
-
 
38640
      /**
-
 
38641
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38642
       * if it is not found.
-
 
38643
       */
-
 
38644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38645
        _Fields fields = findByThriftId(fieldId);
-
 
38646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38647
        return fields;
-
 
38648
      }
-
 
38649
 
-
 
38650
      /**
-
 
38651
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38652
       */
-
 
38653
      public static _Fields findByName(String name) {
-
 
38654
        return byName.get(name);
-
 
38655
      }
-
 
38656
 
-
 
38657
      private final short _thriftId;
-
 
38658
      private final String _fieldName;
-
 
38659
 
-
 
38660
      _Fields(short thriftId, String fieldName) {
-
 
38661
        _thriftId = thriftId;
-
 
38662
        _fieldName = fieldName;
-
 
38663
      }
-
 
38664
 
-
 
38665
      public short getThriftFieldId() {
-
 
38666
        return _thriftId;
-
 
38667
      }
-
 
38668
 
-
 
38669
      public String getFieldName() {
-
 
38670
        return _fieldName;
-
 
38671
      }
-
 
38672
    }
-
 
38673
 
-
 
38674
    // isset id assignments
-
 
38675
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
38676
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38677
 
-
 
38678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38679
    static {
-
 
38680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
38683
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
38685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestReceived_result.class, metaDataMap);
-
 
38687
    }
-
 
38688
 
-
 
38689
    public markOrderDoaRequestReceived_result() {
-
 
38690
    }
-
 
38691
 
-
 
38692
    public markOrderDoaRequestReceived_result(
-
 
38693
      boolean success,
-
 
38694
      TransactionServiceException ex)
-
 
38695
    {
-
 
38696
      this();
-
 
38697
      this.success = success;
-
 
38698
      setSuccessIsSet(true);
-
 
38699
      this.ex = ex;
-
 
38700
    }
-
 
38701
 
-
 
38702
    /**
-
 
38703
     * Performs a deep copy on <i>other</i>.
-
 
38704
     */
-
 
38705
    public markOrderDoaRequestReceived_result(markOrderDoaRequestReceived_result other) {
-
 
38706
      __isset_bit_vector.clear();
-
 
38707
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38708
      this.success = other.success;
-
 
38709
      if (other.isSetEx()) {
-
 
38710
        this.ex = new TransactionServiceException(other.ex);
-
 
38711
      }
-
 
38712
    }
-
 
38713
 
-
 
38714
    public markOrderDoaRequestReceived_result deepCopy() {
-
 
38715
      return new markOrderDoaRequestReceived_result(this);
-
 
38716
    }
-
 
38717
 
-
 
38718
    @Override
-
 
38719
    public void clear() {
-
 
38720
      setSuccessIsSet(false);
-
 
38721
      this.success = false;
-
 
38722
      this.ex = null;
-
 
38723
    }
-
 
38724
 
-
 
38725
    public boolean isSuccess() {
-
 
38726
      return this.success;
-
 
38727
    }
-
 
38728
 
-
 
38729
    public void setSuccess(boolean success) {
-
 
38730
      this.success = success;
-
 
38731
      setSuccessIsSet(true);
-
 
38732
    }
-
 
38733
 
-
 
38734
    public void unsetSuccess() {
-
 
38735
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
38736
    }
-
 
38737
 
-
 
38738
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
38739
    public boolean isSetSuccess() {
-
 
38740
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
38741
    }
-
 
38742
 
-
 
38743
    public void setSuccessIsSet(boolean value) {
-
 
38744
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
38745
    }
-
 
38746
 
-
 
38747
    public TransactionServiceException getEx() {
-
 
38748
      return this.ex;
-
 
38749
    }
-
 
38750
 
-
 
38751
    public void setEx(TransactionServiceException ex) {
-
 
38752
      this.ex = ex;
-
 
38753
    }
-
 
38754
 
-
 
38755
    public void unsetEx() {
-
 
38756
      this.ex = null;
-
 
38757
    }
-
 
38758
 
-
 
38759
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
38760
    public boolean isSetEx() {
-
 
38761
      return this.ex != null;
-
 
38762
    }
-
 
38763
 
-
 
38764
    public void setExIsSet(boolean value) {
-
 
38765
      if (!value) {
-
 
38766
        this.ex = null;
-
 
38767
      }
-
 
38768
    }
-
 
38769
 
-
 
38770
    public void setFieldValue(_Fields field, Object value) {
-
 
38771
      switch (field) {
-
 
38772
      case SUCCESS:
-
 
38773
        if (value == null) {
-
 
38774
          unsetSuccess();
-
 
38775
        } else {
-
 
38776
          setSuccess((Boolean)value);
-
 
38777
        }
-
 
38778
        break;
-
 
38779
 
-
 
38780
      case EX:
-
 
38781
        if (value == null) {
-
 
38782
          unsetEx();
-
 
38783
        } else {
-
 
38784
          setEx((TransactionServiceException)value);
-
 
38785
        }
-
 
38786
        break;
-
 
38787
 
-
 
38788
      }
-
 
38789
    }
-
 
38790
 
-
 
38791
    public Object getFieldValue(_Fields field) {
-
 
38792
      switch (field) {
-
 
38793
      case SUCCESS:
-
 
38794
        return Boolean.valueOf(isSuccess());
-
 
38795
 
-
 
38796
      case EX:
-
 
38797
        return getEx();
-
 
38798
 
-
 
38799
      }
-
 
38800
      throw new IllegalStateException();
-
 
38801
    }
-
 
38802
 
-
 
38803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38804
    public boolean isSet(_Fields field) {
-
 
38805
      if (field == null) {
-
 
38806
        throw new IllegalArgumentException();
-
 
38807
      }
-
 
38808
 
-
 
38809
      switch (field) {
-
 
38810
      case SUCCESS:
-
 
38811
        return isSetSuccess();
-
 
38812
      case EX:
-
 
38813
        return isSetEx();
-
 
38814
      }
-
 
38815
      throw new IllegalStateException();
-
 
38816
    }
-
 
38817
 
-
 
38818
    @Override
-
 
38819
    public boolean equals(Object that) {
-
 
38820
      if (that == null)
-
 
38821
        return false;
-
 
38822
      if (that instanceof markOrderDoaRequestReceived_result)
-
 
38823
        return this.equals((markOrderDoaRequestReceived_result)that);
-
 
38824
      return false;
-
 
38825
    }
-
 
38826
 
-
 
38827
    public boolean equals(markOrderDoaRequestReceived_result that) {
-
 
38828
      if (that == null)
-
 
38829
        return false;
-
 
38830
 
-
 
38831
      boolean this_present_success = true;
-
 
38832
      boolean that_present_success = true;
-
 
38833
      if (this_present_success || that_present_success) {
-
 
38834
        if (!(this_present_success && that_present_success))
-
 
38835
          return false;
-
 
38836
        if (this.success != that.success)
-
 
38837
          return false;
-
 
38838
      }
-
 
38839
 
-
 
38840
      boolean this_present_ex = true && this.isSetEx();
-
 
38841
      boolean that_present_ex = true && that.isSetEx();
-
 
38842
      if (this_present_ex || that_present_ex) {
-
 
38843
        if (!(this_present_ex && that_present_ex))
-
 
38844
          return false;
-
 
38845
        if (!this.ex.equals(that.ex))
-
 
38846
          return false;
-
 
38847
      }
-
 
38848
 
-
 
38849
      return true;
-
 
38850
    }
-
 
38851
 
-
 
38852
    @Override
-
 
38853
    public int hashCode() {
-
 
38854
      return 0;
-
 
38855
    }
-
 
38856
 
-
 
38857
    public int compareTo(markOrderDoaRequestReceived_result other) {
-
 
38858
      if (!getClass().equals(other.getClass())) {
-
 
38859
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38860
      }
-
 
38861
 
-
 
38862
      int lastComparison = 0;
-
 
38863
      markOrderDoaRequestReceived_result typedOther = (markOrderDoaRequestReceived_result)other;
-
 
38864
 
-
 
38865
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38866
      if (lastComparison != 0) {
-
 
38867
        return lastComparison;
-
 
38868
      }
-
 
38869
      if (isSetSuccess()) {
-
 
38870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38871
        if (lastComparison != 0) {
-
 
38872
          return lastComparison;
-
 
38873
        }
-
 
38874
      }
-
 
38875
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
38876
      if (lastComparison != 0) {
-
 
38877
        return lastComparison;
-
 
38878
      }
-
 
38879
      if (isSetEx()) {
-
 
38880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
38881
        if (lastComparison != 0) {
-
 
38882
          return lastComparison;
-
 
38883
        }
-
 
38884
      }
-
 
38885
      return 0;
-
 
38886
    }
-
 
38887
 
-
 
38888
    public _Fields fieldForId(int fieldId) {
-
 
38889
      return _Fields.findByThriftId(fieldId);
-
 
38890
    }
-
 
38891
 
-
 
38892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38893
      org.apache.thrift.protocol.TField field;
-
 
38894
      iprot.readStructBegin();
-
 
38895
      while (true)
-
 
38896
      {
-
 
38897
        field = iprot.readFieldBegin();
-
 
38898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38899
          break;
-
 
38900
        }
-
 
38901
        switch (field.id) {
-
 
38902
          case 0: // SUCCESS
-
 
38903
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
38904
              this.success = iprot.readBool();
-
 
38905
              setSuccessIsSet(true);
-
 
38906
            } else { 
-
 
38907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38908
            }
-
 
38909
            break;
-
 
38910
          case 1: // EX
-
 
38911
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
38912
              this.ex = new TransactionServiceException();
-
 
38913
              this.ex.read(iprot);
-
 
38914
            } else { 
-
 
38915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38916
            }
-
 
38917
            break;
-
 
38918
          default:
-
 
38919
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38920
        }
-
 
38921
        iprot.readFieldEnd();
-
 
38922
      }
-
 
38923
      iprot.readStructEnd();
-
 
38924
      validate();
-
 
38925
    }
-
 
38926
 
-
 
38927
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38928
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38929
 
-
 
38930
      if (this.isSetSuccess()) {
-
 
38931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38932
        oprot.writeBool(this.success);
-
 
38933
        oprot.writeFieldEnd();
-
 
38934
      } else if (this.isSetEx()) {
-
 
38935
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
38936
        this.ex.write(oprot);
-
 
38937
        oprot.writeFieldEnd();
-
 
38938
      }
-
 
38939
      oprot.writeFieldStop();
-
 
38940
      oprot.writeStructEnd();
-
 
38941
    }
-
 
38942
 
-
 
38943
    @Override
-
 
38944
    public String toString() {
-
 
38945
      StringBuilder sb = new StringBuilder("markOrderDoaRequestReceived_result(");
-
 
38946
      boolean first = true;
-
 
38947
 
-
 
38948
      sb.append("success:");
-
 
38949
      sb.append(this.success);
-
 
38950
      first = false;
-
 
38951
      if (!first) sb.append(", ");
-
 
38952
      sb.append("ex:");
-
 
38953
      if (this.ex == null) {
-
 
38954
        sb.append("null");
-
 
38955
      } else {
-
 
38956
        sb.append(this.ex);
-
 
38957
      }
-
 
38958
      first = false;
-
 
38959
      sb.append(")");
-
 
38960
      return sb.toString();
-
 
38961
    }
-
 
38962
 
-
 
38963
    public void validate() throws org.apache.thrift.TException {
-
 
38964
      // check for required fields
-
 
38965
    }
-
 
38966
 
-
 
38967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38968
      try {
-
 
38969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38970
      } catch (org.apache.thrift.TException te) {
-
 
38971
        throw new java.io.IOException(te);
-
 
38972
      }
-
 
38973
    }
-
 
38974
 
-
 
38975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38976
      try {
-
 
38977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38978
      } catch (org.apache.thrift.TException te) {
-
 
38979
        throw new java.io.IOException(te);
-
 
38980
      }
-
 
38981
    }
-
 
38982
 
-
 
38983
  }
-
 
38984
 
-
 
38985
  public static class markOrderDoaRequestAuthorized_args implements org.apache.thrift.TBase<markOrderDoaRequestAuthorized_args, markOrderDoaRequestAuthorized_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestAuthorized_args");
-
 
38987
 
-
 
38988
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
38989
    private static final org.apache.thrift.protocol.TField IS_AUTHORIZED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAuthorized", org.apache.thrift.protocol.TType.BOOL, (short)2);
-
 
38990
 
-
 
38991
    private long orderId; // required
-
 
38992
    private boolean isAuthorized; // required
-
 
38993
 
-
 
38994
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38995
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38996
      ORDER_ID((short)1, "orderId"),
-
 
38997
      IS_AUTHORIZED((short)2, "isAuthorized");
-
 
38998
 
-
 
38999
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39000
 
-
 
39001
      static {
-
 
39002
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39003
          byName.put(field.getFieldName(), field);
-
 
39004
        }
-
 
39005
      }
-
 
39006
 
-
 
39007
      /**
-
 
39008
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39009
       */
-
 
39010
      public static _Fields findByThriftId(int fieldId) {
-
 
39011
        switch(fieldId) {
-
 
39012
          case 1: // ORDER_ID
-
 
39013
            return ORDER_ID;
-
 
39014
          case 2: // IS_AUTHORIZED
-
 
39015
            return IS_AUTHORIZED;
-
 
39016
          default:
-
 
39017
            return null;
-
 
39018
        }
-
 
39019
      }
-
 
39020
 
-
 
39021
      /**
-
 
39022
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39023
       * if it is not found.
-
 
39024
       */
-
 
39025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39026
        _Fields fields = findByThriftId(fieldId);
-
 
39027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39028
        return fields;
-
 
39029
      }
-
 
39030
 
-
 
39031
      /**
-
 
39032
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39033
       */
-
 
39034
      public static _Fields findByName(String name) {
-
 
39035
        return byName.get(name);
-
 
39036
      }
-
 
39037
 
-
 
39038
      private final short _thriftId;
-
 
39039
      private final String _fieldName;
-
 
39040
 
-
 
39041
      _Fields(short thriftId, String fieldName) {
-
 
39042
        _thriftId = thriftId;
-
 
39043
        _fieldName = fieldName;
-
 
39044
      }
-
 
39045
 
-
 
39046
      public short getThriftFieldId() {
-
 
39047
        return _thriftId;
-
 
39048
      }
-
 
39049
 
-
 
39050
      public String getFieldName() {
-
 
39051
        return _fieldName;
-
 
39052
      }
-
 
39053
    }
-
 
39054
 
-
 
39055
    // isset id assignments
-
 
39056
    private static final int __ORDERID_ISSET_ID = 0;
-
 
39057
    private static final int __ISAUTHORIZED_ISSET_ID = 1;
-
 
39058
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
39059
 
-
 
39060
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39061
    static {
-
 
39062
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39063
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39064
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
39065
      tmpMap.put(_Fields.IS_AUTHORIZED, new org.apache.thrift.meta_data.FieldMetaData("isAuthorized", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
39067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestAuthorized_args.class, metaDataMap);
-
 
39069
    }
-
 
39070
 
-
 
39071
    public markOrderDoaRequestAuthorized_args() {
-
 
39072
    }
-
 
39073
 
-
 
39074
    public markOrderDoaRequestAuthorized_args(
-
 
39075
      long orderId,
-
 
39076
      boolean isAuthorized)
-
 
39077
    {
-
 
39078
      this();
-
 
39079
      this.orderId = orderId;
-
 
39080
      setOrderIdIsSet(true);
-
 
39081
      this.isAuthorized = isAuthorized;
-
 
39082
      setIsAuthorizedIsSet(true);
-
 
39083
    }
-
 
39084
 
-
 
39085
    /**
-
 
39086
     * Performs a deep copy on <i>other</i>.
-
 
39087
     */
-
 
39088
    public markOrderDoaRequestAuthorized_args(markOrderDoaRequestAuthorized_args other) {
-
 
39089
      __isset_bit_vector.clear();
-
 
39090
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
39091
      this.orderId = other.orderId;
-
 
39092
      this.isAuthorized = other.isAuthorized;
-
 
39093
    }
-
 
39094
 
-
 
39095
    public markOrderDoaRequestAuthorized_args deepCopy() {
-
 
39096
      return new markOrderDoaRequestAuthorized_args(this);
-
 
39097
    }
-
 
39098
 
-
 
39099
    @Override
-
 
39100
    public void clear() {
-
 
39101
      setOrderIdIsSet(false);
-
 
39102
      this.orderId = 0;
-
 
39103
      setIsAuthorizedIsSet(false);
-
 
39104
      this.isAuthorized = false;
-
 
39105
    }
-
 
39106
 
-
 
39107
    public long getOrderId() {
-
 
39108
      return this.orderId;
-
 
39109
    }
-
 
39110
 
-
 
39111
    public void setOrderId(long orderId) {
-
 
39112
      this.orderId = orderId;
-
 
39113
      setOrderIdIsSet(true);
-
 
39114
    }
-
 
39115
 
-
 
39116
    public void unsetOrderId() {
-
 
39117
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
39118
    }
-
 
39119
 
-
 
39120
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
39121
    public boolean isSetOrderId() {
-
 
39122
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
39123
    }
-
 
39124
 
-
 
39125
    public void setOrderIdIsSet(boolean value) {
-
 
39126
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
39127
    }
-
 
39128
 
-
 
39129
    public boolean isIsAuthorized() {
-
 
39130
      return this.isAuthorized;
-
 
39131
    }
-
 
39132
 
-
 
39133
    public void setIsAuthorized(boolean isAuthorized) {
-
 
39134
      this.isAuthorized = isAuthorized;
-
 
39135
      setIsAuthorizedIsSet(true);
-
 
39136
    }
-
 
39137
 
-
 
39138
    public void unsetIsAuthorized() {
-
 
39139
      __isset_bit_vector.clear(__ISAUTHORIZED_ISSET_ID);
-
 
39140
    }
-
 
39141
 
-
 
39142
    /** Returns true if field isAuthorized is set (has been assigned a value) and false otherwise */
-
 
39143
    public boolean isSetIsAuthorized() {
-
 
39144
      return __isset_bit_vector.get(__ISAUTHORIZED_ISSET_ID);
-
 
39145
    }
-
 
39146
 
-
 
39147
    public void setIsAuthorizedIsSet(boolean value) {
-
 
39148
      __isset_bit_vector.set(__ISAUTHORIZED_ISSET_ID, value);
-
 
39149
    }
-
 
39150
 
-
 
39151
    public void setFieldValue(_Fields field, Object value) {
-
 
39152
      switch (field) {
-
 
39153
      case ORDER_ID:
-
 
39154
        if (value == null) {
-
 
39155
          unsetOrderId();
-
 
39156
        } else {
-
 
39157
          setOrderId((Long)value);
-
 
39158
        }
-
 
39159
        break;
-
 
39160
 
-
 
39161
      case IS_AUTHORIZED:
-
 
39162
        if (value == null) {
-
 
39163
          unsetIsAuthorized();
-
 
39164
        } else {
-
 
39165
          setIsAuthorized((Boolean)value);
-
 
39166
        }
-
 
39167
        break;
-
 
39168
 
-
 
39169
      }
-
 
39170
    }
-
 
39171
 
-
 
39172
    public Object getFieldValue(_Fields field) {
-
 
39173
      switch (field) {
-
 
39174
      case ORDER_ID:
-
 
39175
        return Long.valueOf(getOrderId());
-
 
39176
 
-
 
39177
      case IS_AUTHORIZED:
-
 
39178
        return Boolean.valueOf(isIsAuthorized());
-
 
39179
 
-
 
39180
      }
-
 
39181
      throw new IllegalStateException();
-
 
39182
    }
-
 
39183
 
-
 
39184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39185
    public boolean isSet(_Fields field) {
-
 
39186
      if (field == null) {
-
 
39187
        throw new IllegalArgumentException();
-
 
39188
      }
-
 
39189
 
-
 
39190
      switch (field) {
-
 
39191
      case ORDER_ID:
-
 
39192
        return isSetOrderId();
-
 
39193
      case IS_AUTHORIZED:
-
 
39194
        return isSetIsAuthorized();
-
 
39195
      }
-
 
39196
      throw new IllegalStateException();
-
 
39197
    }
-
 
39198
 
-
 
39199
    @Override
-
 
39200
    public boolean equals(Object that) {
-
 
39201
      if (that == null)
-
 
39202
        return false;
-
 
39203
      if (that instanceof markOrderDoaRequestAuthorized_args)
-
 
39204
        return this.equals((markOrderDoaRequestAuthorized_args)that);
-
 
39205
      return false;
-
 
39206
    }
-
 
39207
 
-
 
39208
    public boolean equals(markOrderDoaRequestAuthorized_args that) {
-
 
39209
      if (that == null)
-
 
39210
        return false;
-
 
39211
 
-
 
39212
      boolean this_present_orderId = true;
-
 
39213
      boolean that_present_orderId = true;
-
 
39214
      if (this_present_orderId || that_present_orderId) {
-
 
39215
        if (!(this_present_orderId && that_present_orderId))
-
 
39216
          return false;
-
 
39217
        if (this.orderId != that.orderId)
-
 
39218
          return false;
-
 
39219
      }
-
 
39220
 
-
 
39221
      boolean this_present_isAuthorized = true;
-
 
39222
      boolean that_present_isAuthorized = true;
-
 
39223
      if (this_present_isAuthorized || that_present_isAuthorized) {
-
 
39224
        if (!(this_present_isAuthorized && that_present_isAuthorized))
-
 
39225
          return false;
-
 
39226
        if (this.isAuthorized != that.isAuthorized)
-
 
39227
          return false;
-
 
39228
      }
-
 
39229
 
-
 
39230
      return true;
-
 
39231
    }
-
 
39232
 
-
 
39233
    @Override
-
 
39234
    public int hashCode() {
-
 
39235
      return 0;
-
 
39236
    }
-
 
39237
 
-
 
39238
    public int compareTo(markOrderDoaRequestAuthorized_args other) {
-
 
39239
      if (!getClass().equals(other.getClass())) {
-
 
39240
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39241
      }
-
 
39242
 
-
 
39243
      int lastComparison = 0;
-
 
39244
      markOrderDoaRequestAuthorized_args typedOther = (markOrderDoaRequestAuthorized_args)other;
-
 
39245
 
-
 
39246
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
39247
      if (lastComparison != 0) {
-
 
39248
        return lastComparison;
-
 
39249
      }
-
 
39250
      if (isSetOrderId()) {
-
 
39251
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
39252
        if (lastComparison != 0) {
-
 
39253
          return lastComparison;
-
 
39254
        }
-
 
39255
      }
-
 
39256
      lastComparison = Boolean.valueOf(isSetIsAuthorized()).compareTo(typedOther.isSetIsAuthorized());
-
 
39257
      if (lastComparison != 0) {
-
 
39258
        return lastComparison;
-
 
39259
      }
-
 
39260
      if (isSetIsAuthorized()) {
-
 
39261
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAuthorized, typedOther.isAuthorized);
-
 
39262
        if (lastComparison != 0) {
-
 
39263
          return lastComparison;
-
 
39264
        }
-
 
39265
      }
-
 
39266
      return 0;
-
 
39267
    }
-
 
39268
 
-
 
39269
    public _Fields fieldForId(int fieldId) {
-
 
39270
      return _Fields.findByThriftId(fieldId);
-
 
39271
    }
-
 
39272
 
-
 
39273
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39274
      org.apache.thrift.protocol.TField field;
-
 
39275
      iprot.readStructBegin();
-
 
39276
      while (true)
-
 
39277
      {
-
 
39278
        field = iprot.readFieldBegin();
-
 
39279
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39280
          break;
-
 
39281
        }
-
 
39282
        switch (field.id) {
-
 
39283
          case 1: // ORDER_ID
-
 
39284
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
39285
              this.orderId = iprot.readI64();
-
 
39286
              setOrderIdIsSet(true);
-
 
39287
            } else { 
-
 
39288
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39289
            }
-
 
39290
            break;
-
 
39291
          case 2: // IS_AUTHORIZED
-
 
39292
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
39293
              this.isAuthorized = iprot.readBool();
-
 
39294
              setIsAuthorizedIsSet(true);
-
 
39295
            } else { 
-
 
39296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39297
            }
-
 
39298
            break;
-
 
39299
          default:
-
 
39300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39301
        }
-
 
39302
        iprot.readFieldEnd();
-
 
39303
      }
-
 
39304
      iprot.readStructEnd();
-
 
39305
      validate();
-
 
39306
    }
-
 
39307
 
-
 
39308
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39309
      validate();
-
 
39310
 
-
 
39311
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39312
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
39313
      oprot.writeI64(this.orderId);
-
 
39314
      oprot.writeFieldEnd();
-
 
39315
      oprot.writeFieldBegin(IS_AUTHORIZED_FIELD_DESC);
-
 
39316
      oprot.writeBool(this.isAuthorized);
-
 
39317
      oprot.writeFieldEnd();
-
 
39318
      oprot.writeFieldStop();
-
 
39319
      oprot.writeStructEnd();
-
 
39320
    }
-
 
39321
 
-
 
39322
    @Override
-
 
39323
    public String toString() {
-
 
39324
      StringBuilder sb = new StringBuilder("markOrderDoaRequestAuthorized_args(");
-
 
39325
      boolean first = true;
-
 
39326
 
-
 
39327
      sb.append("orderId:");
-
 
39328
      sb.append(this.orderId);
-
 
39329
      first = false;
-
 
39330
      if (!first) sb.append(", ");
-
 
39331
      sb.append("isAuthorized:");
-
 
39332
      sb.append(this.isAuthorized);
-
 
39333
      first = false;
-
 
39334
      sb.append(")");
-
 
39335
      return sb.toString();
-
 
39336
    }
-
 
39337
 
-
 
39338
    public void validate() throws org.apache.thrift.TException {
-
 
39339
      // check for required fields
-
 
39340
    }
-
 
39341
 
-
 
39342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39343
      try {
-
 
39344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39345
      } catch (org.apache.thrift.TException te) {
-
 
39346
        throw new java.io.IOException(te);
-
 
39347
      }
-
 
39348
    }
-
 
39349
 
-
 
39350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39351
      try {
-
 
39352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39353
      } catch (org.apache.thrift.TException te) {
-
 
39354
        throw new java.io.IOException(te);
-
 
39355
      }
-
 
39356
    }
-
 
39357
 
-
 
39358
  }
-
 
39359
 
-
 
39360
  public static class markOrderDoaRequestAuthorized_result implements org.apache.thrift.TBase<markOrderDoaRequestAuthorized_result, markOrderDoaRequestAuthorized_result._Fields>, java.io.Serializable, Cloneable   {
-
 
39361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestAuthorized_result");
-
 
39362
 
-
 
39363
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
39364
    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);
-
 
39365
 
-
 
39366
    private boolean success; // required
-
 
39367
    private TransactionServiceException ex; // required
-
 
39368
 
-
 
39369
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39370
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39371
      SUCCESS((short)0, "success"),
-
 
39372
      EX((short)1, "ex");
-
 
39373
 
-
 
39374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39375
 
-
 
39376
      static {
-
 
39377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39378
          byName.put(field.getFieldName(), field);
-
 
39379
        }
-
 
39380
      }
-
 
39381
 
-
 
39382
      /**
-
 
39383
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39384
       */
-
 
39385
      public static _Fields findByThriftId(int fieldId) {
-
 
39386
        switch(fieldId) {
-
 
39387
          case 0: // SUCCESS
-
 
39388
            return SUCCESS;
-
 
39389
          case 1: // EX
-
 
39390
            return EX;
-
 
39391
          default:
-
 
39392
            return null;
-
 
39393
        }
-
 
39394
      }
-
 
39395
 
-
 
39396
      /**
-
 
39397
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39398
       * if it is not found.
-
 
39399
       */
-
 
39400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39401
        _Fields fields = findByThriftId(fieldId);
-
 
39402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39403
        return fields;
-
 
39404
      }
-
 
39405
 
-
 
39406
      /**
-
 
39407
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39408
       */
-
 
39409
      public static _Fields findByName(String name) {
-
 
39410
        return byName.get(name);
-
 
39411
      }
-
 
39412
 
-
 
39413
      private final short _thriftId;
-
 
39414
      private final String _fieldName;
-
 
39415
 
-
 
39416
      _Fields(short thriftId, String fieldName) {
-
 
39417
        _thriftId = thriftId;
-
 
39418
        _fieldName = fieldName;
-
 
39419
      }
-
 
39420
 
-
 
39421
      public short getThriftFieldId() {
-
 
39422
        return _thriftId;
-
 
39423
      }
-
 
39424
 
-
 
39425
      public String getFieldName() {
-
 
39426
        return _fieldName;
-
 
39427
      }
-
 
39428
    }
-
 
39429
 
-
 
39430
    // isset id assignments
-
 
39431
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
39432
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
39433
 
-
 
39434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39435
    static {
-
 
39436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39437
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
39439
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
39441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestAuthorized_result.class, metaDataMap);
-
 
39443
    }
-
 
39444
 
-
 
39445
    public markOrderDoaRequestAuthorized_result() {
-
 
39446
    }
-
 
39447
 
-
 
39448
    public markOrderDoaRequestAuthorized_result(
-
 
39449
      boolean success,
-
 
39450
      TransactionServiceException ex)
-
 
39451
    {
-
 
39452
      this();
-
 
39453
      this.success = success;
-
 
39454
      setSuccessIsSet(true);
-
 
39455
      this.ex = ex;
-
 
39456
    }
-
 
39457
 
-
 
39458
    /**
-
 
39459
     * Performs a deep copy on <i>other</i>.
-
 
39460
     */
-
 
39461
    public markOrderDoaRequestAuthorized_result(markOrderDoaRequestAuthorized_result other) {
-
 
39462
      __isset_bit_vector.clear();
-
 
39463
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
39464
      this.success = other.success;
-
 
39465
      if (other.isSetEx()) {
-
 
39466
        this.ex = new TransactionServiceException(other.ex);
-
 
39467
      }
-
 
39468
    }
-
 
39469
 
-
 
39470
    public markOrderDoaRequestAuthorized_result deepCopy() {
-
 
39471
      return new markOrderDoaRequestAuthorized_result(this);
-
 
39472
    }
-
 
39473
 
-
 
39474
    @Override
-
 
39475
    public void clear() {
-
 
39476
      setSuccessIsSet(false);
-
 
39477
      this.success = false;
-
 
39478
      this.ex = null;
-
 
39479
    }
-
 
39480
 
-
 
39481
    public boolean isSuccess() {
-
 
39482
      return this.success;
-
 
39483
    }
-
 
39484
 
-
 
39485
    public void setSuccess(boolean success) {
-
 
39486
      this.success = success;
-
 
39487
      setSuccessIsSet(true);
-
 
39488
    }
-
 
39489
 
-
 
39490
    public void unsetSuccess() {
-
 
39491
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
39492
    }
-
 
39493
 
-
 
39494
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
39495
    public boolean isSetSuccess() {
-
 
39496
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
39497
    }
-
 
39498
 
-
 
39499
    public void setSuccessIsSet(boolean value) {
-
 
39500
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
39501
    }
-
 
39502
 
-
 
39503
    public TransactionServiceException getEx() {
-
 
39504
      return this.ex;
-
 
39505
    }
-
 
39506
 
-
 
39507
    public void setEx(TransactionServiceException ex) {
-
 
39508
      this.ex = ex;
-
 
39509
    }
-
 
39510
 
-
 
39511
    public void unsetEx() {
-
 
39512
      this.ex = null;
-
 
39513
    }
-
 
39514
 
-
 
39515
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
39516
    public boolean isSetEx() {
-
 
39517
      return this.ex != null;
-
 
39518
    }
-
 
39519
 
-
 
39520
    public void setExIsSet(boolean value) {
-
 
39521
      if (!value) {
-
 
39522
        this.ex = null;
-
 
39523
      }
-
 
39524
    }
-
 
39525
 
-
 
39526
    public void setFieldValue(_Fields field, Object value) {
-
 
39527
      switch (field) {
-
 
39528
      case SUCCESS:
-
 
39529
        if (value == null) {
-
 
39530
          unsetSuccess();
-
 
39531
        } else {
-
 
39532
          setSuccess((Boolean)value);
-
 
39533
        }
-
 
39534
        break;
-
 
39535
 
-
 
39536
      case EX:
-
 
39537
        if (value == null) {
-
 
39538
          unsetEx();
-
 
39539
        } else {
-
 
39540
          setEx((TransactionServiceException)value);
-
 
39541
        }
-
 
39542
        break;
-
 
39543
 
-
 
39544
      }
-
 
39545
    }
-
 
39546
 
-
 
39547
    public Object getFieldValue(_Fields field) {
-
 
39548
      switch (field) {
-
 
39549
      case SUCCESS:
-
 
39550
        return Boolean.valueOf(isSuccess());
-
 
39551
 
-
 
39552
      case EX:
-
 
39553
        return getEx();
-
 
39554
 
-
 
39555
      }
-
 
39556
      throw new IllegalStateException();
-
 
39557
    }
-
 
39558
 
-
 
39559
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39560
    public boolean isSet(_Fields field) {
-
 
39561
      if (field == null) {
-
 
39562
        throw new IllegalArgumentException();
-
 
39563
      }
-
 
39564
 
-
 
39565
      switch (field) {
-
 
39566
      case SUCCESS:
-
 
39567
        return isSetSuccess();
-
 
39568
      case EX:
-
 
39569
        return isSetEx();
-
 
39570
      }
-
 
39571
      throw new IllegalStateException();
-
 
39572
    }
-
 
39573
 
-
 
39574
    @Override
-
 
39575
    public boolean equals(Object that) {
-
 
39576
      if (that == null)
-
 
39577
        return false;
-
 
39578
      if (that instanceof markOrderDoaRequestAuthorized_result)
-
 
39579
        return this.equals((markOrderDoaRequestAuthorized_result)that);
-
 
39580
      return false;
-
 
39581
    }
-
 
39582
 
-
 
39583
    public boolean equals(markOrderDoaRequestAuthorized_result that) {
-
 
39584
      if (that == null)
-
 
39585
        return false;
-
 
39586
 
-
 
39587
      boolean this_present_success = true;
-
 
39588
      boolean that_present_success = true;
-
 
39589
      if (this_present_success || that_present_success) {
-
 
39590
        if (!(this_present_success && that_present_success))
-
 
39591
          return false;
-
 
39592
        if (this.success != that.success)
-
 
39593
          return false;
-
 
39594
      }
-
 
39595
 
-
 
39596
      boolean this_present_ex = true && this.isSetEx();
-
 
39597
      boolean that_present_ex = true && that.isSetEx();
-
 
39598
      if (this_present_ex || that_present_ex) {
-
 
39599
        if (!(this_present_ex && that_present_ex))
-
 
39600
          return false;
-
 
39601
        if (!this.ex.equals(that.ex))
-
 
39602
          return false;
-
 
39603
      }
-
 
39604
 
-
 
39605
      return true;
-
 
39606
    }
-
 
39607
 
-
 
39608
    @Override
-
 
39609
    public int hashCode() {
-
 
39610
      return 0;
-
 
39611
    }
-
 
39612
 
-
 
39613
    public int compareTo(markOrderDoaRequestAuthorized_result other) {
-
 
39614
      if (!getClass().equals(other.getClass())) {
-
 
39615
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39616
      }
-
 
39617
 
-
 
39618
      int lastComparison = 0;
-
 
39619
      markOrderDoaRequestAuthorized_result typedOther = (markOrderDoaRequestAuthorized_result)other;
-
 
39620
 
-
 
39621
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
39622
      if (lastComparison != 0) {
-
 
39623
        return lastComparison;
-
 
39624
      }
-
 
39625
      if (isSetSuccess()) {
-
 
39626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
39627
        if (lastComparison != 0) {
-
 
39628
          return lastComparison;
-
 
39629
        }
-
 
39630
      }
-
 
39631
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
39632
      if (lastComparison != 0) {
-
 
39633
        return lastComparison;
-
 
39634
      }
-
 
39635
      if (isSetEx()) {
-
 
39636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
39637
        if (lastComparison != 0) {
-
 
39638
          return lastComparison;
-
 
39639
        }
-
 
39640
      }
-
 
39641
      return 0;
-
 
39642
    }
-
 
39643
 
-
 
39644
    public _Fields fieldForId(int fieldId) {
-
 
39645
      return _Fields.findByThriftId(fieldId);
-
 
39646
    }
-
 
39647
 
-
 
39648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39649
      org.apache.thrift.protocol.TField field;
-
 
39650
      iprot.readStructBegin();
-
 
39651
      while (true)
-
 
39652
      {
-
 
39653
        field = iprot.readFieldBegin();
-
 
39654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39655
          break;
-
 
39656
        }
-
 
39657
        switch (field.id) {
-
 
39658
          case 0: // SUCCESS
-
 
39659
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
39660
              this.success = iprot.readBool();
-
 
39661
              setSuccessIsSet(true);
-
 
39662
            } else { 
-
 
39663
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39664
            }
-
 
39665
            break;
-
 
39666
          case 1: // EX
-
 
39667
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
39668
              this.ex = new TransactionServiceException();
-
 
39669
              this.ex.read(iprot);
-
 
39670
            } else { 
-
 
39671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39672
            }
-
 
39673
            break;
-
 
39674
          default:
-
 
39675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39676
        }
-
 
39677
        iprot.readFieldEnd();
-
 
39678
      }
-
 
39679
      iprot.readStructEnd();
-
 
39680
      validate();
-
 
39681
    }
-
 
39682
 
-
 
39683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39684
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39685
 
-
 
39686
      if (this.isSetSuccess()) {
-
 
39687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
39688
        oprot.writeBool(this.success);
-
 
39689
        oprot.writeFieldEnd();
-
 
39690
      } else if (this.isSetEx()) {
-
 
39691
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
39692
        this.ex.write(oprot);
-
 
39693
        oprot.writeFieldEnd();
-
 
39694
      }
-
 
39695
      oprot.writeFieldStop();
-
 
39696
      oprot.writeStructEnd();
-
 
39697
    }
-
 
39698
 
-
 
39699
    @Override
-
 
39700
    public String toString() {
-
 
39701
      StringBuilder sb = new StringBuilder("markOrderDoaRequestAuthorized_result(");
-
 
39702
      boolean first = true;
-
 
39703
 
-
 
39704
      sb.append("success:");
-
 
39705
      sb.append(this.success);
-
 
39706
      first = false;
38094
      if (!first) sb.append(", ");
39707
      if (!first) sb.append(", ");
38095
      sb.append("ex:");
39708
      sb.append("ex:");
38096
      if (this.ex == null) {
39709
      if (this.ex == null) {
38097
        sb.append("null");
39710
        sb.append("null");
38098
      } else {
39711
      } else {