java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.WebPage
- Enclosing class:
- TdApi
Describes a web page preview.
-
Field Summary
Modifier and TypeFieldDescriptionPreview of the content as an animation, if available; may be null.Preview of the content as an audio file, if available; may be null.Author of the content.static final int
Identifier uniquely determining type of the object.Description of the content.URL to display.Preview of the content as a document, if available; may be null.int
Duration of the content, in seconds.int
Height of the embedded preview.MIME type of the embedded preview, (e.g., text/html or video/mp4).URL to show in the embedded preview.int
Width of the embedded preview.int
Version of web page instant view (currently, can be 1 or 2); 0 if none.Image representing the content; may be null.Short name of the site (e.g., Google Docs, App Store).Preview of the content as a sticker for small WEBP files, if available; may be null.int
The identifier of the previewed story; 0 if none.long
The identifier of the sender of the previewed story; 0 if none.Title of the content.Type of the web page.Original URL of the link.Preview of the content as a video, if available; may be null.Preview of the content as a video note, if available; may be null.Preview of the content as a voice note, if available; may be null. -
Constructor Summary
ConstructorDescriptionWebPage()
Describes a web page preview.Describes a web page preview.WebPage
(String url, String displayUrl, String type, String siteName, String title, TdApi.FormattedText description, TdApi.Photo photo, String embedUrl, String embedType, int embedWidth, int embedHeight, int duration, String author, TdApi.Animation animation, TdApi.Audio audio, TdApi.Document document, TdApi.Sticker sticker, TdApi.Video video, TdApi.VideoNote videoNote, TdApi.VoiceNote voiceNote, long storySenderChatId, int storyId, int instantViewVersion) Describes a web page preview. -
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
Original URL of the link. -
displayUrl
URL to display. -
type
Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else. -
siteName
Short name of the site (e.g., Google Docs, App Store). -
title
Title of the content. -
description
Description of the content. -
photo
Image representing the content; may be null. -
embedUrl
URL to show in the embedded preview. -
embedType
MIME type of the embedded preview, (e.g., text/html or video/mp4). -
embedWidth
public int embedWidthWidth of the embedded preview. -
embedHeight
public int embedHeightHeight of the embedded preview. -
duration
public int durationDuration of the content, in seconds. -
author
Author of the content. -
animation
Preview of the content as an animation, if available; may be null. -
audio
Preview of the content as an audio file, if available; may be null. -
document
Preview of the content as a document, if available; may be null. -
sticker
Preview of the content as a sticker for small WEBP files, if available; may be null. -
video
Preview of the content as a video, if available; may be null. -
videoNote
Preview of the content as a video note, if available; may be null. -
voiceNote
Preview of the content as a voice note, if available; may be null. -
storySenderChatId
public long storySenderChatIdThe identifier of the sender of the previewed story; 0 if none. -
storyId
public int storyIdThe identifier of the previewed story; 0 if none. -
instantViewVersion
public int instantViewVersionVersion of web page instant view (currently, can be 1 or 2); 0 if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
WebPage
public WebPage()Describes a web page preview. -
WebPage
public WebPage(String url, String displayUrl, String type, String siteName, String title, TdApi.FormattedText description, TdApi.Photo photo, String embedUrl, String embedType, int embedWidth, int embedHeight, int duration, String author, TdApi.Animation animation, TdApi.Audio audio, TdApi.Document document, TdApi.Sticker sticker, TdApi.Video video, TdApi.VideoNote videoNote, TdApi.VoiceNote voiceNote, long storySenderChatId, int storyId, int instantViewVersion) Describes a web page preview.- Parameters:
url
- Original URL of the link.displayUrl
- URL to display.type
- Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.siteName
- Short name of the site (e.g., Google Docs, App Store).title
- Title of the content.description
- Description of the content.photo
- Image representing the content; may be null.embedUrl
- URL to show in the embedded preview.embedType
- MIME type of the embedded preview, (e.g., text/html or video/mp4).embedWidth
- Width of the embedded preview.embedHeight
- Height of the embedded preview.duration
- Duration of the content, in seconds.author
- Author of the content.animation
- Preview of the content as an animation, if available; may be null.audio
- Preview of the content as an audio file, if available; may be null.document
- Preview of the content as a document, if available; may be null.sticker
- Preview of the content as a sticker for small WEBP files, if available; may be null.video
- Preview of the content as a video, if available; may be null.videoNote
- Preview of the content as a video note, if available; may be null.voiceNote
- Preview of the content as a voice note, if available; may be null.storySenderChatId
- The identifier of the sender of the previewed story; 0 if none.storyId
- The identifier of the previewed story; 0 if none.instantViewVersion
- Version of web page instant view (currently, can be 1 or 2); 0 if none.
-
WebPage
Describes a web page preview.- 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()
-