Package app.entity.suggestion
Class Suggestion
java.lang.Object
app.entity.suggestion.Suggestion
- All Implemented Interfaces:
ITaggedItem
Represents a suggestion made by a student for a camp. This class includes the suggestion's details,
the original camp, and the staff member who reviewed it, along with its status.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Campprotected Staffprotected Studentprotected SuggestionStatusprotected CampDetails -
Constructor Summary
ConstructorsConstructorDescriptionSuggestion(Student sender, CampDetails suggsetion, Camp originalCamp) Creates a new suggestion with the given details.Suggestion(String ID, Student sender, CampDetails suggestion, Camp originalCamp) Creates a new suggestion with the given details.Suggestion(String ID, Student sender, CampDetails suggestion, Camp originalCamp, Staff reviewedBy, SuggestionStatus status) Creates a new suggestion with the given details. -
Method Summary
Modifier and TypeMethodDescriptiongetID()Returns the unique identifier of the suggestion.Returns the camp that the suggestion is for.Returns the staff member who reviewed the suggestion.Returns the student who made the suggestion.Returns the status of the suggestion.Returns the details of the suggestion.voidReturns the tag of the suggestion.voidsetOriginalCamp(Camp originalCamp) Returns the tag of the suggestion.voidsetReviewedBy(Staff reviewedBy) Returns the tag of the suggestion.voidsetReviewedBy(Staff reviewedBy, SuggestionStatus status) Returns the tag of the suggestion.voidReturns the tag of the suggestion.voidsetStatus(SuggestionStatus status) Returns the tag of the suggestion.voidsetSuggestion(CampDetails suggestion) Returns the tag of the suggestion.
-
Field Details
-
ID
-
sender
-
suggestion
-
originalCamp
-
reviewedBy
-
status
-
-
Constructor Details
-
Suggestion
Creates a new suggestion with the given details.- Parameters:
sender- The student who made the suggestion.suggsetion- The details of the suggestion.originalCamp- The camp that the suggestion is for.
-
Suggestion
Creates a new suggestion with the given details.- Parameters:
ID- The unique identifier of the suggestion.sender- The student who made the suggestion.suggestion- The details of the suggestion.originalCamp- The camp that the suggestion is for.
-
Suggestion
public Suggestion(String ID, Student sender, CampDetails suggestion, Camp originalCamp, Staff reviewedBy, SuggestionStatus status) Creates a new suggestion with the given details.- Parameters:
sender- The student who made the suggestion.suggestion- The details of the suggestion.originalCamp- The camp that the suggestion is for.reviewedBy- The staff member who reviewed the suggestion.status- The status of the suggestion.
-
-
Method Details
-
getID
Returns the unique identifier of the suggestion.- Specified by:
getIDin interfaceITaggedItem- Returns:
- A string representing the ID of the suggestion.
-
getSender
Returns the student who made the suggestion.- Returns:
- The student who made the suggestion.
-
getSuggestion
Returns the details of the suggestion.- Returns:
- The details of the suggestion.
-
getOriginalCamp
Returns the camp that the suggestion is for.- Returns:
- The camp that the suggestion is for.
-
getReviewedBy
Returns the staff member who reviewed the suggestion.- Returns:
- The staff member who reviewed the suggestion.
-
getStatus
Returns the status of the suggestion.- Returns:
- The status of the suggestion.
-
setID
Returns the tag of the suggestion.- Specified by:
setIDin interfaceITaggedItem- Parameters:
ID- ID of the tagged item.
-
setSender
Returns the tag of the suggestion. -
setSuggestion
Returns the tag of the suggestion. -
setOriginalCamp
Returns the tag of the suggestion. -
setReviewedBy
Returns the tag of the suggestion. -
setStatus
Returns the tag of the suggestion. -
setReviewedBy
Returns the tag of the suggestion.
-