Package bcu.cmp5332.bookingsystem.model
Class Feedback
java.lang.Object
bcu.cmp5332.bookingsystem.model.Feedback
Represents a feedback provided by a customer regarding a booking in the flight booking system.
Each feedback is uniquely identified by an ID, and is linked to a specific booking and customer.
The feedback message can contain any comments or suggestions from the customer regarding their experience.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the ID of the booking associated with the feedback.int
Retrieves the ID of the customer who provided the feedback.int
getId()
Retrieves the unique identifier of the feedback.Retrieves the feedback message provided by the customer.
-
Constructor Details
-
Feedback
Constructs a new Feedback object with the specified booking ID, customer ID, and message. The feedback ID is automatically assigned and incremented with each new feedback.- Parameters:
bookingID
- The ID of the booking related to the feedbackcustomerID
- The ID of the customer providing the feedbackmessage
- The feedback message provided by the customer
-
-
Method Details
-
getId
public int getId()Retrieves the unique identifier of the feedback.- Returns:
- The ID of the feedback
-
getBookingID
public int getBookingID()Retrieves the ID of the booking associated with the feedback.- Returns:
- The booking ID
-
getCustomerID
public int getCustomerID()Retrieves the ID of the customer who provided the feedback.- Returns:
- The customer ID
-
getMessage
Retrieves the feedback message provided by the customer.- Returns:
- The feedback message
-