Class UnansweredQuestion

java.lang.Object
com.ubs.backend.classes.database.questions.UnansweredQuestion

@Entity public class UnansweredQuestion extends Object
Dataclass to store all Questions the Bot does not have an Answer for
Since:
17.07.2021
Author:
Tim Irmler
  • Field Details

    • unansweredQuestionID

      private long unansweredQuestionID
      The ID of this UnansweredQuestion in the Database
      Since:
      17.07.2021
    • question

      private String question
      The Question which couldn't be answered
      Since:
      17.07.2021
  • Constructor Details

    • UnansweredQuestion

      public UnansweredQuestion()
      no-args constructor
      Since:
      17.07.2021
    • UnansweredQuestion

      public UnansweredQuestion(String question)
      Default Constructor
      Parameters:
      question - the Question which couldn't be answered
      Since:
      17.07.2021
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUnansweredQuestionID

      public long getUnansweredQuestionID()
      Returns:
      Since:
      17.07.2021
    • setUnansweredQuestionID

      public void setUnansweredQuestionID(long unansweredQuestionID)
      Parameters:
      unansweredQuestionID - the new ID for this UnansweredQuestion
      Since:
      17.07.2021
    • getQuestion

      public String getQuestion()
      Returns:
      the Question which couldn't be answered
      Since:
      17.07.2021
    • setQuestion

      public void setQuestion(String question)
      Parameters:
      question - the new Question for this UnansweredQuestion
      Since:
      17.07.2021