use of org.commcare.formplayer.beans.OpenRosaResponse in project formplayer by dimagi.
the class FormSubmissionController method parseSubmitResponseMessage.
private void parseSubmitResponseMessage(String responseBody, SubmitResponseBean submitResponseBean) {
if (responseBody != null) {
try {
Serializer serializer = new Persister();
OpenRosaResponse openRosaResponse = serializer.read(OpenRosaResponse.class, responseBody);
if (openRosaResponse != null && openRosaResponse.getMessage() != null) {
submitResponseBean.setSubmitResponseMessage(openRosaResponse.getMessage());
}
} catch (Exception e) {
log.error("Exception parsing submission response body", e);
}
}
}
Aggregations