I followed this to POST Data Using Retrofit2
I Used JSON POJO to Parse my POST and GET files
So Here If Data inside the Records Is there I will get This Kind
class Response {
private String status;
private T response;
private boolean isSuccess() {
return status.equals("200");
}
}
class ListData {
private String cnt_id;
private String phn_no;
private String dat_cnt;
}
class Error {
private String msg;
}
public class MainResponse {
@SerializedName("Error")
private Error error;
@SerializedName("AuthenticateUserResponse")
private List listData;
}
@POST("listData")
Call> listData();