Availability class
Whether the team can answer right now.
- Annotations
Constructors
- Availability({required bool online, bool withinHours = true, DateTime? nextOpenAt, int agentsOnline = 0})
-
Creates an availability snapshot.
const
- Availability.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- agentsOnline → int
-
Number of agents online.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextOpenAt → DateTime?
-
When office hours next start.
final
- online → bool
-
Someone (or the bot) can reply now.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- withinHours → bool
-
Inside office hours.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - The wire shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- offline → const Availability
- Nobody is online yet (before bootstrap).