Class Video


public class Video extends AbstractFileWithDimensions
This object represents a video file.
See Also:
  • Constructor Details

    • Video

      public Video()
  • Method Details

    • getDuration

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

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

      public @Nullable PhotoSize getThumb()
      Returns:
      Video thumbnail.
    • setThumb

      public void setThumb(@Nullable PhotoSize thumb)
      Parameters:
      thumb - Video thumbnail.
    • getMimeType

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object