package services;

import dao.QuestionsDao;
import services.models.UserQuestion;

/**
 * Created by sabinapokhrel on 3/29/17.
 */
public class QuestionsDBServiceProvider {

  /** This methos gets all the questions from the database
   *
   * @return
   */
  public String getAllStoredQuestions() {
    QuestionsDao questionsDao = new QuestionsDao();
    String storedQuestions = questionsDao.getQuestions();
    return storedQuestions;
  }

  /** This method inserts new question into the database
   *
   * @param question
   */
  public void addQuestion(String question) {
    UserQuestion userQuestion = new UserQuestion(question);
    QuestionsDao questionsDao = new QuestionsDao();
    questionsDao.addQuestion(userQuestion);
  }
}
@@ -399,16 +399,107 @@
 stions()
+.replace(%22%5B%22, %22Here are the list of questions:%5Cn%3E%3E%3E%22).replaceAll(%22,%22, %22%5Cn%22).replace(%22%5D%22,%22%22)
 ;%0A    re

Reformat bot reply for displaying list of questions.