I'm using retrofit and I have a contact class like this :
public class MyContact {
private String response;
private String message;
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
public String getResponse() {
return response;
}
public void setResponse(String response) {
this.response = response;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
and there is a part of my json :
{"Response":"Success","Message":"YES","Data":{"Info":{"id":"1" , "name":"leon"}}}
I'm using retrofit to get this JSON
The question is how to manage it by pojo in android.I I don't want to get 'Data' part just 'response' and 'message'
My retrofit part of the app is completely nice and running