ChatBloc class

Constructors

ChatBloc(ConfigurationModel configurationModel, UserModel loggedUser)

Properties

configurationModel ConfigurationModel
final
favoriteMessages List
read / write
favoriteMessagesListStream Observable
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
historyWasRecovered bool
read / write
idleWatchTimer Timer
read / write
initialMessageSent bool
read / write
log Logger
final
loggedUser UserModel
final
messages List
read / write
messagesListStream Observable
read-only
programs List
read / write
programsListStream Observable
read-only
quickMenuItems List<QuickMenuItemModel>
read / write
quickMenuListStream Observable
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedMessage ↔ dynamic
read / write
selecteMessagesToggleStream Observable
read-only
socket IOWebSocketChannel
read / write
userIdentifierStatusStream Observable
read-only
wsConnectionStatusStream Observable
read-only

Methods

addMessage(dynamic message) List
addOrRemoveFavoriteMessage(dynamic message, bool favorite) → void
closeConnection() → void
connectToClient({bool reconnection = false}) → void
dispose() → dynamic
getFavoriteMessages(UserModel user) → void
getHistory(UserModel user) Future
getPrograms(UserModel user) → void
getQuickMenuItems() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onMediaView({String url, String blockId, String sessionId}) → void
onPostBack(SendMessageModel message, dynamic title, dynamic payload, {bool initialMessage = false}) → void
selectMessageToggle(dynamic message) → void
sendMessage(SendMessageModel message, {bool isPostback = false, bool initialMessage = false}) → void
subscribeUnsubscribe(ProgramModel program, UserModel user) → void
toString() String
A string representation of this object. [...]
inherited
userIdentifier() → void

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited