Package it.tdlight.jni
Class TdApi.SetLocation
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetLocation
- Enclosing class:
- TdApi
public static class TdApi.SetLocation extends TdApi.Function
Changes the location of the current
user. Needs to be called if
GetOption("is_location_visible")
is true and location changes for more
than 1 kilometer.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
TdApi.Location
location
The new location of the user. -
Constructor Summary
Constructors Constructor Description SetLocation()
Changes the location of the current user.SetLocation(TdApi.Location location)
Changes the location of the current user.SetLocation(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
location
The new location of the user. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetLocation
public SetLocation()Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer.Returns
Ok
-
SetLocation
Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer.Returns
Ok
- Parameters:
location
- Location The new location of the user.
-
SetLocation
- 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()
-