Module tdlight.api

Class TdApi.SearchContacts

Enclosing class:
TdApi

public static final class TdApi.SearchContacts extends TdApi.Function<TdApi.Users>
Searches for the specified query in the first names, last names and usernames of the known user contacts.

Returns Users

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    int
    The maximum number of users to be returned.
    Query to search for; may be empty to return all contacts.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Searches for the specified query in the first names, last names and usernames of the known user contacts.
    Searches for the specified query in the first names, last names and usernames of the known user contacts.
    SearchContacts(String query, int limit)
    Searches for the specified query in the first names, last names and usernames of the known user contacts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

    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

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

    • query

      public String query
      Query to search for; may be empty to return all contacts.
    • limit

      public int limit
      The maximum number of users to be returned.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SearchContacts

      public SearchContacts()
      Searches for the specified query in the first names, last names and usernames of the known user contacts.

      Returns Users

    • SearchContacts

      public SearchContacts(String query, int limit)
      Searches for the specified query in the first names, last names and usernames of the known user contacts.

      Returns Users

      Parameters:
      query - String Query to search for; may be empty to return all contacts.
      limit - int The maximum number of users to be returned.
    • SearchContacts

      public SearchContacts(DataInput input) throws IOException
      Searches for the specified query in the first names, last names and usernames of the known user contacts.

      Returns Users

      Throws:
      IOException
  • Method Details