Module tdlight.api

Class TdApi.AnimatedChatPhoto

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.AnimatedChatPhoto
Enclosing class:
TdApi

public static final class TdApi.AnimatedChatPhoto extends TdApi.Object
Animated variant of a chat photo in MPEG4 format.
  • Field Details

    • length

      public int length
      Animation width and height.
    • file

      public TdApi.File file
      Information about the animation file.
    • mainFrameTimestamp

      public double mainFrameTimestamp
      Timestamp of the frame, used as a static chat photo.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • AnimatedChatPhoto

      public AnimatedChatPhoto()
      Animated variant of a chat photo in MPEG4 format.
    • AnimatedChatPhoto

      public AnimatedChatPhoto(int length, TdApi.File file, double mainFrameTimestamp)
      Animated variant of a chat photo in MPEG4 format.
      Parameters:
      length - Animation width and height.
      file - Information about the animation file.
      mainFrameTimestamp - Timestamp of the frame, used as a static chat photo.
    • AnimatedChatPhoto

      public AnimatedChatPhoto(DataInput input) throws IOException
      Animated variant of a chat photo in 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object