Package com.github.twitch4j.helix.domain
Class Stream
java.lang.Object
com.github.twitch4j.helix.domain.Stream
Stream (LiveStream)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDeprecated.ID of the game being played on the stream.Name of the game being played.getId()Stream ID.Stream language.Deprecated.in favor of getStartedAtInstant()UTC timestamp on when the stream startedDeprecated.Twitch is deprecating this field and will stop providing IDs in 2023 (Twitch will communicate the specific date in early 2023) in favor ofgetTags()getTags()The tags applied to the stream.Thumbnail URL of the stream.getThumbnailUrl(Integer width, Integer height) Gets the thumbnail url for specific dimensionsgetTitle()Stream title.getType()Stream type: "live" or "" (in case of error).Gets the stream uptime based on the start date.ID of the user who is streaming.Login of the user who is streaming.Display name of the user who is streamingNumber of viewers watching the stream at the time of the query.inthashCode()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 is deprecating this field and will stop providing IDs in 2023 (Twitch will communicate the specific date in early 2023) in favor ofgetTags()Ids of active tags on the stream -
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
-