Methods
# static getChatChannelStateForTask(task) → {ChatChannelState.ChannelState}
Gets current chat channel state for a task
Parameters:
Name | Type | Description |
---|---|---|
task |
ITask | task |
chat channel state
ChatChannelState.ChannelState
# static getCurrentPhoneCallState() → {PhoneCallState|null}
Get current call state if one exists
if it does not exist
PhoneCallState
|
null
# static getReservation(reservationSid) → {Reservation}
Gets TaskRouter Reservation object
Parameters:
Name | Type | Description |
---|---|---|
reservationSid |
string | reservation sid to retrieve |
reservation instance
Reservation