Class ChannelInformation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTwitch User ID of this channel ownerLanguage of the channelTwitch User Login Name of this channel ownerTwitch User Display Name of this channel ownergetDelay()Stream delay in seconds.Current game ID being played on the channelCurrent game name being played on the channelgetTags()A list of channel-defined tags to apply to the channel.getTitle()Title of the streaminthashCode()toString()withBroadcasterId(String broadcasterId) Twitch User ID of this channel ownerwithBroadcasterLanguage(String broadcasterLanguage) Language of the channelwithBroadcasterLogin(String broadcasterLogin) Twitch User Login Name of this channel ownerwithBroadcasterName(String broadcasterName) Twitch User Display Name of this channel ownerStream delay in seconds.withGameId(String gameId) Current game ID being played on the channelwithGameName(String gameName) Current game name being played on the channelA list of channel-defined tags to apply to the channel.Title of the stream
-
Constructor Details
-
ChannelInformation
public ChannelInformation() -
ChannelInformation
-
-
Method Details
-
getBroadcasterId
Twitch User ID of this channel owner -
getBroadcasterLogin
Twitch User Login Name of this channel owner -
getBroadcasterName
Twitch User Display Name of this channel owner -
getBroadcasterLanguage
Language of the channelA language value is either the ISO 639-1 two-letter code for a supported stream language or “other”
-
getGameId
Current game ID being played on the channel -
getGameName
Current game name being played on the channel -
getTitle
Title of the stream -
getDelay
Stream delay in seconds.Stream delay is a Twitch Partner feature; trying to set this value for other account types will return a 400 error.
Note: this can only be returned if using the broadcaster's user access toke
-
getTags
A list of channel-defined tags to apply to the channel.A channel may specify a maximum of 10 tags. Each tag is limited to a maximum of 25 characters and may not be an empty string or contain spaces or special characters. Tags are case-insensitive. For readability, consider using camelCasing or PascalCasing.
For
TwitchHelix.updateChannelInformation(String, String, ChannelInformation), setting this to an empty list should result in all tags being removed from the channel. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withBroadcasterId
Twitch User ID of this channel owner- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterLogin
Twitch User Login Name of this channel owner- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterName
Twitch User Display Name of this channel owner- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterLanguage
Language of the channelA language value is either the ISO 639-1 two-letter code for a supported stream language or “other”
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGameId
Current game ID being played on the channel- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGameName
Current game name being played on the channel- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
Title of the stream- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDelay
Stream delay in seconds.Stream delay is a Twitch Partner feature; trying to set this value for other account types will return a 400 error.
Note: this can only be returned if using the broadcaster's user access toke
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTags
A list of channel-defined tags to apply to the channel.A channel may specify a maximum of 10 tags. Each tag is limited to a maximum of 25 characters and may not be an empty string or contain spaces or special characters. Tags are case-insensitive. For readability, consider using camelCasing or PascalCasing.
For
TwitchHelix.updateChannelInformation(String, String, ChannelInformation), setting this to an empty list should result in all tags being removed from the channel.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-