Class Video

java.lang.Object
com.github.twitch4j.helix.domain.Video

public class Video
extends java.lang.Object
Follow
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Video.MutedSegment  
  • Constructor Summary

    Constructors
    Constructor Description
    Video()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.util.Date getCreatedAt()
    Deprecated.
    in favor of getCreatedAtInstant()
    java.time.Instant getCreatedAtInstant()
    Date when the video was created.
    java.lang.String getDescription()
    Description of the video.
    java.lang.String getDuration()
    Length of the video.
    java.lang.String getId()
    ID of the video.
    java.lang.String getLanguage()
    Language of the video.
    @Nullable java.util.List<Video.MutedSegment> getMutedSegments()
    Array of muted segments in the video.
    java.util.Date getPublishedAt()
    Deprecated.
    in favor of getPublishedAtInstant()
    java.time.Instant getPublishedAtInstant()
    Date when the video was published.
    @Nullable java.lang.String getStreamId()
    ID of the stream that the video originated from if the type is "archive".
    java.lang.String getThumbnailUrl()
    Template URL for the thumbnail of the video.
    java.lang.String getThumbnailUrl​(int width, int height)
    Gets the thumbnail url for specific dimensions.
    java.lang.String getTitle()
    Title of the video.
    java.lang.String getType()
    Type of video.
    java.lang.String getUrl()
    URL of the video.
    java.lang.String getUserId()
    ID of the user who owns the video.
    java.lang.String getUserLogin()
    Login of the user who owns the video.
    java.lang.String getUserName()
    Login name corresponding to user_id.
    java.lang.String getViewable()
    Indicates whether the video is publicly viewable.
    java.lang.Integer getViewCount()
    Number of times the video has been viewed.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Video

      public Video()
  • Method Details

    • getThumbnailUrl

      public java.lang.String getThumbnailUrl​(int width, int height)
      Gets the thumbnail url for specific dimensions.
      Parameters:
      width - Thumbnail width.
      height - Thumbnail height.
      Returns:
      String
    • getCreatedAt

      @Deprecated public java.util.Date getCreatedAt()
      Deprecated.
      in favor of getCreatedAtInstant()
      Returns:
      the timestamp when the video was created
    • getPublishedAt

      @Deprecated public java.util.Date getPublishedAt()
      Deprecated.
      in favor of getPublishedAtInstant()
      Returns:
      the timestamp when the video was published
    • getId

      public java.lang.String getId()
      ID of the video.
    • getStreamId

      @Nullable public @Nullable java.lang.String getStreamId()
      ID of the stream that the video originated from if the type is "archive". Otherwise set to null.
    • getUserId

      public java.lang.String getUserId()
      ID of the user who owns the video.
    • getUserLogin

      public java.lang.String getUserLogin()
      Login of the user who owns the video.
    • getUserName

      public java.lang.String getUserName()
      Login name corresponding to user_id.
    • getTitle

      public java.lang.String getTitle()
      Title of the video.
    • getDescription

      public java.lang.String getDescription()
      Description of the video.
    • getCreatedAtInstant

      public java.time.Instant getCreatedAtInstant()
      Date when the video was created.
    • getPublishedAtInstant

      public java.time.Instant getPublishedAtInstant()
      Date when the video was published.
    • getUrl

      public java.lang.String getUrl()
      URL of the video.
    • getThumbnailUrl

      public java.lang.String getThumbnailUrl()
      Template URL for the thumbnail of the video.
    • getViewable

      public java.lang.String getViewable()
      Indicates whether the video is publicly viewable. Valid values: "public", "private".
    • getViewCount

      public java.lang.Integer getViewCount()
      Number of times the video has been viewed.
    • getLanguage

      public java.lang.String getLanguage()
      Language of the video.
    • getType

      public java.lang.String getType()
      Type of video. Valid values: "upload", "archive", "highlight".
    • getDuration

      public java.lang.String getDuration()
      Length of the video.
    • getMutedSegments

      @Nullable public @Nullable java.util.List<Video.MutedSegment> getMutedSegments()
      Array of muted segments in the video. If there are no muted segments, the value will be null.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object