Package net.dv8tion.jda.api.entities
Class RichPresence.Party
- java.lang.Object
-
- net.dv8tion.jda.api.entities.RichPresence.Party
-
- Enclosing interface:
- RichPresence
public static class RichPresence.Party extends java.lang.ObjectHolds information on a player's party
-
-
Constructor Summary
Constructors Constructor Description Party(java.lang.String id, long size, long max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()ID for this party, relevant to the game.longgetMax()The maximum size of this party, or0if unsetlonggetSize()The current size of this party, or0if unsetinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
@Nullable public java.lang.String getId()
ID for this party, relevant to the game.- Returns:
- The ID for this party, or
nullif unset
-
getSize
public long getSize()
The current size of this party, or0if unset- Returns:
- The current size of this party, or
0if unset
-
getMax
public long getMax()
The maximum size of this party, or0if unset- Returns:
- The maximum size of this party, or
0if unset
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-