Module tdlight.api

Class TdApi.GetPhoneNumberInfoSync

Enclosing class:
TdApi

public static final class TdApi.GetPhoneNumberInfoSync extends TdApi.Function<TdApi.PhoneNumberInfo>
Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously. Returns PhoneNumberInfo
  • Field Details

    • languageCode

      public String languageCode
      A two-letter ISO 639-1 language code for country information localization.
    • phoneNumberPrefix

      public String phoneNumberPrefix
      The phone number prefix.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetPhoneNumberInfoSync

      public GetPhoneNumberInfoSync()
      Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously. Returns PhoneNumberInfo
    • GetPhoneNumberInfoSync

      public GetPhoneNumberInfoSync(String languageCode, String phoneNumberPrefix)
      Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously. Returns PhoneNumberInfo
      Parameters:
      languageCode - String A two-letter ISO 639-1 language code for country information localization.
      phoneNumberPrefix - String The phone number prefix.
    • GetPhoneNumberInfoSync

      public GetPhoneNumberInfoSync(DataInput input) throws IOException
      Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously. Returns PhoneNumberInfo
      Throws:
      IOException
  • Method Details