Package com.github.twitch4j.helix.domain
Class ChannelInformation.ChannelInformationBuilder
java.lang.Object
com.github.twitch4j.helix.domain.ChannelInformation.ChannelInformationBuilder
- Enclosing class:
- ChannelInformation
-
Method Summary
Modifier and TypeMethodDescriptionbroadcasterId
(String broadcasterId) Twitch User ID of this channel ownerbroadcasterLanguage
(String broadcasterLanguage) Language of the channelbroadcasterLogin
(String broadcasterLogin) Twitch User Login Name of this channel ownerbroadcasterName
(String broadcasterName) Twitch User Display Name of this channel ownerbuild()
contentClassificationLabel
(ContentClassificationState contentClassificationLabel) contentClassificationLabels
(Collection<? extends ContentClassificationState> contentClassificationLabels) Stream delay in seconds.Current game ID being played on the channelCurrent game name being played on the channelisBrandedContent
(Boolean isBrandedContent) Whether the channel has branded content.A list of channel-defined tags to apply to the channel.Title of the streamtoString()
-
Method Details
-
broadcasterId
Twitch User ID of this channel owner- Returns:
this
.
-
broadcasterLogin
Twitch User Login Name of this channel owner- Returns:
this
.
-
broadcasterName
Twitch User Display Name of this channel owner- Returns:
this
.
-
broadcasterLanguage
Language of the channelA language value is either the ISO 639-1 two-letter code for a supported stream language or “other”
- Returns:
this
.
-
gameId
Current game ID being played on the channel- Returns:
this
.
-
gameName
Current game name being played on the channel- Returns:
this
.
-
title
Title of the stream- Returns:
this
.
-
delay
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:
this
.
-
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.- Returns:
this
.
-
contentClassificationLabel
public ChannelInformation.ChannelInformationBuilder contentClassificationLabel(ContentClassificationState contentClassificationLabel) -
contentClassificationLabels
public ChannelInformation.ChannelInformationBuilder contentClassificationLabels(Collection<? extends ContentClassificationState> contentClassificationLabels) -
clearContentClassificationLabels
-
isBrandedContent
Whether the channel has branded content.- Returns:
this
.
-
build
-
toString
-