-
public final class ChannelListItemContentParamsParameters for ChatComponentFactory.ChannelListItemContent.
-
-
Field Summary
Fields Modifier and Type Field Description private final ItemState.ChannelItemStatechannelItemprivate final UsercurrentUserprivate final Function1<Channel, Unit>onChannelClickprivate final Function1<Channel, Unit>onChannelLongClick
-
Constructor Summary
Constructors Constructor Description ChannelListItemContentParams(ItemState.ChannelItemState channelItem, User currentUser, Function1<Channel, Unit> onChannelClick, Function1<Channel, Unit> onChannelLongClick)
-
Method Summary
Modifier and Type Method Description final ItemState.ChannelItemStategetChannelItem()final UsergetCurrentUser()final Function1<Channel, Unit>getOnChannelClick()final Function1<Channel, Unit>getOnChannelLongClick()-
-
Constructor Detail
-
ChannelListItemContentParams
ChannelListItemContentParams(ItemState.ChannelItemState channelItem, User currentUser, Function1<Channel, Unit> onChannelClick, Function1<Channel, Unit> onChannelLongClick)
- Parameters:
channelItem- The channel item state.currentUser- The currently logged in user.onChannelClick- Action invoked when the channel is clicked.onChannelLongClick- Action invoked when the channel is long-clicked.
-
-
Method Detail
-
getChannelItem
final ItemState.ChannelItemState getChannelItem()
-
getCurrentUser
final User getCurrentUser()
-
getOnChannelClick
final Function1<Channel, Unit> getOnChannelClick()
-
getOnChannelLongClick
final Function1<Channel, Unit> getOnChannelLongClick()
-
-
-
-