Package UI.AppointmentPages
Class ViewPersonalSchedulePage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewPersonalSchedulePage
The
ViewPersonalSchedulePage
class provides functionality for
viewing a doctor's personal schedule. It extends UserInterface
and displays available appointment slots for a specific doctor.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayDocTimeSlot
(Account doctor, List<DatabaseItems> personalSchedule) Displays the doctor's personal schedule, including time slots and their statuses.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewPersonalSchedulePage
public ViewPersonalSchedulePage()
-
-
Method Details
-
displayDocTimeSlot
Displays the doctor's personal schedule, including time slots and their statuses. If no schedule is set, an appropriate message is displayed.- Parameters:
doctor
- theAccount
representing the doctorpersonalSchedule
- a list ofDatabaseItems
representing the doctor's scheduled appointments
-