Class ActivityEmojiImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.ActivityEmojiImpl
- All Implemented Interfaces:
Entity
,Emoji
,Emoji.ActivityEmoji
,HasNullableName
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 10/26/19.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.misc.Emoji
Emoji.ActivityEmoji, Emoji.CustomEmoji, Emoji.UnicodeEmoji
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionActivityEmojiImpl
(Catnip catnip, long idAsLong, String name, boolean animated) -
Method Summary
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.misc.Emoji.ActivityEmoji
custom, forMessage, forReaction, id, is, managed, requiresColons, roles, user
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
ActivityEmojiImpl
public ActivityEmojiImpl() -
ActivityEmojiImpl
-
-
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. -
name
Description copied from interface:Emoji
Name of this emoji, if it'scustom
, or it'sunicode
value.
This may be null in the case of reactions.- Specified by:
name
in interfaceEmoji
- Specified by:
name
in interfaceHasNullableName
- Returns:
- String representing the name or unicode value.
-
animated
public boolean animated()Description copied from interface:Emoji
Whether this emoji is animated.
Always false forunicode
emoji. -
idAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
animated
- Returns:
this
.
-