Package UI.AppointmentPages
Class ViewAppointmentsDetailsPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewAppointmentsDetailsPage
The
ViewAppointmentsDetailsPage
class provides functionality for
viewing details of appointments. It extends UserInterface
and interacts with the AdminAM
and AdminAOM
managers
to retrieve appointment and outcome details.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the outcome of a specific appointment based on its ID.void
Displays all scheduled appointments and their details.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewAppointmentsDetailsPage
- Parameters:
adminAM
- the manager used to access and manage appointmentsadminAOM
- the manager used to access and manage appointment outcomes
-
-
Method Details
-
displaySlots
public void displaySlots()Displays all scheduled appointments and their details. It retrieves appointment slots, prints their details, and allows the user to view specific appointment outcomes based on appointment ID. -
displayAppointmentOutcome
Displays the outcome of a specific appointment based on its ID.- Parameters:
id
- the unique identifier of the appointment whose outcome is to be displayed
-