Package org.drinkless.tdlib
Class TdApi.Animation
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Animation
-
- Enclosing class:
- TdApi
public static class TdApi.Animation extends TdApi.Object
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.FileanimationFile containing the animation.static intCONSTRUCTORIdentifier uniquely determining type of the object.intdurationDuration of the animation, in seconds; as defined by the sender.StringfileNameOriginal name of the file; as defined by the sender.booleanhasStickersTrue, if stickers were added to the animation.intheightHeight of the animation.StringmimeTypeMIME type of the file, usually "image/gif" or "video/mp4".TdApi.MinithumbnailminithumbnailAnimation minithumbnail; may be null.TdApi.ThumbnailthumbnailAnimation thumbnail in JPEG or MPEG4 format; may be null.intwidthWidth of the animation.
-
Constructor Summary
Constructors Constructor Description Animation()Describes an animation file.Animation(int duration, int width, int height, String fileName, String mimeType, boolean hasStickers, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, TdApi.File animation)Describes an animation file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
duration
public int duration
Duration of the animation, in seconds; as defined by the sender.
-
width
public int width
Width of the animation.
-
height
public int height
Height of the animation.
-
fileName
public String fileName
Original name of the file; as defined by the sender.
-
mimeType
public String mimeType
MIME type of the file, usually "image/gif" or "video/mp4".
-
hasStickers
public boolean hasStickers
True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.
-
minithumbnail
public TdApi.Minithumbnail minithumbnail
Animation minithumbnail; may be null.
-
thumbnail
public TdApi.Thumbnail thumbnail
Animation thumbnail in JPEG or MPEG4 format; may be null.
-
animation
public TdApi.File animation
File containing the animation.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Animation
public Animation()
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
-
Animation
public Animation(int duration, int width, int height, String fileName, String mimeType, boolean hasStickers, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, TdApi.File animation)Describes an animation file. The animation must be encoded in GIF or MPEG4 format.- Parameters:
duration- Duration of the animation, in seconds; as defined by the sender.width- Width of the animation.height- Height of the animation.fileName- Original name of the file; as defined by the sender.mimeType- MIME type of the file, usually "image/gif" or "video/mp4".hasStickers- True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.minithumbnail- Animation minithumbnail; may be null.thumbnail- Animation thumbnail in JPEG or MPEG4 format; may be null.animation- File containing the animation.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-