Class GetMessagesAroundTimeParams

  • All Implemented Interfaces:

    
    public final class GetMessagesAroundTimeParams
    
                        

    Parameters for fetching messages around a specific point in time.

    Used with ai.nexconn.chat.channel.BaseChannel.getMessagesAroundTime to fetch a specified number of messages before and after the given sent timestamp.

    Usage Example:

    val params = GetMessagesAroundTimeParams(
        sentTime = targetMessage.sentTime,
        beforeCount = 10,
        afterCount = 10
    )
    channel.getMessagesAroundTime(params) { messages, error ->
        if (error == null && messages != null) {
            // ...
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Long sentTime
      private final Integer beforeCount
      private final Integer afterCount
    • Constructor Summary

      Constructors 
      Constructor Description
      GetMessagesAroundTimeParams(Long sentTime, Integer beforeCount, Integer afterCount)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Long getSentTime()
      final Integer getBeforeCount()
      final Integer getAfterCount()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetMessagesAroundTimeParams

        GetMessagesAroundTimeParams(Long sentTime, Integer beforeCount, Integer afterCount)
        Parameters:
        sentTime - Reference sent timestamp in milliseconds.
        beforeCount - Number of messages to fetch before the reference timestamp.
        afterCount - Number of messages to fetch after the reference timestamp.