-
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 DraftMessagedraftMessageprivate final BooleanisSelectedprivate final BooleanisUserMuted
-
Constructor Summary
Constructors Constructor Description ItemState.ChannelItemState(Channel channel, Boolean isMuted, List<User> typingUsers, DraftMessage draftMessage, Boolean isSelected, Boolean isUserMuted)
-
Method Summary
Modifier and Type Method Description StringgetKey()final ChannelgetChannel()final BooleangetIsMuted()final List<User>getTypingUsers()final DraftMessagegetDraftMessage()final BooleangetIsSelected()final BooleangetIsUserMuted()-
-
Constructor Detail
-
ItemState.ChannelItemState
ItemState.ChannelItemState(Channel channel, Boolean isMuted, List<User> typingUsers, DraftMessage draftMessage, Boolean isSelected, Boolean isUserMuted)
- 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.isSelected- Whether this channel is currently selected (e.g.isUserMuted- If this is a 1:1 channel and the other member is muted by the current user.
-
-
Method Detail
-
getChannel
final Channel getChannel()
-
getIsMuted
final Boolean getIsMuted()
-
getTypingUsers
final List<User> getTypingUsers()
-
getDraftMessage
final DraftMessage getDraftMessage()
-
getIsSelected
final Boolean getIsSelected()
-
getIsUserMuted
final Boolean getIsUserMuted()
-
-
-
-