Module tdlight.api

Class TdApi.PageBlockVideo

Enclosing class:
TdApi

public static final class TdApi.PageBlockVideo extends TdApi.PageBlock
A video.
  • Field Details

    • video

      public TdApi.Video video
      Video file; may be null.
    • caption

      public TdApi.PageBlockCaption caption
      Video caption.
    • needAutoplay

      public boolean needAutoplay
      True, if the video must be played automatically.
    • isLooped

      public boolean isLooped
      True, if the video must be looped.
    • CONSTRUCTOR

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

    • PageBlockVideo

      public PageBlockVideo()
      A video.
    • PageBlockVideo

      public PageBlockVideo(TdApi.Video video, TdApi.PageBlockCaption caption, boolean needAutoplay, boolean isLooped)
      A video.
      Parameters:
      video - Video file; may be null.
      caption - Video caption.
      needAutoplay - True, if the video must be played automatically.
      isLooped - True, if the video must be looped.
    • PageBlockVideo

      public PageBlockVideo(DataInput input) throws IOException
      A video.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object