Class ViewAppointmentsDetailsPage

java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewAppointmentsDetailsPage

public class ViewAppointmentsDetailsPage extends UserInterface
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.
  • Constructor Details

    • ViewAppointmentsDetailsPage

      public ViewAppointmentsDetailsPage(AdminAM adminAM, AdminAOM adminAOM)
      Constructs a ViewAppointmentsDetailsPage with the specified AdminAM and AdminAOM instances.
      Parameters:
      adminAM - the manager used to access and manage appointments
      adminAOM - 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

      public void displayAppointmentOutcome(String id)
      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