Module tdlight.api

Class TdApi.PageBlockMap

Enclosing class:
TdApi

public static final class TdApi.PageBlockMap extends TdApi.PageBlock
A map.
  • Field Details

    • location

      public TdApi.Location location
      Location of the map center.
    • zoom

      public int zoom
      Map zoom level.
    • width

      public int width
      Map width.
    • height

      public int height
      Map height.
    • caption

      public TdApi.PageBlockCaption caption
      Block caption.
    • CONSTRUCTOR

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

    • PageBlockMap

      public PageBlockMap()
      A map.
    • PageBlockMap

      public PageBlockMap(TdApi.Location location, int zoom, int width, int height, TdApi.PageBlockCaption caption)
      A map.
      Parameters:
      location - Location of the map center.
      zoom - Map zoom level.
      width - Map width.
      height - Map height.
      caption - Block caption.
    • PageBlockMap

      public PageBlockMap(DataInput input) throws IOException
      A map.
      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