Class ChannelCache

java.lang.Object
com.github.twitch4j.domain.ChannelCache

public class ChannelCache extends Object
Channel Cache
  • Constructor Details

    • ChannelCache

      public ChannelCache(String userName)
      Construct Channel Cache
      Parameters:
      userName - the name of the channel.
    • ChannelCache

      public ChannelCache()
    • ChannelCache

      public ChannelCache(String userName, Boolean isLive, String title, String gameId, Instant lastFollowCheck)
  • Method Details

    • getUserName

      public String getUserName()
      User Name
    • getIsLive

      public Boolean getIsLive()
      IsLive
    • getTitle

      public String getTitle()
      Stream Title
    • getGameId

      public String getGameId()
      Current Game Id
    • getViewerCount

      public AtomicReference<Integer> getViewerCount()
      Current Viewer Count
    • getLastFollowCheck

      public Instant getLastFollowCheck()
      Last Follow Check
    • getFollowers

      public AtomicReference<Integer> getFollowers()
      Total Follow Count
    • getClipWindowStart

      public AtomicReference<Instant> getClipWindowStart()
      Clip Query Started At
    • setUserName

      public void setUserName(String userName)
      User Name
    • setIsLive

      public void setIsLive(Boolean isLive)
      IsLive
    • setTitle

      public void setTitle(String title)
      Stream Title
    • setGameId

      public void setGameId(String gameId)
      Current Game Id
    • setLastFollowCheck

      public void setLastFollowCheck(Instant lastFollowCheck)
      Last Follow Check
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object