Class Enquiry

java.lang.Object
app.entity.enquiry.Enquiry
All Implemented Interfaces:
ITaggedItem

public class Enquiry extends Object implements ITaggedItem
Represents an enquiry made by a student regarding a specific camp. This class includes details like the ID of the enquiry, the student who made the enquiry, the question, and the answer.
  • Field Details

    • ID

      protected String ID
    • sender

      protected Student sender
    • question

      protected String question
    • answer

      protected String answer
    • camp

      protected Camp camp
    • answeredBy

      protected User answeredBy
  • Constructor Details

    • Enquiry

      public Enquiry(String ID, Student sender, String question, Camp camp)
      Constructs a new Enquiry with the provided ID, sender, question, and associated camp. Initially, the enquiry is not answered.
      Parameters:
      ID - Unique identifier for the enquiry.
      sender - The student who sent the enquiry.
      question - The question asked in the enquiry.
      camp - The camp related to the enquiry.
    • Enquiry

      public Enquiry(String ID, Student sender, String question, String answer, Camp camp, User answeredBy)
      Constructs a new Enquiry with the provided details including an answer and the responder.
      Parameters:
      ID - Unique identifier for the enquiry.
      sender - The student who sent the enquiry.
      question - The question asked in the enquiry.
      answer - The answer to the enquiry.
      camp - The camp related to the enquiry.
      answeredBy - The user who answered the enquiry.
  • Method Details

    • getID

      public String getID()
      Returns the ID of the enquiry.
      Specified by:
      getID in interface ITaggedItem
      Returns:
      The unique identifier of the enquiry.
    • getSender

      public Student getSender()
      Returns the sender of the enquiry.
      Returns:
      The student who sent the enquiry.
    • getQuestion

      public String getQuestion()
      Returns the question of the enquiry.
      Returns:
      The question asked in the enquiry.
    • getAnswer

      public String getAnswer()
      Returns the answer to the enquiry.
      Returns:
      The answer to the enquiry.
    • getCamp

      public Camp getCamp()
      Returns the camp related to the enquiry.
      Returns:
      The camp related to the enquiry.
    • getAnsweredBy

      public User getAnsweredBy()
      Returns the user who answered the enquiry.
      Returns:
      The user who answered the enquiry.
    • setAnswer

      public void setAnswer(String answer, User answeredBy)
      Returns whether the enquiry has been answered.
      Parameters:
      answer - The answer to the enquiry.
      answeredBy - The user who answered the enquiry.
    • setID

      public void setID(String ID)
      Returns whether the enquiry has been answered.
      Specified by:
      setID in interface ITaggedItem
      Parameters:
      ID - The unique identifier of the enquiry.
    • setSender

      public void setSender(Student sender)
      Returns whether the enquiry has been answered.
      Parameters:
      sender - The student who sent the enquiry.
    • setQuestion

      public void setQuestion(String question)
      Returns whether the enquiry has been answered.
      Parameters:
      question - The question asked in the enquiry.
    • setCamp

      public void setCamp(Camp camp)
      Returns whether the enquiry has been answered.
      Parameters:
      camp - The camp related to the enquiry.
    • setAnsweredBy

      public void setAnsweredBy(Student answeredBy)
      Returns whether the enquiry has been answered.
      Parameters:
      answeredBy - The user who answered the enquiry.