package org.odk.surveyConverser;

import org.odk.JavaRosaException;
import org.smap.SurveyConversation;
import org.smap.surveyModel.SurveyModel;
import org.smap.surveyModel.SurveyModel.SurveyAction;

public class SurveyConverser implements SurveyConversation{

	private SurveyModel surveyModel;
	
	public void answerCurrentQuestion(String answerText) {
		surveyModel.answer(answerText);
	}

	public String getCurrentQuestion() {
		return surveyModel.getPrompt();
	}

	public String[] getAllQuestions() {
		return surveyModel.getFullQuestionPromptList();
	}

	public Boolean isComplete() {
		return surveyModel.isEndOfSurvey();
	}

}

@@ -31,42 +31,8 @@
 r;%0A%0A
-import org.odk.JavaRosaException;%0A
 impo
@@ -107,62 +107,8 @@
 del;
-%0Aimport org.smap.surveyModel.SurveyModel.SurveyAction;
 %0A%0Apu

remove unused imports