java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Animation
- Enclosing class:
- TdApi
Describes an animation file. The animation must be encoded in GIF or
MPEG4 format.
-
Field Summary
Modifier and TypeFieldDescriptionFile containing the animation.static final int
Identifier uniquely determining type of the object.int
Duration of the animation, in seconds; as defined by the sender.Original name of the file; as defined by the sender.boolean
True, if stickers were added to the animation.int
Height of the animation.MIME type of the file, usually "image/gif" or "video/mp4".Animation minithumbnail; may be null.Animation thumbnail in JPEG or MPEG4 format; may be null.int
Width of the animation. -
Constructor Summary
ConstructorDescriptionDescribes 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.Describes an animation file. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
duration
public int durationDuration of the animation, in seconds; as defined by the sender. -
width
public int widthWidth of the animation. -
height
public int heightHeight 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
public boolean hasStickersTrue, 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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.
-
Animation
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-