Package org.drinkless.tdlib
Class TdApi.LinkPreviewTypeVideo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.LinkPreviewType
org.drinkless.tdlib.TdApi.LinkPreviewTypeVideo
- Enclosing class:
- TdApi
The link is a link to a video.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.LinkPreviewType
TdApi.LinkPreviewType.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionAuthor of the video.static final intIdentifier uniquely determining type of the object.intDuration of the video, in seconds; 0 if unknown.intExpected height of the preview.MIME type of the video file.URL of the video; may be empty if none.The video description; may be null if unknown.intExpected width of the preview. -
Constructor Summary
ConstructorsConstructorDescriptionThe link is a link to a video.LinkPreviewTypeVideo(String url, String mimeType, TdApi.Video video, int width, int height, int duration, String author) The link is a link to a video. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
url
URL of the video; may be empty if none. -
mimeType
MIME type of the video file. -
video
The video description; may be null if unknown. -
width
public int widthExpected width of the preview. -
height
public int heightExpected height of the preview. -
duration
public int durationDuration of the video, in seconds; 0 if unknown. -
author
Author of the video. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LinkPreviewTypeVideo
public LinkPreviewTypeVideo()The link is a link to a video. -
LinkPreviewTypeVideo
public LinkPreviewTypeVideo(String url, String mimeType, TdApi.Video video, int width, int height, int duration, String author) The link is a link to a video.- Parameters:
url- URL of the video; may be empty if none.mimeType- MIME type of the video file.video- The video description; may be null if unknown.width- Expected width of the preview.height- Expected height of the preview.duration- Duration of the video, in seconds; 0 if unknown.author- Author of the video.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.LinkPreviewType- Returns:
- this.CONSTRUCTOR
-