Class Video
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
io.micronaut.chatbots.telegram.api.Video
This object represents a video file.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Integer
@Nullable Integer
@Nullable String
@Nullable PhotoSize
getThumb()
void
setDuration
(@NonNull Integer duration) void
setFileSize
(@Nullable Integer fileSize) void
setMimeType
(@Nullable String mimeType) void
toString()
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
getHeight, getWidth, setHeight, setWidth
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Video
public Video()
-
-
Method Details
-
getDuration
- Returns:
- Duration of the video in seconds as defined by sender.
-
setDuration
- Parameters:
duration
- Duration of the video in seconds as defined by sender.
-
getThumb
- Returns:
- Video thumbnail.
-
setThumb
- Parameters:
thumb
- Video thumbnail.
-
getMimeType
- Returns:
- Mime type of a file as defined by sender.
-
setMimeType
- Parameters:
mimeType
- Mime type of a file as defined by sender.
-
getFileSize
- Returns:
- File size.
-
setFileSize
- Parameters:
fileSize
- File size.
-
toString
-