Skip to content

Commit ceba6b5

Browse files
Brian CribbsBrian Cribbs
authored andcommitted
added JSONIgnore
1 parent 8bd0ea1 commit ceba6b5

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed
Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
package com.cribbstechnologies.clients.mandrill.model;
22

3+
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
4+
5+
@JsonIgnoreProperties(ignoreUnknown = true)
36
public class MandrillResponse {
47

5-
private String responseString;
6-
private boolean success;
7-
8-
public String getJsonResponse() {
9-
return responseString;
10-
}
11-
12-
public void setResponseString(String jsonResponse) {
13-
this.responseString = jsonResponse;
14-
}
15-
16-
public boolean isSuccess() {
17-
return success;
18-
}
19-
20-
public void setSuccess(boolean success) {
21-
this.success = success;
22-
}
23-
8+
private String responseString;
9+
private boolean success;
10+
11+
public String getJsonResponse() {
12+
return responseString;
13+
}
14+
15+
public void setResponseString(String jsonResponse) {
16+
this.responseString = jsonResponse;
17+
}
18+
19+
public boolean isSuccess() {
20+
return success;
21+
}
22+
23+
public void setSuccess(boolean success) {
24+
this.success = success;
25+
}
26+
2427
}

0 commit comments

Comments
 (0)