Class ChannelInformation
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionChannelInformation
(String broadcasterId, String broadcasterLogin, String broadcasterName, String broadcasterLanguage, String gameId, String gameName, String title, @Nullable Integer delay, List<String> tags, Collection<ContentClassificationState> contentClassificationLabels, Boolean isBrandedContent) Creates a newChannelInformation
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Twitch User ID of this channel ownerLanguage of the channelTwitch User Login Name of this channel ownerTwitch User Display Name of this channel ownerThe CCLs applied to the channel.@Nullable Integer
getDelay()
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 streamint
hashCode()
Whether the channel has branded content.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 ownerwithContentClassificationLabels
(Collection<ContentClassificationState> contentClassificationLabels) The CCLs applied to the channel.Stream delay in seconds.withGameId
(String gameId) Current game ID being played on the channelwithGameName
(String gameName) Current game name being played on the channelwithIsBrandedContent
(Boolean isBrandedContent) Whether the channel has branded content.A list of channel-defined tags to apply to the channel.Title of the stream
-
Constructor Details
-
ChannelInformation
public ChannelInformation() -
ChannelInformation
public ChannelInformation(String broadcasterId, String broadcasterLogin, String broadcasterName, String broadcasterLanguage, String gameId, String gameName, String title, @Nullable @Nullable Integer delay, List<String> tags, Collection<ContentClassificationState> contentClassificationLabels, Boolean isBrandedContent) Creates a newChannelInformation
instance.- Parameters:
broadcasterId
- Twitch User ID of this channel ownerbroadcasterLogin
- Twitch User Login Name of this channel ownerbroadcasterName
- Twitch User Display Name of this channel ownerbroadcasterLanguage
- Language of the channelA language value is either the ISO 639-1 two-letter code for a supported stream language or “other”
gameId
- Current game ID being played on the channelgameName
- Current game name being played on the channeltitle
- Title of the streamdelay
- 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
tags
- 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.contentClassificationLabels
- The CCLs applied to the channel.isBrandedContent
- Whether the channel has branded content.
-
-
Method Details
-
builder
-
toBuilder
-
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. -
getContentClassificationLabels
The CCLs applied to the channel. -
isBrandedContent
Whether the channel has branded content. -
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
this
if 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
this
if 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
this
if 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
this
if 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
this
if 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
this
if an identical value is passed).
-
withTitle
Title of the stream- Returns:
- a clone of this object, except with this updated property (returns
this
if 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
this
if 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
this
if an identical value is passed).
-
withContentClassificationLabels
public ChannelInformation withContentClassificationLabels(Collection<ContentClassificationState> contentClassificationLabels) The CCLs applied to the channel.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withIsBrandedContent
Whether the channel has branded content.- Returns:
this
.
-