Class TdApi.LinkPreviewTypeVideo

Enclosing class:
TdApi

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

    • url

      public String url
      URL of the video; may be empty if none.
    • mimeType

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

      public TdApi.Video video
      The video description; may be null if unknown.
    • width

      public int width
      Expected width of the preview.
    • height

      public int height
      Expected height of the preview.
    • duration

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

      public String author
      Author of the video.
    • CONSTRUCTOR

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

    • LinkPreviewTypeVideo

      public LinkPreviewTypeVideo()
      The link is a link to a video.
    • LinkPreviewTypeVideo

      public LinkPreviewTypeVideo(String url, String mimeType, TdApi.Video video, int width, int height, int duration, String author)
      The link is a link to a video.
      Parameters:
      url - URL of the video; may be empty if none.
      mimeType - MIME type of the video file.
      video - The video description; may be null if unknown.
      width - Expected width of the preview.
      height - Expected height of the preview.
      duration - Duration of the video, in seconds; 0 if unknown.
      author - Author of the video.
  • 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