Class Suggestion

java.lang.Object
app.entity.suggestion.Suggestion
All Implemented Interfaces:
ITaggedItem

public class Suggestion extends Object implements 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 Details

  • Constructor Details

    • Suggestion

      public Suggestion(Student sender, CampDetails suggsetion, Camp originalCamp)
      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

      public Suggestion(String ID, Student sender, CampDetails suggestion, Camp originalCamp)
      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

      public String getID()
      Returns the unique identifier of the suggestion.
      Specified by:
      getID in interface ITaggedItem
      Returns:
      A string representing the ID of the suggestion.
    • getSender

      public Student getSender()
      Returns the student who made the suggestion.
      Returns:
      The student who made the suggestion.
    • getSuggestion

      public CampDetails getSuggestion()
      Returns the details of the suggestion.
      Returns:
      The details of the suggestion.
    • getOriginalCamp

      public Camp getOriginalCamp()
      Returns the camp that the suggestion is for.
      Returns:
      The camp that the suggestion is for.
    • getReviewedBy

      public Staff getReviewedBy()
      Returns the staff member who reviewed the suggestion.
      Returns:
      The staff member who reviewed the suggestion.
    • getStatus

      public SuggestionStatus getStatus()
      Returns the status of the suggestion.
      Returns:
      The status of the suggestion.
    • setID

      public void setID(String ID)
      Returns the tag of the suggestion.
      Specified by:
      setID in interface ITaggedItem
      Parameters:
      ID - ID of the tagged item.
    • setSender

      public void setSender(Student sender)
      Returns the tag of the suggestion.
    • setSuggestion

      public void setSuggestion(CampDetails suggestion)
      Returns the tag of the suggestion.
    • setOriginalCamp

      public void setOriginalCamp(Camp originalCamp)
      Returns the tag of the suggestion.
    • setReviewedBy

      public void setReviewedBy(Staff reviewedBy)
      Returns the tag of the suggestion.
    • setStatus

      public void setStatus(SuggestionStatus status)
      Returns the tag of the suggestion.
    • setReviewedBy

      public void setReviewedBy(Staff reviewedBy, SuggestionStatus status)
      Returns the tag of the suggestion.