-
public final class ChannelController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classChannelController.MessagesState
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<Message>repliedMessageprivate final StateFlow<List<Message>>messagesprivate final StateFlow<ChannelController.MessagesState>messagesStateprivate final StateFlow<List<Message>>oldMessagesprivate final StateFlow<Integer>watcherCountprivate final StateFlow<List<User>>watchersprivate final StateFlow<TypingEvent>typingprivate final StateFlow<List<ChannelUserRead>>readsprivate final StateFlow<ChannelUserRead>readprivate final StateFlow<Integer>unreadCountprivate final StateFlow<List<Member>>membersprivate final StateFlow<ChannelData>channelDataprivate final StateFlow<Boolean>hiddenprivate final StateFlow<Boolean>mutedprivate final StateFlow<Boolean>loadingprivate final StateFlow<Boolean>loadingOlderMessagesprivate final StateFlow<Boolean>loadingNewerMessagesprivate final StateFlow<Boolean>endOfOlderMessagesprivate final StateFlow<Boolean>endOfNewerMessagesprivate BooleanrecoveryNeededprivate final Stringcidprivate final StringchannelTypeprivate final StringchannelId
-
Method Summary
Modifier and Type Method Description final StateFlow<Message>getRepliedMessage()final StateFlow<List<Message>>getMessages()final StateFlow<ChannelController.MessagesState>getMessagesState()final StateFlow<List<Message>>getOldMessages()final StateFlow<Integer>getWatcherCount()the number of people currently watching the channel final StateFlow<List<User>>getWatchers()the list of users currently watching this channel final StateFlow<TypingEvent>getTyping()who is currently typing (current user is excluded from this) final StateFlow<List<ChannelUserRead>>getReads()how far every user in this channel has read final StateFlow<ChannelUserRead>getRead()read status for the current user final StateFlow<Integer>getUnreadCount()unread count for this channel, calculated based on read state (this works even if you're offline) final StateFlow<List<Member>>getMembers()the list of members of this channel final StateFlow<ChannelData>getChannelData()StateFlow object with the channel data final StateFlow<Boolean>getHidden()if the channel is currently hidden final StateFlow<Boolean>getMuted()if the channel is currently muted final StateFlow<Boolean>getLoading()if we are currently loading final StateFlow<Boolean>getLoadingOlderMessages()if we are currently loading older messages final StateFlow<Boolean>getLoadingNewerMessages()if we are currently loading newer messages final StateFlow<Boolean>getEndOfOlderMessages()set to true if there are no more older messages to load final StateFlow<Boolean>getEndOfNewerMessages()set to true if there are no more newer messages to load final BooleangetRecoveryNeeded()final UnitsetRecoveryNeeded(Boolean recoveryNeeded)final StringgetCid()final StringgetChannelType()final StringgetChannelId()final MessagegetMessage(String messageId)final Unitclean()final ChanneltoChannel()-
-
Method Detail
-
getRepliedMessage
final StateFlow<Message> getRepliedMessage()
-
getMessages
final StateFlow<List<Message>> getMessages()
-
getMessagesState
final StateFlow<ChannelController.MessagesState> getMessagesState()
-
getOldMessages
final StateFlow<List<Message>> getOldMessages()
-
getWatcherCount
final StateFlow<Integer> getWatcherCount()
the number of people currently watching the channel
-
getWatchers
final StateFlow<List<User>> getWatchers()
the list of users currently watching this channel
-
getTyping
final StateFlow<TypingEvent> getTyping()
who is currently typing (current user is excluded from this)
-
getReads
final StateFlow<List<ChannelUserRead>> getReads()
how far every user in this channel has read
-
getRead
final StateFlow<ChannelUserRead> getRead()
read status for the current user
-
getUnreadCount
final StateFlow<Integer> getUnreadCount()
unread count for this channel, calculated based on read state (this works even if you're offline)
-
getMembers
final StateFlow<List<Member>> getMembers()
the list of members of this channel
-
getChannelData
final StateFlow<ChannelData> getChannelData()
StateFlow object with the channel data
-
getLoading
final StateFlow<Boolean> getLoading()
if we are currently loading
-
getLoadingOlderMessages
final StateFlow<Boolean> getLoadingOlderMessages()
if we are currently loading older messages
-
getLoadingNewerMessages
final StateFlow<Boolean> getLoadingNewerMessages()
if we are currently loading newer messages
-
getEndOfOlderMessages
final StateFlow<Boolean> getEndOfOlderMessages()
set to true if there are no more older messages to load
-
getEndOfNewerMessages
final StateFlow<Boolean> getEndOfNewerMessages()
set to true if there are no more newer messages to load
-
getRecoveryNeeded
final Boolean getRecoveryNeeded()
-
setRecoveryNeeded
final Unit setRecoveryNeeded(Boolean recoveryNeeded)
-
getChannelType
final String getChannelType()
-
getChannelId
final String getChannelId()
-
getMessage
final Message getMessage(String messageId)
-
toChannel
final Channel toChannel()
-
-
-
-