Class TdApi.GetCountry

Enclosing class:
TdApi

public static class TdApi.GetCountry extends TdApi.Function<TdApi.CountryInfo>
Returns information about an existing country. Can be called before authorization.

Returns CountryInfo

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    A two-letter ISO 3166-1 alpha-2 country code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns information about an existing country.
    GetCountry(String countryCode)
    Creates a function, which returns information about an existing country.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

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

    • countryCode

      public String countryCode
      A two-letter ISO 3166-1 alpha-2 country code.
    • CONSTRUCTOR

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

    • GetCountry

      public GetCountry()
      Default constructor for a function, which returns information about an existing country. Can be called before authorization.

      Returns CountryInfo

    • GetCountry

      public GetCountry(String countryCode)
      Creates a function, which returns information about an existing country. Can be called before authorization.

      Returns CountryInfo

      Parameters:
      countryCode - A two-letter ISO 3166-1 alpha-2 country code.
  • 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