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
Thumbnail URL of the stream.getThumbnailUrl
(Integer width, Integer height) Gets the thumbnail url for specific dimensions@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:
- String
-
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. -
getThumbnailUrl
Thumbnail URL of the stream. All image URLs have variable width and height. You can replace {width} and {height} with any values to get that size image -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-