Class Video


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

    • Video

      public Video()
  • 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:
      Video thumbnail.
    • setThumb

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object