DOORepositoryImpl class
- Inheritance
-
- Object
- DOORepository
- DOORepositoryImpl
Constructors
- DOORepositoryImpl({required DOOClientService clientService, required LocalStorage localStorage, required DOOCallbacks streamCallbacks})
Properties
- callbacks ↔ DOOCallbacks
-
getter/setter pairinherited
- clientService → DOOClientService
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- localStorage → LocalStorage
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
Clears all data related to current DOO client instance
override
-
dispose(
) → void -
Cancels websocket stream subscriptions and disposes localStorage
override
-
getMessages(
) → Future< void> -
Fetches persisted messages.
override
-
getPersistedMessages(
) → void -
Fetches persisted messages.
override
-
initialize(
DOOUser? user) → Future< void> -
Initializes DOO client repository
override
-
listenForEvents(
) → void -
Connects to DOO websocket and starts listening for updates
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendAction(
DOOActionType action) → void -
Send actions like user started typing
override
-
sendMessage(
DOONewMessageRequest request) → Future< void> -
Sends message to DOO inbox
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited