- java.lang.Object
-
- services.EnquiryCommitteeService
-
- All Implemented Interfaces:
IEnquiryCommitteeService
public class EnquiryCommitteeService extends java.lang.Object implements IEnquiryCommitteeService
EnquiryCommitteeService
implementsIEnquiryCommitteeService
interface and provide enquiry related functions for a committee user for selected camp
-
-
Constructor Summary
Constructors Constructor Description EnquiryCommitteeService()
Construct an instance ofEnquiryCommitteeService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
replyToEnquiry(Enquiry enquiry, java.lang.String reply)
Replies to a specific enquiry with the given reply text.java.util.ArrayList<Enquiry>
viewEnquiries(Camp camp)
Retrieves a list of enquiries associated with the provided camp.
-
-
-
Constructor Detail
-
EnquiryCommitteeService
public EnquiryCommitteeService()
Construct an instance ofEnquiryCommitteeService
-
-
Method Detail
-
viewEnquiries
public java.util.ArrayList<Enquiry> viewEnquiries(Camp camp)
Description copied from interface:IEnquiryCommitteeService
Retrieves a list of enquiries associated with the provided camp.- Specified by:
viewEnquiries
in interfaceIEnquiryCommitteeService
- Parameters:
camp
- The camp for which enquiries are to be viewed.- Returns:
- An
ArrayList
ofEnquiry
objects representing the enquiries for the specified camp.
-
replyToEnquiry
public boolean replyToEnquiry(Enquiry enquiry, java.lang.String reply)
Description copied from interface:IEnquiryCommitteeService
Replies to a specific enquiry with the given reply text.- Specified by:
replyToEnquiry
in interfaceIEnquiryCommitteeService
- Parameters:
enquiry
- TheEnquiry
object representing the enquiry to which the reply is made.reply
- The text of the reply to the enquiry.- Returns:
true
if the reply is successfully added,false
otherwise.
-
-