Package com.github.twitch4j.helix.domain
Class ChannelInformation
java.lang.Object
com.github.twitch4j.helix.domain.ChannelInformation
public class ChannelInformation
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ChannelInformation()ChannelInformation(java.lang.String broadcasterId, java.lang.String broadcasterName, java.lang.String broadcasterLanguage, java.lang.String gameId, java.lang.String gameName, java.lang.String title, @Nullable java.lang.Integer delay) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBroadcasterId()Twitch User ID of this channel ownerjava.lang.StringgetBroadcasterLanguage()Language of the channeljava.lang.StringgetBroadcasterName()Twitch User Display Name of this channel owner@Nullable java.lang.IntegergetDelay()Stream delay in seconds.java.lang.StringgetGameId()Current game ID being played on the channeljava.lang.StringgetGameName()Current game name being played on the channeljava.lang.StringgetTitle()Title of the streaminthashCode()java.lang.StringtoString()ChannelInformationwithBroadcasterId(java.lang.String broadcasterId)Twitch User ID of this channel ownerChannelInformationwithBroadcasterLanguage(java.lang.String broadcasterLanguage)Language of the channelChannelInformationwithBroadcasterName(java.lang.String broadcasterName)Twitch User Display Name of this channel ownerChannelInformationwithDelay(@Nullable java.lang.Integer delay)Stream delay in seconds.ChannelInformationwithGameId(java.lang.String gameId)Current game ID being played on the channelChannelInformationwithGameName(java.lang.String gameName)Current game name being played on the channelChannelInformationwithTitle(java.lang.String title)Title of the streamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelInformation
public ChannelInformation() -
ChannelInformation
public ChannelInformation(java.lang.String broadcasterId, java.lang.String broadcasterName, java.lang.String broadcasterLanguage, java.lang.String gameId, java.lang.String gameName, java.lang.String title, @Nullable @Nullable java.lang.Integer delay)
-
-
Method Details
-
getBroadcasterId
public java.lang.String getBroadcasterId()Twitch User ID of this channel owner -
getBroadcasterName
public java.lang.String getBroadcasterName()Twitch User Display Name of this channel owner -
getBroadcasterLanguage
public java.lang.String getBroadcasterLanguage()Language of the channelA language value is either the ISO 639-1 two-letter code for a supported stream language or “other”
-
getGameId
public java.lang.String getGameId()Current game ID being played on the channel -
getGameName
public java.lang.String getGameName()Current game name being played on the channel -
getTitle
public java.lang.String getTitle()Title of the stream -
getDelay
@Nullable public @Nullable java.lang.Integer 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.
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
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).
-
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.
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-