-
- All Implemented Interfaces:
public class MessagesStateRepresents of possible state of messages for ChannelState.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessagesState.NoQueryActiveThe ChannelState is initialized but no query is currently running. If you know that a query will be started you typically want to display a loading icon.
public classMessagesState.LoadingIndicates we are loading the first page of results. We are in this state if ChannelState.loading is true For seeing if we're loading more results have a look at loadingNewerMessages and loadingOlderMessages
public classMessagesState.OfflineNoResultsIf we are offline and don't have channels stored in offline storage, typically displayed as an error condition.
public final classMessagesState.ResultThe list of messages, loaded either from offline storage or an API call. Observe chatDomain.online to know if results are currently up to date
-