Record Class BedrockSocialService.SocialUser

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.friends.BedrockSocialService.SocialUser
Enclosing class:
BedrockSocialService

public static record BedrockSocialService.SocialUser(String xuid, String gamertag, String displayName, boolean online, String presence, String gamerScore, int friendCount, boolean friend, boolean incoming, boolean outgoing, boolean favorite) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a SocialUser record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the displayName record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the favorite record component.
    boolean
    Returns the value of the friend record component.
    int
    Returns the value of the friendCount record component.
    Returns the value of the gamerScore record component.
    Returns the value of the gamertag record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the incoming record component.
     
    boolean
    Returns the value of the online record component.
    boolean
    Returns the value of the outgoing record component.
    Returns the value of the presence record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the xuid record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a SocialUser record class.
      Parameters:
      xuid - the value for the xuid record component
      gamertag - the value for the gamertag record component
      displayName - the value for the displayName record component
      online - the value for the online record component
      presence - the value for the presence record component
      gamerScore - the value for the gamerScore record component
      friendCount - the value for the friendCount record component
      friend - the value for the friend record component
      incoming - the value for the incoming record component
      outgoing - the value for the outgoing record component
      favorite - the value for the favorite record component
  • Method Details

    • name

      public String name()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • xuid

      public String xuid()
      Returns the value of the xuid record component.
      Returns:
      the value of the xuid record component
    • gamertag

      public String gamertag()
      Returns the value of the gamertag record component.
      Returns:
      the value of the gamertag record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • online

      public boolean online()
      Returns the value of the online record component.
      Returns:
      the value of the online record component
    • presence

      public String presence()
      Returns the value of the presence record component.
      Returns:
      the value of the presence record component
    • gamerScore

      public String gamerScore()
      Returns the value of the gamerScore record component.
      Returns:
      the value of the gamerScore record component
    • friendCount

      public int friendCount()
      Returns the value of the friendCount record component.
      Returns:
      the value of the friendCount record component
    • friend

      public boolean friend()
      Returns the value of the friend record component.
      Returns:
      the value of the friend record component
    • incoming

      public boolean incoming()
      Returns the value of the incoming record component.
      Returns:
      the value of the incoming record component
    • outgoing

      public boolean outgoing()
      Returns the value of the outgoing record component.
      Returns:
      the value of the outgoing record component
    • favorite

      public boolean favorite()
      Returns the value of the favorite record component.
      Returns:
      the value of the favorite record component