Package io.agora.rtm

Class GetHistoryMessagesOptions

java.lang.Object
io.agora.rtm.GetHistoryMessagesOptions

public class GetHistoryMessagesOptions extends Object
This class represents options for retrieving the message history of a channel. It provides the ability to specify the number of messages to retrieve, and the start and end timestamps of the messages to retrieve.
  • Constructor Details

    • GetHistoryMessagesOptions

      public GetHistoryMessagesOptions()
      Constructs a new instance of GetHistoryMessagesOptions with default parameters.
    • GetHistoryMessagesOptions

      public GetHistoryMessagesOptions(int messageCount, long start, long end)
      Constructs a new instance of GetHistoryMessagesOptions with the specified options.
      Parameters:
      messageCount - The number of messages to retrieve.
      start - The start timestamp of the messages to retrieve.
      end - The end timestamp of the messages to retrieve.
  • Method Details

    • setMessageCount

      public void setMessageCount(int messageCount)
    • setStart

      public void setStart(long start)
    • setEnd

      public void setEnd(long end)
    • getMessageCount

      public int getMessageCount()
    • getStart

      public long getStart()
    • getEnd

      public long getEnd()
    • toString

      public String toString()
      Overrides:
      toString in class Object