Class Animation
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
io.micronaut.chatbots.telegram.api.Animation
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Integer@Nullable String@Nullable Long@Nullable String@Nullable PhotoSizegetThumb()voidsetDuration(@NonNull Integer duration) voidsetFileName(@Nullable String fileName) voidsetFileSize(@Nullable Long fileSize) voidsetMimeType(@Nullable String mimeType) voidtoString()Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
getHeight, getWidth, setHeight, setWidthMethods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Animation
public Animation()
-
-
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:
- Animation thumbnail as defined by sender.
-
setThumb
- Parameters:
thumb- Animation thumbnail as defined by sender.
-
getFileName
- Returns:
- Original animation filename as defined by sender.
-
setFileName
- Parameters:
fileName- Original animation filename as defined by sender.
-
getMimeType
- Returns:
- MIME type of the file as defined by sender.
-
setMimeType
- Parameters:
mimeType- MIME type of the file as defined by sender.
-
getFileSize
- Returns:
- File size.
-
setFileSize
- Parameters:
fileSize- File size.
-
toString
-