|
7 | 7 | @JsonIgnoreProperties(ignoreUnknown = true) |
8 | 8 | public class CustomerFirstReply extends TypedData { |
9 | 9 |
|
10 | | - @JsonProperty |
11 | | - private String type; |
12 | | - |
13 | | - @JsonProperty |
14 | | - private String url; |
15 | | - |
16 | | - @JsonProperty("created_at") |
17 | | - private long createdAt; |
18 | | - |
19 | | - public CustomerFirstReply() { |
20 | | - } |
21 | | - |
22 | | - public String getType() { |
23 | | - return type; |
24 | | - } |
25 | | - |
26 | | - public void setType(String type) { |
27 | | - this.type = type; |
28 | | - } |
29 | | - |
30 | | - public String getUrl() { |
31 | | - return url; |
32 | | - } |
33 | | - |
34 | | - public void setUrl(String url) { |
35 | | - this.url = url; |
36 | | - } |
37 | | - |
38 | | - public long getCreatedAt() { |
39 | | - return createdAt; |
40 | | - } |
41 | | - |
42 | | - public void setCreatedAt(long createdAt) { |
43 | | - this.createdAt = createdAt; |
44 | | - } |
45 | | - |
46 | | - @Override |
47 | | - public int hashCode() { |
48 | | - final int prime = 31; |
49 | | - int result = 1; |
50 | | - result = prime * result + (int) (createdAt ^ (createdAt >>> 32)); |
51 | | - result = prime * result + ((type == null) ? 0 : type.hashCode()); |
52 | | - result = prime * result + ((url == null) ? 0 : url.hashCode()); |
53 | | - return result; |
54 | | - } |
55 | | - |
56 | | - @Override |
57 | | - public boolean equals(Object obj) { |
58 | | - if (this == obj) |
59 | | - return true; |
60 | | - if (obj == null) |
61 | | - return false; |
62 | | - if (getClass() != obj.getClass()) |
63 | | - return false; |
64 | | - CustomerFirstReply other = (CustomerFirstReply) obj; |
65 | | - if (createdAt != other.createdAt) |
66 | | - return false; |
67 | | - if (type == null) { |
68 | | - if (other.type != null) |
69 | | - return false; |
70 | | - } else if (!type.equals(other.type)) |
71 | | - return false; |
72 | | - if (url == null) { |
73 | | - if (other.url != null) |
74 | | - return false; |
75 | | - } else if (!url.equals(other.url)) |
76 | | - return false; |
77 | | - return true; |
78 | | - } |
79 | | - |
80 | | - |
81 | | - @Override |
82 | | - public String toString() { |
83 | | - return "CustomerFirstReply{" + "type='" + type + '\'' + ", url='" + url + '\'' + ", created_at='" + createdAt + '\'' + "} " + super.toString(); |
84 | | - } |
| 10 | + @JsonProperty |
| 11 | + private String type; |
| 12 | + |
| 13 | + @JsonProperty |
| 14 | + private String url; |
| 15 | + |
| 16 | + @JsonProperty("created_at") |
| 17 | + private long createdAt; |
| 18 | + |
| 19 | + public CustomerFirstReply() { |
| 20 | + } |
| 21 | + |
| 22 | + public String getType() { |
| 23 | + return type; |
| 24 | + } |
| 25 | + |
| 26 | + public void setType(String type) { |
| 27 | + this.type = type; |
| 28 | + } |
| 29 | + |
| 30 | + public String getUrl() { |
| 31 | + return url; |
| 32 | + } |
| 33 | + |
| 34 | + public void setUrl(String url) { |
| 35 | + this.url = url; |
| 36 | + } |
| 37 | + |
| 38 | + public long getCreatedAt() { |
| 39 | + return createdAt; |
| 40 | + } |
| 41 | + |
| 42 | + public void setCreatedAt(long createdAt) { |
| 43 | + this.createdAt = createdAt; |
| 44 | + } |
| 45 | + |
| 46 | + @Override |
| 47 | + public int hashCode() { |
| 48 | + final int prime = 31; |
| 49 | + int result = 1; |
| 50 | + result = prime * result + (int) (createdAt ^ (createdAt >>> 32)); |
| 51 | + result = prime * result + ((type == null) ? 0 : type.hashCode()); |
| 52 | + result = prime * result + ((url == null) ? 0 : url.hashCode()); |
| 53 | + return result; |
| 54 | + } |
| 55 | + |
| 56 | + @Override |
| 57 | + public boolean equals(Object obj) { |
| 58 | + if (this == obj) |
| 59 | + return true; |
| 60 | + if (obj == null) |
| 61 | + return false; |
| 62 | + if (getClass() != obj.getClass()) |
| 63 | + return false; |
| 64 | + CustomerFirstReply other = (CustomerFirstReply) obj; |
| 65 | + if (createdAt != other.createdAt) |
| 66 | + return false; |
| 67 | + if (type == null) { |
| 68 | + if (other.type != null) |
| 69 | + return false; |
| 70 | + } else if (!type.equals(other.type)) |
| 71 | + return false; |
| 72 | + if (url == null) { |
| 73 | + if (other.url != null) |
| 74 | + return false; |
| 75 | + } else if (!url.equals(other.url)) |
| 76 | + return false; |
| 77 | + return true; |
| 78 | + } |
| 79 | + |
| 80 | + |
| 81 | + @Override |
| 82 | + public String toString() { |
| 83 | + return "CustomerFirstReply{" + "type='" + type + '\'' + ", url='" + url + '\'' + ", created_at='" + createdAt + '\'' + "} " + super.toString(); |
| 84 | + } |
85 | 85 | } |
0 commit comments