public static class TdApi.LinkPreviewTypeExternalVideo extends TdApi.LinkPreviewType
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the video, in seconds; 0 if unknown.
|
int |
height
Expected height of the video preview; 0 if unknown.
|
java.lang.String |
mimeType
MIME type of the video file.
|
java.lang.String |
url
URL of the video file.
|
int |
width
Expected width of the video preview; 0 if unknown.
|
| Constructor and Description |
|---|
LinkPreviewTypeExternalVideo()
The link is a link to a video file.
|
LinkPreviewTypeExternalVideo(java.lang.String url,
java.lang.String mimeType,
int width,
int height,
int duration)
The link is a link to a video file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String url
public java.lang.String mimeType
public int width
public int height
public int duration
public static final int CONSTRUCTOR
public LinkPreviewTypeExternalVideo()
public LinkPreviewTypeExternalVideo(java.lang.String url,
java.lang.String mimeType,
int width,
int height,
int duration)
url - URL of the video file.mimeType - MIME type of the video file.width - Expected width of the video preview; 0 if unknown.height - Expected height of the video preview; 0 if unknown.duration - Duration of the video, in seconds; 0 if unknown.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object