Record Class BedrockSocialService.SocialUser
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.friends.BedrockSocialService.SocialUser
- Enclosing class:
BedrockSocialService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfavorite()Returns the value of thefavoriterecord component.booleanfriend()Returns the value of thefriendrecord component.intReturns the value of thefriendCountrecord component.Returns the value of thegamerScorerecord component.gamertag()Returns the value of thegamertagrecord component.final inthashCode()Returns a hash code value for this object.booleanincoming()Returns the value of theincomingrecord component.name()booleanonline()Returns the value of theonlinerecord component.booleanoutgoing()Returns the value of theoutgoingrecord component.presence()Returns the value of thepresencerecord component.final StringtoString()Returns a string representation of this record class.xuid()Returns the value of thexuidrecord component.
-
Constructor Details
-
SocialUser
public SocialUser(String xuid, String gamertag, String displayName, boolean online, String presence, String gamerScore, int friendCount, boolean friend, boolean incoming, boolean outgoing, boolean favorite) Creates an instance of aSocialUserrecord class.- Parameters:
xuid- the value for thexuidrecord componentgamertag- the value for thegamertagrecord componentdisplayName- the value for thedisplayNamerecord componentonline- the value for theonlinerecord componentpresence- the value for thepresencerecord componentgamerScore- the value for thegamerScorerecord componentfriendCount- the value for thefriendCountrecord componentfriend- the value for thefriendrecord componentincoming- the value for theincomingrecord componentoutgoing- the value for theoutgoingrecord componentfavorite- the value for thefavoriterecord component
-
-
Method Details
-
name
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
xuid
Returns the value of thexuidrecord component.- Returns:
- the value of the
xuidrecord component
-
gamertag
Returns the value of thegamertagrecord component.- Returns:
- the value of the
gamertagrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
online
public boolean online()Returns the value of theonlinerecord component.- Returns:
- the value of the
onlinerecord component
-
presence
Returns the value of thepresencerecord component.- Returns:
- the value of the
presencerecord component
-
gamerScore
Returns the value of thegamerScorerecord component.- Returns:
- the value of the
gamerScorerecord component
-
friendCount
public int friendCount()Returns the value of thefriendCountrecord component.- Returns:
- the value of the
friendCountrecord component
-
friend
public boolean friend()Returns the value of thefriendrecord component.- Returns:
- the value of the
friendrecord component
-
incoming
public boolean incoming()Returns the value of theincomingrecord component.- Returns:
- the value of the
incomingrecord component
-
outgoing
public boolean outgoing()Returns the value of theoutgoingrecord component.- Returns:
- the value of the
outgoingrecord component
-
favorite
public boolean favorite()Returns the value of thefavoriterecord component.- Returns:
- the value of the
favoriterecord component
-