-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseResponseModel.java
More file actions
168 lines (144 loc) · 5.07 KB
/
BaseResponseModel.java
File metadata and controls
168 lines (144 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.fasterxml.jackson.annotation.JsonProperty
*/
package common;
import com.fasterxml.jackson.annotation.JsonProperty;
public class BaseResponseModel {
@JsonProperty(value="RequestId")
private String requestId;
@JsonProperty(value="Error")
private ErrorDto error;
@JsonProperty(value="result")
private String result;
public String getRequestId() {
return this.requestId;
}
public ErrorDto getError() {
return this.error;
}
public String getResult() {
return this.result;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public void setError(ErrorDto error) {
this.error = error;
}
public void setResult(String result) {
this.result = result;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof BaseResponseModel)) {
return false;
}
BaseResponseModel other = (BaseResponseModel)o;
if (!other.canEqual(this)) {
return false;
}
String this$requestId = this.getRequestId();
String other$requestId = other.getRequestId();
if (this$requestId == null ? other$requestId != null : !this$requestId.equals(other$requestId)) {
return false;
}
ErrorDto this$error = this.getError();
ErrorDto other$error = other.getError();
if (this$error == null ? other$error != null : !((Object)this$error).equals(other$error)) {
return false;
}
String this$result = this.getResult();
String other$result = other.getResult();
return !(this$result == null ? other$result != null : !this$result.equals(other$result));
}
protected boolean canEqual(Object other) {
return other instanceof BaseResponseModel;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $requestId = this.getRequestId();
result = result * 59 + ($requestId == null ? 43 : $requestId.hashCode());
ErrorDto $error = this.getError();
result = result * 59 + ($error == null ? 43 : ((Object)$error).hashCode());
String $result = this.getResult();
result = result * 59 + ($result == null ? 43 : $result.hashCode());
return result;
}
public String toString() {
return "BaseResponseModel(requestId=" + this.getRequestId() + ", error=" + this.getError() + ", result=" + this.getResult() + ")";
}
public static class ErrorDto {
@JsonProperty(value="Type")
private String type;
@JsonProperty(value="Code")
private String code;
@JsonProperty(value="Message")
private String message;
public String getType() {
return this.type;
}
public String getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
public void setType(String type) {
this.type = type;
}
public void setCode(String code) {
this.code = code;
}
public void setMessage(String message) {
this.message = message;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ErrorDto)) {
return false;
}
ErrorDto other = (ErrorDto)o;
if (!other.canEqual(this)) {
return false;
}
String this$type = this.getType();
String other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) {
return false;
}
String this$code = this.getCode();
String other$code = other.getCode();
if (this$code == null ? other$code != null : !this$code.equals(other$code)) {
return false;
}
String this$message = this.getMessage();
String other$message = other.getMessage();
return !(this$message == null ? other$message != null : !this$message.equals(other$message));
}
protected boolean canEqual(Object other) {
return other instanceof ErrorDto;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $type = this.getType();
result = result * 59 + ($type == null ? 43 : $type.hashCode());
String $code = this.getCode();
result = result * 59 + ($code == null ? 43 : $code.hashCode());
String $message = this.getMessage();
result = result * 59 + ($message == null ? 43 : $message.hashCode());
return result;
}
public String toString() {
return "BaseResponseModel.ErrorDto(type=" + this.getType() + ", code=" + this.getCode() + ", message=" + this.getMessage() + ")";
}
}
}