|
|
@@ -33,6 +33,7 @@ import kr.co.zumo.app.lifeplus.model.module.APIEventPolicyModule;
|
|
|
import kr.co.zumo.app.lifeplus.model.module.APIModuleListener;
|
|
|
import kr.co.zumo.app.lifeplus.network.api.LifeplusAPIRepository;
|
|
|
import kr.co.zumo.app.lifeplus.util.FileUtil;
|
|
|
+import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import okhttp3.MediaType;
|
|
|
import okhttp3.MultipartBody;
|
|
|
@@ -191,10 +192,12 @@ public class EventQuestionModel extends CoinModel implements IUriListProvider {
|
|
|
}
|
|
|
}
|
|
|
else if (EventQuestionBean.QUESTION_TYPE_ANSWER.equals(eventQuestionBean.getQuestionType())) {
|
|
|
- answerBean = new EventAnswerBean();
|
|
|
- answerBean.setQuestionItemNo(eventQuestionBean.getQuestionNo());
|
|
|
- answerBean.setAnswer(eventQuestionBean.getAnswer());
|
|
|
- list.add(answerBean);
|
|
|
+ if (StringUtil.isFull(eventQuestionBean.getAnswer())) {
|
|
|
+ answerBean = new EventAnswerBean();
|
|
|
+ answerBean.setQuestionItemNo(eventQuestionBean.getQuestionNo());
|
|
|
+ answerBean.setAnswer(eventQuestionBean.getAnswer());
|
|
|
+ list.add(answerBean);
|
|
|
+ }
|
|
|
}
|
|
|
else if (EventQuestionBean.QUESTION_TYPE_IMAGE.equals(eventQuestionBean.getQuestionType())) {
|
|
|
if (null != eventQuestionBean.getUploadedFiles()) {
|
|
|
@@ -562,6 +565,15 @@ public class EventQuestionModel extends CoinModel implements IUriListProvider {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 1개 이상 응답을 했는지 확인
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public boolean hasAtLeastAAnswer() {
|
|
|
+ return null != getAnswerList() && getAnswerList().size() > 0;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 당첨자 발표 여부
|
|
|
*
|