java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputChatPhoto
it.tdlight.jni.TdApi.InputChatPhotoAnimation
- Enclosing class:
- TdApi
An animation in MPEG4 format; must be square, at most 10 seconds
long, have width between 160 and 1280 and be at most 2MB in size.
-
Field Summary
Modifier and TypeFieldDescriptionAnimation to be set as profile photo.static final int
Identifier uniquely determining type of the object.double
Timestamp of the frame, which will be used as static chat photo. -
Constructor Summary
ConstructorDescriptionAn animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size.InputChatPhotoAnimation
(TdApi.InputFile animation, double mainFrameTimestamp) An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size.InputChatPhotoAnimation
(DataInput input) An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size. -
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
-
animation
Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed. -
mainFrameTimestamp
public double mainFrameTimestampTimestamp of the frame, which will be used as static chat photo. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputChatPhotoAnimation
public InputChatPhotoAnimation()An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size. -
InputChatPhotoAnimation
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size.- Parameters:
animation
- Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed.mainFrameTimestamp
- Timestamp of the frame, which will be used as static chat photo.
-
InputChatPhotoAnimation
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size.- 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()
-