Package org.drinkless.tdlib
Class TdApi.LiveLocation
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.LiveLocation
- Enclosing class:
- TdApi
A live location.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intThe direction in which the location moves, in degrees; 1-360; 0 if unknown.intTime relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.The current location.intThe maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. -
Constructor Summary
ConstructorsConstructorDescriptionA live location.LiveLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius) A live location. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
location
The current location. -
livePeriod
public int livePeriodTime relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever. -
heading
public int headingThe direction in which the location moves, in degrees; 1-360; 0 if unknown. -
proximityAlertRadius
public int proximityAlertRadiusThe maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Can't be enabled in direct messages chats, channels and Saved Messages. Available only to the message sender. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LiveLocation
public LiveLocation()A live location. -
LiveLocation
A live location.- Parameters:
location- The current location.livePeriod- Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.heading- The direction in which the location moves, in degrees; 1-360; 0 if unknown.proximityAlertRadius- The maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Can't be enabled in direct messages chats, channels and Saved Messages. Available only to the message sender.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-