Class UnreadMentionMeChannelsQueryParams
-
- All Implemented Interfaces:
public final class UnreadMentionMeChannelsQueryParamsQuery parameters for channels with unread @me messages.
Usage Example:
val params = UnreadMentionMeChannelsQueryParams( channelTypes = listOf(ChannelType.GROUP, ChannelType.COMMUNITY) ).apply { topPriority = true pageSize = 20 } val query = BaseChannel.createUnreadMentionMeChannelsQuery(params) query.loadNextPage { channels, error -> // ... }
-
-
Field Summary
Fields Modifier and Type Field Description private BooleantopPriorityprivate LongstartTimeprivate IntegerpageSizeprivate final List<ChannelType>channelTypes
-
Constructor Summary
Constructors Constructor Description UnreadMentionMeChannelsQueryParams(List<ChannelType> channelTypes)
-
Method Summary
Modifier and Type Method Description final BooleangetTopPriority()Whether pinned channels are returned first. final UnitsetTopPriority(Boolean topPriority)Whether pinned channels are returned first. final LonggetStartTime()Start timestamp (milliseconds) for the query. final UnitsetStartTime(Long startTime)Start timestamp (milliseconds) for the query. final IntegergetPageSize()Number of items per page. final UnitsetPageSize(Integer pageSize)Number of items per page. final List<ChannelType>getChannelTypes()-
-
Constructor Detail
-
UnreadMentionMeChannelsQueryParams
UnreadMentionMeChannelsQueryParams(List<ChannelType> channelTypes)
- Parameters:
channelTypes- List of channel types to query.
-
-
Method Detail
-
getTopPriority
final Boolean getTopPriority()
Whether pinned channels are returned first.
When true, pinned channels are prioritized in the results. When false, results are sorted by time only. Defaults to true.
-
setTopPriority
final Unit setTopPriority(Boolean topPriority)
Whether pinned channels are returned first.
When true, pinned channels are prioritized in the results. When false, results are sorted by time only. Defaults to true.
-
getStartTime
final Long getStartTime()
Start timestamp (milliseconds) for the query.
Pass 0 to query from the latest channels. For subsequent pages, pass the last item's timestamp from the previous page. Defaults to 0.
-
setStartTime
final Unit setStartTime(Long startTime)
Start timestamp (milliseconds) for the query.
Pass 0 to query from the latest channels. For subsequent pages, pass the last item's timestamp from the previous page. Defaults to 0.
-
getPageSize
final Integer getPageSize()
Number of items per page. Valid range: 1, 100. Defaults to 20.
-
setPageSize
final Unit setPageSize(Integer pageSize)
Number of items per page. Valid range: 1, 100. Defaults to 20.
-
getChannelTypes
final List<ChannelType> getChannelTypes()
-
-
-
-