Package com.github.twitch4j.helix.domain
Class User
java.lang.Object
com.github.twitch4j.helix.domain.User
public class User
extends java.lang.Object
User
-
Constructor Summary
Constructors Constructor Description User() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBroadcasterType()User’s broadcaster type: "partner", "affiliate", or "".java.time.InstantgetCreatedAt()Date when the user was created.java.lang.StringgetDescription()User’s channel description.java.lang.StringgetDisplayName()User’s display name.java.lang.StringgetEmail()User’s email address.java.lang.StringgetId()User’s ID.java.lang.StringgetLogin()User’s login name.java.lang.StringgetOfflineImageUrl()URL of the user’s offline image.java.lang.StringgetProfileImageUrl()URL of the user’s profile image.java.lang.StringgetType()User’s type: "staff", "admin", "global_mod", or "".java.lang.IntegergetViewCount()Total number of views of the user’s channel.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getId
public java.lang.String getId()User’s ID. -
getLogin
public java.lang.String getLogin()User’s login name. -
getDisplayName
public java.lang.String getDisplayName()User’s display name. -
getType
public java.lang.String getType()User’s type: "staff", "admin", "global_mod", or "". -
getBroadcasterType
public java.lang.String getBroadcasterType()User’s broadcaster type: "partner", "affiliate", or "". -
getDescription
public java.lang.String getDescription()User’s channel description. -
getProfileImageUrl
public java.lang.String getProfileImageUrl()URL of the user’s profile image. -
getOfflineImageUrl
public java.lang.String getOfflineImageUrl()URL of the user’s offline image. -
getViewCount
public java.lang.Integer getViewCount()Total number of views of the user’s channel. -
getEmail
public java.lang.String getEmail()User’s email address. Returned if the request includes the user:read:email scope. -
getCreatedAt
public java.time.Instant getCreatedAt()Date when the user was created. -
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
-