Package app.entity.enquiry
Class Enquiry
java.lang.Object
app.entity.enquiry.Enquiry
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Enquiry with the provided ID, sender, question, and associated camp.Constructs a new Enquiry with the provided details including an answer and the responder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the answer to the enquiry.Returns the user who answered the enquiry.getCamp()Returns the camp related to the enquiry.getID()Returns the ID of the enquiry.Returns the question of the enquiry.Returns the sender of the enquiry.voidReturns whether the enquiry has been answered.voidsetAnsweredBy(Student answeredBy) Returns whether the enquiry has been answered.voidReturns whether the enquiry has been answered.voidReturns whether the enquiry has been answered.voidsetQuestion(String question) Returns whether the enquiry has been answered.voidReturns whether the enquiry has been answered.
-
Field Details
-
ID
-
sender
-
question
-
answer
-
camp
-
answeredBy
-
-
Constructor Details
-
Enquiry
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
Returns the ID of the enquiry.- Specified by:
getIDin interfaceITaggedItem- Returns:
- The unique identifier of the enquiry.
-
getSender
Returns the sender of the enquiry.- Returns:
- The student who sent the enquiry.
-
getQuestion
Returns the question of the enquiry.- Returns:
- The question asked in the enquiry.
-
getAnswer
Returns the answer to the enquiry.- Returns:
- The answer to the enquiry.
-
getCamp
Returns the camp related to the enquiry.- Returns:
- The camp related to the enquiry.
-
getAnsweredBy
Returns the user who answered the enquiry.- Returns:
- The user who answered the enquiry.
-
setAnswer
Returns whether the enquiry has been answered.- Parameters:
answer- The answer to the enquiry.answeredBy- The user who answered the enquiry.
-
setID
Returns whether the enquiry has been answered.- Specified by:
setIDin interfaceITaggedItem- Parameters:
ID- The unique identifier of the enquiry.
-
setSender
Returns whether the enquiry has been answered.- Parameters:
sender- The student who sent the enquiry.
-
setQuestion
Returns whether the enquiry has been answered.- Parameters:
question- The question asked in the enquiry.
-
setCamp
Returns whether the enquiry has been answered.- Parameters:
camp- The camp related to the enquiry.
-
setAnsweredBy
Returns whether the enquiry has been answered.- Parameters:
answeredBy- The user who answered the enquiry.
-