Package com.github.twitch4j.helix.domain
Class Stream
java.lang.Object
com.github.twitch4j.helix.domain.Stream
Stream (LiveStream)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.ID of the game being played on the stream.Name of the game being played.@NonNull String
getId()
Stream ID.@NonNull String
Stream language.Deprecated.in favor of getStartedAtInstant()@NonNull Instant
UTC timestamp on when the stream startedDeprecated.Twitch has deprecated tag ids in favor ofgetTags()
due to the latest custom tags systemgetTags()
The tags applied to the stream.@NonNull String
Deprecated.in favor ofgetThumbnailUrlTemplate()
orgetThumbnailUrl(int, int)
getThumbnailUrl
(int width, int height) Gets the thumbnail url for specific dimensions@NonNull String
A template URL to an image of a frame from the last 5 minutes of the stream.@NonNull String
getTitle()
Stream title.@NonNull String
getType()
Stream type: "live" or "" (in case of error).Gets the stream uptime based on the start date.@NonNull String
ID of the user who is streaming.@NonNull String
Login of the user who is streaming.@NonNull String
Display name of the user who is streaming@NonNull Integer
Number of viewers watching the stream at the time of the query.int
hashCode()
isMature()
Indicates if the broadcaster has specified their channel contains mature content that may be inappropriate for younger audiences.toString()
-
Constructor Details
-
Stream
public Stream()
-
-
Method Details
-
getUptime
Gets the stream uptime based on the start date.- Returns:
- The stream uptime.
-
getThumbnailUrl
Gets the thumbnail url for specific dimensions- Parameters:
width
- thumbnail widthheight
- thumbnail height- Returns:
- populated thumbnail url for a specific resolution
-
getThumbnailUrl
@NonNull @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public @NonNull String getThumbnailUrl()Deprecated.in favor ofgetThumbnailUrlTemplate()
orgetThumbnailUrl(int, int)
- Returns:
- the thumbnail url template
-
getStartedAt
Deprecated.in favor of getStartedAtInstant()- Returns:
- the timestamp on when the stream started, in the system default zone
-
getId
Stream ID. -
getUserId
ID of the user who is streaming. -
getUserLogin
Login of the user who is streaming. -
getUserName
Display name of the user who is streaming -
getGameId
ID of the game being played on the stream. -
getGameName
Name of the game being played. -
getCommunityIds
Deprecated.Array of community IDs. -
getType
Stream type: "live" or "" (in case of error). -
getTitle
Stream title. -
getTags
The tags applied to the stream. -
getViewerCount
Number of viewers watching the stream at the time of the query. -
getStartedAtInstant
UTC timestamp on when the stream started -
getTagIds
Deprecated.Twitch has deprecated tag ids in favor ofgetTags()
due to the latest custom tags systemIds of active tags on the stream- See Also:
-
isMature
Indicates if the broadcaster has specified their channel contains mature content that may be inappropriate for younger audiences. -
getLanguage
Stream language. -
getThumbnailUrlTemplate
A template URL to an image of a frame from the last 5 minutes of the stream. Contains "{width}" and "{height}" placeholders to obtain the size of the image you want, in pixels.To obtain a populated URL, prefer calling
getThumbnailUrl(int, int)
instead. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-