Class PresenceUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.user.PresenceUpdateImpl
- All Implemented Interfaces:
Entity
,GuildEntity
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
,Presence
,PresenceUpdate
public class PresenceUpdateImpl
extends Object
implements PresenceUpdate, RequiresCatnip, Timestamped
- Since:
- 12/14/18
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.user.Presence
Presence.Activity, Presence.ActivityAssets, Presence.ActivityFlag, Presence.ActivityParty, Presence.ActivitySecrets, Presence.ActivityTimestamps, Presence.ActivityType, Presence.OnlineStatus
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionPresenceUpdateImpl
(Catnip catnip, long idAsLong, long guildIdAsLong, Presence.OnlineStatus status, List<Presence.Activity> activities, Set<String> roles, String nick, Presence.OnlineStatus mobileStatus, Presence.OnlineStatus webStatus, Presence.OnlineStatus desktopStatus) -
Method Summary
Modifier and TypeMethodDescriptionactivities
(List<Presence.Activity> activities) builder()
catnip()
Returns the catnip instance associated with this entity.void
desktopStatus
(Presence.OnlineStatus desktopStatus) long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) mobileStatus
(Presence.OnlineStatus mobileStatus) nick()
roles()
status()
status
(Presence.OnlineStatus status) webStatus
(Presence.OnlineStatus webStatus) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
PresenceUpdateImpl
public PresenceUpdateImpl() -
PresenceUpdateImpl
public PresenceUpdateImpl(Catnip catnip, long idAsLong, long guildIdAsLong, Presence.OnlineStatus status, List<Presence.Activity> activities, Set<String> roles, String nick, Presence.OnlineStatus mobileStatus, Presence.OnlineStatus webStatus, Presence.OnlineStatus desktopStatus)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
guildIdAsLong
public long guildIdAsLong()Description copied from interface:HasGuild
The id of the guild this entity is from.- Specified by:
guildIdAsLong
in interfaceHasGuild
- Returns:
- Long representing the guild ID.
-
status
-
activities
- Specified by:
activities
in interfacePresence
-
roles
-
nick
-
mobileStatus
- Specified by:
mobileStatus
in interfacePresence
- Specified by:
mobileStatus
in interfacePresenceUpdate
- Returns:
- Online status reported for the user's mobile device.
-
webStatus
- Specified by:
webStatus
in interfacePresence
- Specified by:
webStatus
in interfacePresenceUpdate
- Returns:
- Online status reported for the user's web browser.
-
desktopStatus
- Specified by:
desktopStatus
in interfacePresence
- Specified by:
desktopStatus
in interfacePresenceUpdate
- Returns:
- Online status reported for the user's desktop client.
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
status
- Returns:
this
.
-
activities
- Returns:
this
.
-
roles
- Returns:
this
.
-
nick
- Returns:
this
.
-
mobileStatus
- Returns:
this
.
-
webStatus
- Returns:
this
.
-
desktopStatus
- Returns:
this
.
-