Class Feedback

java.lang.Object
bcu.cmp5332.bookingsystem.model.Feedback

public class Feedback extends Object
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

    Constructors
    Constructor
    Description
    Feedback(int bookingID, int customerID, String message)
    Constructs a new Feedback object with the specified booking ID, customer ID, and message.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieves the ID of the booking associated with the feedback.
    int
    Retrieves the ID of the customer who provided the feedback.
    int
    Retrieves the unique identifier of the feedback.
    Retrieves the feedback message provided by the customer.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Feedback

      public Feedback(int bookingID, int customerID, String message)
      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 feedback
      customerID - The ID of the customer providing the feedback
      message - 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

      public String getMessage()
      Retrieves the feedback message provided by the customer.
      Returns:
      The feedback message