-
- All Known Implementing Classes:
EnquiryStudentService
public interface IEnquiryStudentService
TheIEnquiryStudentService
interface provides methods for interacting with student enquiries related to camps. Implementing classes should define these methods to handle various aspects of enquiries, such as viewing, submitting, editing, and deleting.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteEnquiry(Enquiry enquiry)
Deletes a specific enquiry.boolean
editEnquiry(Enquiry enquiry, java.lang.String newQuestion)
Edits the content of an existing enquiry.boolean
submitEnquiry(Camp camp)
Submits a new enquiry for a specific camp.java.util.ArrayList<Enquiry>
viewAllEnquiries()
Retrieves a list of all enquiries made by the student.java.util.ArrayList<Enquiry>
viewProcessingEnquiries()
Retrieves a list of processing enquiries made by the student.
-
-
-
Method Detail
-
viewAllEnquiries
java.util.ArrayList<Enquiry> viewAllEnquiries()
Retrieves a list of all enquiries made by the student.- Returns:
- An
ArrayList
ofEnquiry
containing all enquiries made by the student.
-
viewProcessingEnquiries
java.util.ArrayList<Enquiry> viewProcessingEnquiries()
Retrieves a list of processing enquiries made by the student.- Returns:
- An
ArrayList
ofEnquiry
containing processing enquiries made by the student.
-
submitEnquiry
boolean submitEnquiry(Camp camp)
Submits a new enquiry for a specific camp.- Parameters:
camp
- The camp for which the enquiry is submitted.- Returns:
true
if the enquiry is successfully submitted,false
otherwise.
-
editEnquiry
boolean editEnquiry(Enquiry enquiry, java.lang.String newQuestion)
Edits the content of an existing enquiry.- Parameters:
enquiry
- The enquiry to be edited.newQuestion
- The edited enquiry.- Returns:
true
if the enquiry is successfully edited,false
otherwise.
-
deleteEnquiry
boolean deleteEnquiry(Enquiry enquiry)
Deletes a specific enquiry.- Parameters:
enquiry
- The enquiry to be deleted.- Returns:
true
if the enquiry is successfully deleted,false
otherwise.
-
-