use of org.eyeseetea.malariacare.domain.usecase.CompletionSurveyUseCase in project pictureapp by EyeSeeTea.
the class DashboardActivityStrategy method sendSurvey.
@Override
public void sendSurvey() {
Session.getMalariaSurvey().updateSurveyStatus();
Survey stockSurvey = Session.getStockSurvey();
if (stockSurvey != null) {
Session.getStockSurvey().complete();
Date eventDate = new Date();
saveEventDate(Session.getMalariaSurvey(), eventDate);
saveEventDate(Session.getStockSurvey(), eventDate);
new CompletionSurveyUseCase().execute(Session.getMalariaSurvey().getId_survey());
}
}
Aggregations