BootstrapResponse class
What POST /bootstrap returns.
- Annotations
Constructors
-
BootstrapResponse({required String visitorToken, required VisitorDto visitor, required SiteConfig config, required Availability availability, required List<
TimelineItem> timeline, required String wsUrl, ConversationSummary? conversation, int protocolVersion = 1, bool? timelineHasMore, String? appId, String? appPlatform}) -
Creates a bootstrap response.
const
- BootstrapResponse.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- appId → String?
-
The site app id the key resolved to.
final
- appPlatform → String?
-
The site app platform.
final
- availability → Availability
-
Team availability.
final
- config → SiteConfig
-
Site settings.
final
- conversation → ConversationSummary?
-
The active conversation, if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- protocolVersion → int
-
Protocol version the gateway speaks.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeline
→ List<
TimelineItem> -
The last messages of the active conversation, oldest first.
final
- timelineHasMore → bool?
-
Older items exist before timeline; null from gateways that do not say.
final
- visitor → VisitorDto
-
The visitor.
final
- visitorToken → String
-
The visitor token to keep and send on every call.
final
- wsUrl → String
-
Socket URL (query already carries site, app and install).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited