Class ChannelInformation

java.lang.Object
com.github.twitch4j.helix.domain.ChannelInformation

public class ChannelInformation
extends java.lang.Object
  • 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 channel

      A 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:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • withBroadcasterId

      public ChannelInformation withBroadcasterId​(java.lang.String broadcasterId)
      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).
    • withBroadcasterName

      public ChannelInformation withBroadcasterName​(java.lang.String broadcasterName)
      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

      public ChannelInformation withBroadcasterLanguage​(java.lang.String broadcasterLanguage)
      Language of the channel

      A 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

      public ChannelInformation withGameId​(java.lang.String gameId)
      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

      public ChannelInformation withGameName​(java.lang.String gameName)
      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

      public ChannelInformation withTitle​(java.lang.String title)
      Title of the stream
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDelay

      public ChannelInformation withDelay​(@Nullable @Nullable java.lang.Integer 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.

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).