Class RichPresenceImpl
java.lang.Object
net.dv8tion.jda.internal.entities.ActivityImpl
net.dv8tion.jda.internal.entities.RichPresenceImpl
- All Implemented Interfaces:
Activity
,RichPresence
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.Activity
Activity.ActivityType, Activity.Timestamps
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.RichPresence
RichPresence.Image, RichPresence.Party
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.Activity
MAX_ACTIVITY_NAME_LENGTH, MAX_ACTIVITY_STATE_LENGTH, STREAMING_URL
-
Method Summary
Modifier and TypeMethodDescriptionRichPresence
representation of this Activity.boolean
The ID for the responsible application.long
The ID for the responsible application.What the player is currently doing
Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP"int
getFlags()
Flags for this presenceFlags for this presence in an enum setInformation on the large image displayed in the profile viewgetParty()
Information on the active party of the playerSession ID for this presence.Information on the small corner image displayed in the profile viewSync ID for this presence.int
hashCode()
boolean
isRich()
toString()
Methods inherited from class net.dv8tion.jda.internal.entities.ActivityImpl
getEmoji, getName, getState, getTimestamps, getType, getUrl, withState
-
Method Details
-
isRich
public boolean isRich()Description copied from interface:Activity
- Specified by:
isRich
in interfaceActivity
- Overrides:
isRich
in classActivityImpl
- Returns:
true
if this is aRichPresence
-
asRichPresence
Description copied from interface:Activity
RichPresence
representation of this Activity.- Specified by:
asRichPresence
in interfaceActivity
- Overrides:
asRichPresence
in classActivityImpl
- Returns:
- RichPresence or
null
ifActivity.isRich()
returnsfalse
-
getApplicationIdLong
public long getApplicationIdLong()Description copied from interface:RichPresence
The ID for the responsible application.- Specified by:
getApplicationIdLong
in interfaceRichPresence
- Returns:
- The ID for the application
-
getApplicationId
Description copied from interface:RichPresence
The ID for the responsible application.- Specified by:
getApplicationId
in interfaceRichPresence
- Returns:
- The ID for the application
-
getSessionId
Description copied from interface:RichPresence
Session ID for this presence.
Used by spotify integration.- Specified by:
getSessionId
in interfaceRichPresence
- Returns:
- Session ID
-
getSyncId
Description copied from interface:RichPresence
Sync ID for this presence.
Used by spotify integration.- Specified by:
getSyncId
in interfaceRichPresence
- Returns:
- Sync ID
-
getFlags
public int getFlags()Description copied from interface:RichPresence
Flags for this presence- Specified by:
getFlags
in interfaceRichPresence
- Returns:
- The flags for this presence
- See Also:
-
getFlagSet
Description copied from interface:RichPresence
Flags for this presence in an enum set- Specified by:
getFlagSet
in interfaceRichPresence
- Returns:
- The flags for this presence
- See Also:
-
getDetails
Description copied from interface:RichPresence
What the player is currently doing
Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP"- Specified by:
getDetails
in interfaceRichPresence
- Returns:
- What the player is currently doing
-
getParty
Description copied from interface:RichPresence
Information on the active party of the player- Specified by:
getParty
in interfaceRichPresence
- Returns:
Party
wrapper ornull
if unset
-
getLargeImage
Description copied from interface:RichPresence
Information on the large image displayed in the profile view- Specified by:
getLargeImage
in interfaceRichPresence
- Returns:
Image
wrapper ornull
if unset
-
getSmallImage
Description copied from interface:RichPresence
Information on the small corner image displayed in the profile view- Specified by:
getSmallImage
in interfaceRichPresence
- Returns:
Image
wrapper ornull
if unset
-
toString
- Overrides:
toString
in classActivityImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classActivityImpl
-
equals
- Overrides:
equals
in classActivityImpl
-