Package com.github.twitch4j.helix.domain
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 classVideo.MutedSegment -
Constructor Summary
Constructors Constructor Description Video() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.DategetCreatedAt()Deprecated.in favor of getCreatedAtInstant()java.time.InstantgetCreatedAtInstant()Date when the video was created.java.lang.StringgetDescription()Description of the video.java.lang.StringgetDuration()Length of the video.java.lang.StringgetId()ID of the video.java.lang.StringgetLanguage()Language of the video.@Nullable java.util.List<Video.MutedSegment>getMutedSegments()Array of muted segments in the video.java.util.DategetPublishedAt()Deprecated.in favor of getPublishedAtInstant()java.time.InstantgetPublishedAtInstant()Date when the video was published.@Nullable java.lang.StringgetStreamId()ID of the stream that the video originated from if the type is "archive".java.lang.StringgetThumbnailUrl()Template URL for the thumbnail of the video.java.lang.StringgetThumbnailUrl(int width, int height)Gets the thumbnail url for specific dimensions.java.lang.StringgetTitle()Title of the video.java.lang.StringgetType()Type of video.java.lang.StringgetUrl()URL of the video.java.lang.StringgetUserId()ID of the user who owns the video.java.lang.StringgetUserLogin()Login of the user who owns the video.java.lang.StringgetUserName()Login name corresponding to user_id.java.lang.StringgetViewable()Indicates whether the video is publicly viewable.java.lang.IntegergetViewCount()Number of times the video has been viewed.inthashCode()java.lang.StringtoString()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
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-