WorkTypeBuilder Class
Contains methods to build an instance of the lxscheduler.WorkType class.
A Builder object is obtained by invoking one of the WorkTypeBuilder methods defined by the WorkType class.
The following are methods for WorkTypeBuilder.
-
Returns an instance of the
lxscheduler.WorkTypeobject. -
setBlockTimeAfterAppointmentInMinutes(blockTimeAfterAppointmentInMinutes)
Sets the time period, in minutes.
-
setBlockTimeBeforeAppointmentInMinutes(blockTimeBeforeAppointmentInMinutes)
Sets the time period, in minutes.
-
setDurationInMinutes(durationInMinutes)
Sets the event length.
-
Sets the ID of the work type to the specified ID.
-
setOperatingHoursId(operatingHoursId)
Sets the overlap of operating hours.
-
setSkillRequirements(skillRequirements)
Sets the skills that are required to complete a particular task for a work type.
-
setTimeFrameEndInMinutes(timeFrameEndInMinutes)
Sets the end of the timeframe.
-
setTimeFrameStartInMinutes(timeFrameStartInMinutes)
Sets the beginning of the timeframe.
Returns an instance of the lxscheduler.WorkType object.
public lxscheduler.WorkType build()
Type: lxscheduler.WorkType
Sets the time period, in minutes.
public lxscheduler.WorkTypeBuilder setBlockTimeAfterAppointmentInMinutes(Integer blockTimeAfterAppointmentInMinutes)
-
blockTimeAfterAppointmentInMinutes:
Type: Integer
The time period after the appointment is considered unavailable.
Type: lxscheduler.WorkTypeBuilder
Sets the time period, in minutes.
public lxscheduler.WorkTypeBuilder setBlockTimeBeforeAppointmentInMinutes(Integer blockTimeBeforeAppointmentInMinutes)
-
blockTimeBeforeAppointmentInMinutes:
Type: Integer
The time period before the appointment is considered as unavailable.
Type: lxscheduler.WorkTypeBuilder
Sets the event length.
public lxscheduler.WorkTypeBuilder setDurationInMinutes(Integer durationInMinutes)
-
durationInMinutes:
Type: Integer
Contains the event length, in minutes. Required if id is not given.
Type: lxscheduler.WorkTypeBuilder
Sets the ID of the work type to the specified ID.
public lxscheduler.WorkTypeBuilder setId(String id)
-
id:
Type: String
The ID of the work type. Required if you’re using shifts or if durationInMinutes is not given.
Type: lxscheduler.WorkTypeBuilder
Sets the overlap of operating hours.
public lxscheduler.WorkTypeBuilder setOperatingHoursId(String operatingHoursId)
-
operatingHoursId:
Type: String
The overlap of all operating hours from the account, work type, service territory, and service territory member are considered while determining time slots.
Type: lxscheduler.WorkTypeBuilder
Sets the skills that are required to complete a particular task for a work type.
public lxscheduler.WorkTypeBuilder setSkillRequirements(List<lxscheduler.SkillRequirement> skillRequirements)
-
skillRequirements:
Type: List<lxscheduler.SkillRequirement> This method takes input as an instance of the
lxscheduler.SkillRequirementclass. Build the instance of the input class using thelxscheduler.SkillRequirementBuilderclass.
Type: lxscheduler.WorkTypeBuilder
Sets the end of the timeframe.
public lxscheduler.WorkTypeBuilder setTimeFrameEndInMinutes(Integer timeFrameEndInMinutes)
-
timeFrameEndInMinutes:
Type: Integer
Type: lxscheduler.WorkTypeBuilder
Sets the beginning of the timeframe.
public lxscheduler.WorkTypeBuilder setTimeFrameStartInMinutes(Integer timeFrameStartInMinutes)
-
timeFrameStartInMinutes:
Type: Integer