Module tdlight.api

Class TdApi.PageBlockEmbedded

Enclosing class:
TdApi

public static final class TdApi.PageBlockEmbedded extends TdApi.PageBlock
An embedded web page.
  • Field Details

    • url

      public String url
      Web page URL, if available.
    • html

      public String html
      HTML-markup of the embedded page.
    • posterPhoto

      public TdApi.Photo posterPhoto
      Poster photo, if available; may be null.
    • width

      public int width
      Block width; 0 if unknown.
    • height

      public int height
      Block height; 0 if unknown.
    • caption

      public TdApi.PageBlockCaption caption
      Block caption.
    • isFullWidth

      public boolean isFullWidth
      True, if the block must be full width.
    • allowScrolling

      public boolean allowScrolling
      True, if scrolling needs to be allowed.
    • CONSTRUCTOR

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

    • PageBlockEmbedded

      public PageBlockEmbedded()
      An embedded web page.
    • PageBlockEmbedded

      public PageBlockEmbedded(String url, String html, TdApi.Photo posterPhoto, int width, int height, TdApi.PageBlockCaption caption, boolean isFullWidth, boolean allowScrolling)
      An embedded web page.
      Parameters:
      url - Web page URL, if available.
      html - HTML-markup of the embedded page.
      posterPhoto - Poster photo, if available; may be null.
      width - Block width; 0 if unknown.
      height - Block height; 0 if unknown.
      caption - Block caption.
      isFullWidth - True, if the block must be full width.
      allowScrolling - True, if scrolling needs to be allowed.
    • PageBlockEmbedded

      public PageBlockEmbedded(DataInput input) throws IOException
      An embedded web page.
      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