Package com.github.twitch4j.helix.domain
Class Video
java.lang.Object
com.github.twitch4j.helix.domain.Video
Video
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
The order to sort the returned videos in.static enum
A filter used to filter the list of videos by when they were published.static enum
The video's type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.in favor of getCreatedAtInstant()Date when the video was created.Description of the video.Length of the video.getId()
ID of the video.Language of the video.@Nullable List<Video.MutedSegment>
Array of muted segments in the video.Deprecated.in favor of getPublishedAtInstant()Date when the video was published.@Nullable String
ID of the stream that the video originated from if the type is "archive".Template URL for the thumbnail of the video.getThumbnailUrl
(int width, int height) Gets the thumbnail url for specific dimensions.getTitle()
Title of the video.getType()
Type of video.getUrl()
URL of the video.ID of the user who owns the video.Login of the user who owns the video.Login name corresponding to user_id.Indicates whether the video is publicly viewable.Number of times the video has been viewed.int
hashCode()
toString()
-
Constructor Details
-
Video
public Video()
-
-
Method Details
-
getParsedType
- Returns:
- the
Video.Type
of the video
-
getThumbnailUrl
Gets the thumbnail url for specific dimensions.- Parameters:
width
- Thumbnail width.height
- Thumbnail height.- Returns:
- String
-
getCreatedAt
Deprecated.in favor of getCreatedAtInstant()- Returns:
- the timestamp when the video was created
-
getPublishedAt
Deprecated.in favor of getPublishedAtInstant()- Returns:
- the timestamp when the video was published
-
getId
ID of the video. -
getStreamId
ID of the stream that the video originated from if the type is "archive". Otherwise set to null. -
getUserId
ID of the user who owns the video. -
getUserLogin
Login of the user who owns the video. -
getUserName
Login name corresponding to user_id. -
getTitle
Title of the video. -
getDescription
Description of the video. -
getCreatedAtInstant
Date when the video was created. -
getPublishedAtInstant
Date when the video was published. -
getUrl
URL of the video. -
getThumbnailUrl
Template URL for the thumbnail of the video. -
getViewable
Indicates whether the video is publicly viewable. Valid values: "public", "private". -
getViewCount
Number of times the video has been viewed. -
getLanguage
Language of the video. -
getType
Type of video. Valid values: "upload", "archive", "highlight". -
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-