ScenarioClient class abstract interface

What a scenario does with the client under test (Design note 7).

The headless implementation runs over SyncEngine (test/scenarios/); M4-18 implements it over the app. Notices use the forms removed:<kind>:<id>, resynced:<reason> and signed_out.

Properties

hashCode → int
The hash code for this object.
no setterinherited
live → bool
Whether the connection is live.
no setter
notices → List<String>
The notices of the client so far.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cursor() → Future<int?>
The stored cursor, or null.
focusRun(String runId, String threadId) → Future<void>
Focuses the live box of runId in threadId.
focusThread(String threadId) → Future<void>
Shows threadId on screen (gateway focus).
goOffline() → Future<void>
Loses the network: the gateway connection ends and nothing is sent until goOnline.
goOnline() → Future<void>
The network is back; the client reconnects.
holdsChannel(String channelId) → Future<bool>
Whether the local database holds the channel channelId.
messages(String threadId) → Future<List<ScenarioMessage>>
The messages of threadId in the local database, in thread_seq order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outbox() → Future<List<ScenarioOutboxEntry>>
The outbox entries that are not confirmed.
runDocument(String runId) → Map<String, Object?>?
The run document the live box shows now, or null.
runState(String runId) → Future<String?>
The state of runId in the local run summaries, or null.
send(String threadId, String text, {List<String> mentionIds}) → Future<String>
Puts a message with text for threadId into the outbox (mentioning mentionIds) and returns its client_msg_id.
start() → Future<void>
Signs in as Alex of the standard world and connects; completes when the connection is live.
stop() → Future<void>
Disconnects and releases everything.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited