Class TdApi.LiveLocation

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.LiveLocation
Enclosing class:
TdApi

public static class TdApi.LiveLocation extends TdApi.Object
A live location.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    The direction in which the location moves, in degrees; 1-360; 0 if unknown.
    int
    Time 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.
    int
    The maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A live location.
    LiveLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius)
    A live location.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • location

      public TdApi.Location location
      The current location.
    • livePeriod

      public int 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

      public int heading
      The direction in which the location moves, in degrees; 1-360; 0 if unknown.
    • proximityAlertRadius

      public int 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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • LiveLocation

      public LiveLocation()
      A live location.
    • LiveLocation

      public LiveLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius)
      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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR