VisitQuestionsController class

Questions to ObservANT's /ask and /summary; it holds one conversation for the panel.

Constructors

VisitQuestionsController({required VisitQuestionPost post, required String language, DateTime now() = DateTime.now})

Properties

busy → bool
no setter
facts ↔ String?
What the model was told for the last answer.
getter/setter pair
failure ↔ VisitQuestionFailure?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
language → String
The app's language, which ObservANT asks the model to answer in; it takes de and en.
final
messages → List
no setter
now → DateTime Function()
The clock whose offset says which local day "today" is; a test sets its own.
final
post → VisitQuestionPost
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

ask(String question) → Future<void>
Asks one question; ignored while another runs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → void
Leaves the running answer: the closed connection cancels it on the camera.
summarise(String title, String noVisits) → Future<void>
Asks for today's summary under title; a day without visits gets no model's words.
toString() → String
A string representation of this object.
inherited

Operators

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