SquadweRepositoryImpl class
- Inheritance
-
- Object
- SquadweRepository
- SquadweRepositoryImpl
Constructors
- SquadweRepositoryImpl({required SquadweClientService clientService, required LocalStorage localStorage, required SquadweCallbacks streamCallbacks})
Properties
- callbacks ↔ SquadweCallbacks
-
getter/setter pairinherited
- clientService → SquadweClientService
-
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 squadwe 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(
SquadweUser? user) → Future< void> -
Initializes squadwe client repository
override
-
listenForEvents(
) → void -
Connects to squadwe websocket and starts listening for updates
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendAction(
SquadweActionType action) → void -
Send actions like user started typing
override
-
sendMessage(
SquadweNewMessageRequest request) → Future< void> -
Sends message to squadwe inbox
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited