java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.StoryVideo
- Enclosing class:
- TdApi
Describes a video file sent in a story.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.double
Duration of the video, in seconds.boolean
True, if stickers were added to the video.int
Video height.boolean
True, if the video has no sound.Video minithumbnail; may be null.int
Size of file prefix, which is supposed to be preloaded, in bytes.Video thumbnail in JPEG or MPEG4 format; may be null.File containing the video.int
Video width. -
Constructor Summary
ConstructorDescriptionDescribes a video file sent in a story.StoryVideo
(double duration, int width, int height, boolean hasStickers, boolean isAnimation, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, int preloadPrefixSize, TdApi.File video) Describes a video file sent in a story.StoryVideo
(DataInput input) Describes a video file sent in a story. -
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 double durationDuration of the video, in seconds. -
width
public int widthVideo width. -
height
public int heightVideo height. -
hasStickers
public boolean hasStickersTrue, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets. -
isAnimation
public boolean isAnimationTrue, if the video has no sound. -
minithumbnail
Video minithumbnail; may be null. -
thumbnail
Video thumbnail in JPEG or MPEG4 format; may be null. -
preloadPrefixSize
public int preloadPrefixSizeSize of file prefix, which is supposed to be preloaded, in bytes. -
video
File containing the video. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StoryVideo
public StoryVideo()Describes a video file sent in a story. -
StoryVideo
public StoryVideo(double duration, int width, int height, boolean hasStickers, boolean isAnimation, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, int preloadPrefixSize, TdApi.File video) Describes a video file sent in a story.- Parameters:
duration
- Duration of the video, in seconds.width
- Video width.height
- Video height.hasStickers
- True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.isAnimation
- True, if the video has no sound.minithumbnail
- Video minithumbnail; may be null.thumbnail
- Video thumbnail in JPEG or MPEG4 format; may be null.preloadPrefixSize
- Size of file prefix, which is supposed to be preloaded, in bytes.video
- File containing the video.
-
StoryVideo
Describes a video file sent in a story.- 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()
-