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
26
27
28
29 public Long getOrderId() {
30 return orderId;
31 }
32
33
34
35
36
37
38 public String getSuccess() {
39 return success;
40 }
41
42
43
44
45
46
47 public String getError() {
48 return error;
49 }
50
51 }