Package org.drinkless.tdlib
Class TdApi.LinkPreviewTypeExternalVideo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.LinkPreviewType
org.drinkless.tdlib.TdApi.LinkPreviewTypeExternalVideo
- Enclosing class:
- TdApi
The link is a link to a video file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Duration of the video, in seconds; 0 if unknown.int
Expected height of the video preview; 0 if unknown.MIME type of the video file.URL of the video file.int
Expected width of the video preview; 0 if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionThe link is a link to a video file.LinkPreviewTypeExternalVideo
(String url, String mimeType, int width, int height, int duration) The link is a link to a video file. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns 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 file. -
mimeType
MIME type of the video file. -
width
public int widthExpected width of the video preview; 0 if unknown. -
height
public int heightExpected height of the video preview; 0 if unknown. -
duration
public int durationDuration of the video, in seconds; 0 if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LinkPreviewTypeExternalVideo
public LinkPreviewTypeExternalVideo()The link is a link to a video file. -
LinkPreviewTypeExternalVideo
public LinkPreviewTypeExternalVideo(String url, String mimeType, int width, int height, int duration) The link is a link to a video file.- Parameters:
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.
-
-
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
-