Package it.tdlight.jni
Class TdApi.GetCountryCode
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.GetCountryCode
- Enclosing class:
- TdApi
public static class TdApi.GetCountryCode extends TdApi.Function
Uses the current IP address to find
the current country. Returns two-letter
ISO 3166-1 alpha-2 country code. Can
be called before authorization.
Returns Text
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
-
Constructor Summary
Constructors Constructor Description GetCountryCode()
Uses the current IP address to find the current country.GetCountryCode(DataInput input)
Uses the current IP address to find the current country. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
GetCountryCode
public GetCountryCode()Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.Returns
Text
-
GetCountryCode
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.Returns
Text
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-