Package com.github.twitch4j.domain
Class ChannelCache
java.lang.Object
com.github.twitch4j.domain.ChannelCache
public class ChannelCache
extends java.lang.Object
Channel Cache
-
Constructor Summary
Constructors Constructor Description ChannelCache()ChannelCache(java.lang.String userName)Construct Channel CacheChannelCache(java.lang.String userName, java.lang.Boolean isLive, java.lang.String title, java.lang.String gameId, java.time.Instant lastFollowCheck) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.concurrent.atomic.AtomicReference<java.lang.Integer>getFollowers()Total Follow Countjava.lang.StringgetGameId()Current Game Idjava.lang.BooleangetIsLive()IsLivejava.time.InstantgetLastFollowCheck()Last Follow Checkjava.lang.StringgetTitle()Stream Titlejava.lang.StringgetUserName()User Namejava.util.concurrent.atomic.AtomicReference<java.lang.Integer>getViewerCount()Current Viewer CountinthashCode()voidsetGameId(java.lang.String gameId)Current Game IdvoidsetIsLive(java.lang.Boolean isLive)IsLivevoidsetLastFollowCheck(java.time.Instant lastFollowCheck)Last Follow CheckvoidsetTitle(java.lang.String title)Stream TitlevoidsetUserName(java.lang.String userName)User Namejava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelCache
public ChannelCache(java.lang.String userName)Construct Channel Cache- Parameters:
userName- the name of the channel.
-
ChannelCache
public ChannelCache() -
ChannelCache
public ChannelCache(java.lang.String userName, java.lang.Boolean isLive, java.lang.String title, java.lang.String gameId, java.time.Instant lastFollowCheck)
-
-
Method Details
-
getUserName
public java.lang.String getUserName()User Name -
getIsLive
public java.lang.Boolean getIsLive()IsLive -
getTitle
public java.lang.String getTitle()Stream Title -
getGameId
public java.lang.String getGameId()Current Game Id -
getViewerCount
public java.util.concurrent.atomic.AtomicReference<java.lang.Integer> getViewerCount()Current Viewer Count -
getLastFollowCheck
public java.time.Instant getLastFollowCheck()Last Follow Check -
getFollowers
public java.util.concurrent.atomic.AtomicReference<java.lang.Integer> getFollowers()Total Follow Count -
setUserName
public void setUserName(java.lang.String userName)User Name -
setIsLive
public void setIsLive(java.lang.Boolean isLive)IsLive -
setTitle
public void setTitle(java.lang.String title)Stream Title -
setGameId
public void setGameId(java.lang.String gameId)Current Game Id -
setLastFollowCheck
public void setLastFollowCheck(java.time.Instant lastFollowCheck)Last Follow Check -
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
-