WhoAgentManager class
Manages agent availability checking and state transitions
Constructors
- WhoAgentManager({required WhoAgentCallbacks callbacks, WhoAgentConfig? config})
Properties
- formattedTime → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- remainingSeconds → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → AgentState
-
no setter
Methods
-
cancel(
) → void - Cancel and reset
-
dispose(
) → void - Dispose resources
-
handleResponse(
{required BuildContext context, required int? activeAgentCount, required int? estimatedWaitingTimeMs, required int? agentId, required String? firstName, required String? lastName, required bool? agentAvailable}) → Future< void> - Handle API response
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChecking(
{required BuildContext context, required String token, required String language}) → Future< void> - Start agent availability check
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited