Class

StateHelper

StateHelper

Helper class for state

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

# static hasPendingCall() → {boolean}

Returns true if user has a pending call reservation
boolean
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Protected by reCAPTCHA – PrivacyTerms