Module tdlight.api

Class TdApi.GetForumTopics

Enclosing class:
TdApi

public static final class TdApi.GetForumTopics extends TdApi.Function<TdApi.ForumTopics>
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.

Returns ForumTopics

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the forum chat.
    static final int
    Identifier uniquely determining type of the object.
    int
    The maximum number of forum topics to be returned; up to 100.
    int
    The date starting from which the results need to be fetched.
    long
    The message identifier of the last message in the last found topic, or 0 for the first request.
    long
    The message thread identifier of the last found topic, or 0 for the first request.
    Query to search for in the forum topic's name.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Returns found forum topics in a forum chat.
    GetForumTopics(long chatId, String query, int offsetDate, long offsetMessageId, long offsetMessageThreadId, int limit)
    Returns found forum topics in a forum chat.
    Returns found forum topics in a forum chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Function

    toString

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the forum chat.
    • query

      public String query
      Query to search for in the forum topic's name.
    • offsetDate

      public int offsetDate
      The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic.
    • offsetMessageId

      public long offsetMessageId
      The message identifier of the last message in the last found topic, or 0 for the first request.
    • offsetMessageThreadId

      public long offsetMessageThreadId
      The message thread identifier of the last found topic, or 0 for the first request.
    • limit

      public int limit
      The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetForumTopics

      public GetForumTopics()
      Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.

      Returns ForumTopics

    • GetForumTopics

      public GetForumTopics(long chatId, String query, int offsetDate, long offsetMessageId, long offsetMessageThreadId, int limit)
      Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.

      Returns ForumTopics

      Parameters:
      chatId - Identifier of the forum chat.
      query - Query to search for in the forum topic's name.
      offsetDate - The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic.
      offsetMessageId - The message identifier of the last message in the last found topic, or 0 for the first request.
      offsetMessageThreadId - The message thread identifier of the last found topic, or 0 for the first request.
      limit - The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit.

      Returns ForumTopics

    • GetForumTopics

      public GetForumTopics(DataInput input) throws IOException
      Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.

      Returns ForumTopics

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object