Package it.tdlight.jni
Class TdApi.MessageLocation
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessageLocation
- Enclosing class:
- TdApi
public static class TdApi.MessageLocation extends TdApi.MessageContent
A message with a location.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
expiresIn
Left time for which the location can be updated, in seconds.int
heading
For live locations, a direction in which the location moves, in degrees; 1-360.int
livePeriod
Time relative to the message send date, for which the location can be updated, in seconds.TdApi.Location
location
The location description.int
proximityAlertRadius
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). -
Constructor Summary
Constructors Constructor Description MessageLocation()
A message with a location.MessageLocation(TdApi.Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius)
A message with a location.MessageLocation(DataInput input)
-
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.Object
serialize, toString
-
Field Details
-
location
The location description. -
livePeriod
public int livePeriodTime relative to the message send date, for which the location can be updated, in seconds. -
expiresIn
public int expiresInLeft time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes. -
heading
public int headingFor live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown. -
proximityAlertRadius
public int proximityAlertRadiusFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
MessageLocation
public MessageLocation()A message with a location. -
MessageLocation
public MessageLocation(TdApi.Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius)A message with a location.- Parameters:
location
- Location The location description.livePeriod
- int Time relative to the message send date, for which the location can be updated, in seconds.expiresIn
- int Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes.heading
- int For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.proximityAlertRadius
- int For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender.
-
MessageLocation
- 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()
-