Class Booking
java.lang.Object
com.ntu.fdae.group1.bto.models.booking.Booking
Represents a booking made by an applicant for a flat in a BTO project.
A booking is created after a successful application has been processed and the applicant has selected a specific flat unit. It serves as a record of the booking transaction between the applicant and HDB.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the NRIC of the applicant who made this booking.Gets the application ID associated with this booking.Gets the type of flat that has been booked.Gets the date when the booking was made.Gets the unique identifier for this booking.Gets the ID of the project where the flat is booked.
-
Constructor Details
-
Booking
public Booking(String bookingId, String applicationId, String applicantNric, String projectId, FlatType bookedFlatType, LocalDate bookingDate) Constructs a new Booking with all required fields.- Parameters:
bookingId
- Unique identifier for the bookingapplicationId
- Reference to the associated application IDapplicantNric
- NRIC of the applicant who made the bookingprojectId
- ID of the project where the flat is bookedbookedFlatType
- Type of flat that has been bookedbookingDate
- Date when the booking was made
-
-
Method Details
-
getBookingId
Gets the unique identifier for this booking.- Returns:
- The booking ID
-
getApplicationId
Gets the application ID associated with this booking.- Returns:
- The application ID
-
getApplicantNric
Gets the NRIC of the applicant who made this booking.- Returns:
- The applicant's NRIC
-
getProjectId
Gets the ID of the project where the flat is booked.- Returns:
- The project ID
-
getBookedFlatType
Gets the type of flat that has been booked.- Returns:
- The booked flat type
-
getBookingDate
Gets the date when the booking was made.- Returns:
- The booking date
-