Class Animation


public class Animation extends AbstractFileWithDimensions
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Since:
1.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • Animation

      public Animation()
  • Method Details

    • getDuration

      @NonNull public @NonNull Integer getDuration()
      Returns:
      Duration of the video in seconds as defined by sender.
    • setDuration

      public void setDuration(@NonNull @NonNull Integer duration)
      Parameters:
      duration - Duration of the video in seconds as defined by sender.
    • getThumb

      @Nullable public @Nullable PhotoSize getThumb()
      Returns:
      Animation thumbnail as defined by sender.
    • setThumb

      public void setThumb(@Nullable @Nullable PhotoSize thumb)
      Parameters:
      thumb - Animation thumbnail as defined by sender.
    • getFileName

      @Nullable public @Nullable String getFileName()
      Returns:
      Original animation filename as defined by sender.
    • setFileName

      public void setFileName(@Nullable @Nullable String fileName)
      Parameters:
      fileName - Original animation filename as defined by sender.
    • getMimeType

      @Nullable public @Nullable String getMimeType()
      Returns:
      MIME type of the file as defined by sender.
    • setMimeType

      public void setMimeType(@Nullable @Nullable String mimeType)
      Parameters:
      mimeType - MIME type of the file as defined by sender.
    • getFileSize

      @Nullable public @Nullable Long getFileSize()
      Returns:
      File size.
    • setFileSize

      public void setFileSize(@Nullable @Nullable Long fileSize)
      Parameters:
      fileSize - File size.
    • toString

      public String toString()
      Overrides:
      toString in class Object