- java.lang.Object
-
- services.EnquiryStaffService
-
- All Implemented Interfaces:
IEnquiryStaffService
public class EnquiryStaffService extends java.lang.Object implements IEnquiryStaffService
EnquiryStaffService
implemetsIEnquiryStaffService
interface and provide enquiry related functions for a staff user for selected camp
-
-
Constructor Summary
Constructors Constructor Description EnquiryStaffService()
Construct an instance ofEnquiryStaffService
-
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 provided reply message.java.util.ArrayList<Enquiry>
viewEnquiries(Camp camp)
Retrieves a list of enquiries associated with a specific camp.
-
-
-
Constructor Detail
-
EnquiryStaffService
public EnquiryStaffService()
Construct an instance ofEnquiryStaffService
-
-
Method Detail
-
viewEnquiries
public java.util.ArrayList<Enquiry> viewEnquiries(Camp camp)
Description copied from interface:IEnquiryStaffService
Retrieves a list of enquiries associated with a specific camp.- Specified by:
viewEnquiries
in interfaceIEnquiryStaffService
- Parameters:
camp
- The camp for which enquiries are to be retrieved.- 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:IEnquiryStaffService
Replies to a specific enquiry with the provided reply message.- Specified by:
replyToEnquiry
in interfaceIEnquiryStaffService
- Parameters:
enquiry
- TheEnquiry
object to which the reply is being made.reply
- The reply message to be associated with the enquiry.- Returns:
true
if the reply is successful,false
otherwise.
-
-