Package ai.nexconn.chat.params
Class OpenChannelMessagesQueryParams
-
- All Implemented Interfaces:
public final class OpenChannelMessagesQueryParamsOpen channel history message query parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringchannelIdprivate final BooleanisAscendingprivate final IntegerpageSizeprivate final LongstartTime
-
Constructor Summary
Constructors Constructor Description OpenChannelMessagesQueryParams(String channelId, Boolean isAscending, Integer pageSize, Long startTime)
-
Method Summary
Modifier and Type Method Description final StringgetChannelId()final BooleanisAscending()final IntegergetPageSize()final LonggetStartTime()-
-
Constructor Detail
-
OpenChannelMessagesQueryParams
OpenChannelMessagesQueryParams(String channelId, Boolean isAscending, Integer pageSize, Long startTime)
- Parameters:
channelId- The open channel ID to query messages fromisAscending- Whether ascending pull, default false (descending)pageSize- Messages per page (0-200), default 20startTime- Start message send timestamp (milliseconds), 0 starts from the latest message
-
-
Method Detail
-
getChannelId
final String getChannelId()
-
isAscending
final Boolean isAscending()
-
getPageSize
final Integer getPageSize()
-
getStartTime
final Long getStartTime()
-
-
-
-