Class TdApi.LinkPreviewTypeExternalVideo

Enclosing class:
TdApi

public static class TdApi.LinkPreviewTypeExternalVideo extends TdApi.LinkPreviewType
The link is a link to a video file.
  • Field Details

    • url

      public String url
      URL of the video file.
    • mimeType

      public String mimeType
      MIME type of the video file.
    • width

      public int width
      Expected width of the video preview; 0 if unknown.
    • height

      public int height
      Expected height of the video preview; 0 if unknown.
    • duration

      public int duration
      Duration of the video, in seconds; 0 if unknown.
    • CONSTRUCTOR

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

    • LinkPreviewTypeExternalVideo

      public LinkPreviewTypeExternalVideo()
      The link is a link to a video file.
    • LinkPreviewTypeExternalVideo

      public LinkPreviewTypeExternalVideo(String url, String mimeType, int width, int height, int duration)
      The link is a link to a video file.
      Parameters:
      url - URL of the video file.
      mimeType - MIME type of the video file.
      width - Expected width of the video preview; 0 if unknown.
      height - Expected height of the video preview; 0 if unknown.
      duration - Duration of the video, in seconds; 0 if unknown.
  • 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