Class GetAvailableTimeSlotsCommand
- Namespace
- Core.CliniCore.Commands.Scheduling
- Assembly
- Core.CliniCore.dll
Command that retrieves available appointment time slots for a physician on a specific date.
public class GetAvailableTimeSlotsCommand : AbstractCommand, ICommand
- Inheritance
-
GetAvailableTimeSlotsCommand
- Implements
- Inherited Members
Constructors
GetAvailableTimeSlotsCommand(SchedulerService, ProfileService, IBookingStrategy?)
Initializes a new instance of the GetAvailableTimeSlotsCommand class.
public GetAvailableTimeSlotsCommand(SchedulerService scheduleManager, ProfileService profileService, IBookingStrategy? bookingStrategy = null)
Parameters
scheduleManagerSchedulerServiceThe scheduler service responsible for managing appointments.
profileServiceProfileServiceThe profile service used to resolve physician details.
bookingStrategyIBookingStrategyOptional booking strategy used to select optimal time slots.
Exceptions
- ArgumentNullException
Thrown when
scheduleManagerorprofileServiceisnull.
Fields
Key
The unique key used to identify this command.
public const string Key = "getavailabletimeslots"
Field Value
Properties
CommandKey
Unique key identifier for this command type Generated from the class name, converted to lowercase without "Command" suffix E.g., "LoginCommand" becomes "login", "CreatePatientCommand" becomes "createpatient"
public override string CommandKey { get; }
Property Value
Description
Description of what this command does
public override string Description { get; }
Property Value
Methods
ExecuteCore(CommandParameters, SessionContext?)
Executes the core command logic - must be implemented by derived classes
protected override CommandResult ExecuteCore(CommandParameters parameters, SessionContext? session)
Parameters
parametersCommandParameterssessionSessionContext
Returns
GetRequiredPermission()
Gets the required permission to execute this command
public override Permission? GetRequiredPermission()
Returns
ValidateParameters(CommandParameters)
Validates command parameters - override in derived classes
protected override CommandValidationResult ValidateParameters(CommandParameters parameters)
Parameters
parametersCommandParametersThe parameters to validate (never null, but may be empty)
Returns
- CommandValidationResult
Validation result indicating success or failure with error messages