Module tdlight.api

Class TdApi.Venue

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Venue
Enclosing class:
TdApi

public static final class TdApi.Venue extends TdApi.Object
Describes a venue.
  • Field Details

    • location

      public TdApi.Location location
      Venue location; as defined by the sender.
    • title

      public String title
      Venue name; as defined by the sender.
    • address

      public String address
      Venue address; as defined by the sender.
    • provider

      public String provider
      Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported.
    • id

      public String id
      Identifier of the venue in the provider database; as defined by the sender.
    • type

      public String type
      Type of the venue in the provider database; as defined by the sender.
    • CONSTRUCTOR

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

    • Venue

      public Venue()
      Describes a venue.
    • Venue

      public Venue(TdApi.Location location, String title, String address, String provider, String id, String type)
      Describes a venue.
      Parameters:
      location - Venue location; as defined by the sender.
      title - Venue name; as defined by the sender.
      address - Venue address; as defined by the sender.
      provider - Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported.
      id - Identifier of the venue in the provider database; as defined by the sender.
      type - Type of the venue in the provider database; as defined by the sender.
    • Venue

      public Venue(DataInput input) throws IOException
      Describes a venue.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object