java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PageBlock
it.tdlight.jni.TdApi.PageBlockEmbedded
- Enclosing class:
- TdApi
An embedded web page.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if scrolling needs to be allowed.Block caption.static final int
Identifier uniquely determining type of the object.int
Block height; 0 if unknown.HTML-markup of the embedded page.boolean
True, if the block must be full width.Poster photo, if available; may be null.Web page URL, if available.int
Block width; 0 if unknown. -
Constructor Summary
ConstructorDescriptionAn embedded web page.PageBlockEmbedded
(DataInput input) An embedded web page.PageBlockEmbedded
(String url, String html, TdApi.Photo posterPhoto, int width, int height, TdApi.PageBlockCaption caption, boolean isFullWidth, boolean allowScrolling) An embedded web page. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
url
Web page URL, if available. -
html
HTML-markup of the embedded page. -
posterPhoto
Poster photo, if available; may be null. -
width
public int widthBlock width; 0 if unknown. -
height
public int heightBlock height; 0 if unknown. -
isFullWidth
public boolean isFullWidthTrue, if the block must be full width. -
allowScrolling
public boolean allowScrollingTrue, if scrolling needs to be allowed. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-