Class LocalMessagesByTimeQueryParams
-
- All Implemented Interfaces:
public final class LocalMessagesByTimeQueryParamsParameters for creating a local messages query by timestamp.
Used with ai.nexconn.chat.channel.BaseChannel.createLocalMessagesByTimeQuery to query local history messages starting from a specific timestamp, optionally filtered by message types.
-
-
Field Summary
Fields Modifier and Type Field Description private LongsentTimeprivate BooleanisAscendingprivate List<String>messageTypesprivate IntegerpageSizeprivate final ChannelIdentifierchannelIdentifier
-
Constructor Summary
Constructors Constructor Description LocalMessagesByTimeQueryParams(ChannelIdentifier channelIdentifier)
-
Method Summary
Modifier and Type Method Description final LonggetSentTime()Reference sent time (milliseconds) to start the query from. final UnitsetSentTime(Long sentTime)Reference sent time (milliseconds) to start the query from. final BooleanisAscending()Whether ascending by time (From Old to New). final UnitsetAscending(Boolean isAscending)Whether ascending by time (From Old to New). final List<String>getMessageTypes()Message type filters (object names). final UnitsetMessageTypes(List<String> messageTypes)Message type filters (object names). final IntegergetPageSize()Number of messages per page. final UnitsetPageSize(Integer pageSize)Number of messages per page. final ChannelIdentifiergetChannelIdentifier()-
-
Constructor Detail
-
LocalMessagesByTimeQueryParams
LocalMessagesByTimeQueryParams(ChannelIdentifier channelIdentifier)
- Parameters:
channelIdentifier- The target channel identifier to query messages from
-
-
Method Detail
-
getSentTime
final Long getSentTime()
Reference sent time (milliseconds) to start the query from.
Messages will be fetched relative to this timestamp based on the query direction. Default is 0, which starts from the latest message.
-
setSentTime
final Unit setSentTime(Long sentTime)
Reference sent time (milliseconds) to start the query from.
Messages will be fetched relative to this timestamp based on the query direction. Default is 0, which starts from the latest message.
-
isAscending
final Boolean isAscending()
Whether ascending by time (From Old to New).
-
setAscending
final Unit setAscending(Boolean isAscending)
Whether ascending by time (From Old to New).
-
getMessageTypes
final List<String> getMessageTypes()
Message type filters (object names).
When set, only messages of the specified types are returned. When null or empty, all message types are returned.
-
setMessageTypes
final Unit setMessageTypes(List<String> messageTypes)
Message type filters (object names).
When set, only messages of the specified types are returned. When null or empty, all message types are returned.
-
getPageSize
final Integer getPageSize()
Number of messages per page. Default is 20.
-
setPageSize
final Unit setPageSize(Integer pageSize)
Number of messages per page. Default is 20.
-
getChannelIdentifier
final ChannelIdentifier getChannelIdentifier()
-
-
-
-