-
public final class ItemState.ChannelItemState extends ItemState
Represents each channel item we show in the list of channels.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringkeyprivate final Channelchannelprivate final BooleanisMutedprivate final List<User>typingUsersprivate final DraftMessagedraftMessage
-
Constructor Summary
Constructors Constructor Description ItemState.ChannelItemState(Channel channel, Boolean isMuted, List<User> typingUsers, DraftMessage draftMessage)
-
Method Summary
Modifier and Type Method Description StringgetKey()final ChannelgetChannel()final BooleangetIsMuted()final List<User>getTypingUsers()final DraftMessagegetDraftMessage()-
-
Constructor Detail
-
ItemState.ChannelItemState
ItemState.ChannelItemState(Channel channel, Boolean isMuted, List<User> typingUsers, DraftMessage draftMessage)
- Parameters:
channel- The channel to show.isMuted- If the channel is muted for the current user.typingUsers- The list of users currently typing in the channel.draftMessage- The draft message for the current user in the channel.
-
-
Method Detail
-
getChannel
final Channel getChannel()
-
getIsMuted
final Boolean getIsMuted()
-
getTypingUsers
final List<User> getTypingUsers()
-
getDraftMessage
final DraftMessage getDraftMessage()
-
-
-
-