View Javadoc
1   package org.oxerr.okcoin.rest.dto;
2   
3   import com.fasterxml.jackson.annotation.JsonProperty;
4   
5   public class CancelOrderResult extends ErrorResult {
6   
7   	private static final long serialVersionUID = 2015020601L;
8   
9   	private final Long orderId;
10  	private final String success;
11  	private final String error;
12  
13  	public CancelOrderResult(
14  		@JsonProperty("result") Boolean result,
15  		@JsonProperty("order_id") Long orderId,
16  		@JsonProperty("success") String success,
17  		@JsonProperty("error") String error) {
18  		super(result == null ? true : result.booleanValue());
19  		this.orderId = orderId;
20  		this.success = success;
21  		this.error = error;
22  	}
23  
24  	/**
25  	 * Returns the order ID (applicable to single order).
26  	 *
27  	 * @return the order ID.
28  	 */
29  	public Long getOrderId() {
30  		return orderId;
31  	}
32  
33  	/**
34  	 * Returns success order IDs.
35  	 *
36  	 * @return the order IDs which has been successfully cancelled.
37  	 */
38  	public String getSuccess() {
39  		return success;
40  	}
41  
42  	/**
43  	 * Returns failed order IDs.
44  	 *
45  	 * @return the order IDs which cancel failed.
46  	 */
47  	public String getError() {
48  		return error;
49  	}
50  
51  }