Class ActivityEmojiImpl

java.lang.Object
com.mewna.catnip.entity.impl.misc.ActivityEmojiImpl
All Implemented Interfaces:
Entity, Emoji, Emoji.ActivityEmoji, HasNullableName, Snowflake, Timestamped, RequiresCatnip

public class ActivityEmojiImpl extends Object implements Emoji.ActivityEmoji, RequiresCatnip
Since:
10/26/19.
Author:
amy
  • Constructor Details

    • ActivityEmojiImpl

      public ActivityEmojiImpl()
    • ActivityEmojiImpl

      public ActivityEmojiImpl(Catnip catnip, long idAsLong, String name, boolean animated)
  • Method Details

    • catnip

      public void catnip(@Nonnull Catnip catnip)
      Specified by:
      catnip in interface RequiresCatnip
    • builder

    • catnip

      public Catnip catnip()
      Description copied from interface: Entity
      Returns the catnip instance associated with this entity.
      Specified by:
      catnip in interface Entity
      Returns:
      The catnip instance of this entity.
    • idAsLong

      public long idAsLong()
      Description copied from interface: Snowflake
      The ID of this snowflake, as a long.
      Specified by:
      idAsLong in interface Snowflake
      Returns:
      Long representing the ID.
    • name

      public String name()
      Description copied from interface: Emoji
      Name of this emoji, if it's custom, or it's unicode value.
      This may be null in the case of reactions.
      Specified by:
      name in interface Emoji
      Specified by:
      name in interface HasNullableName
      Returns:
      String representing the name or unicode value.
    • animated

      public boolean animated()
      Description copied from interface: Emoji
      Whether this emoji is animated.
      Always false for unicode emoji.
      Specified by:
      animated in interface Emoji
      Returns:
      True if it's animated, false otherwise.
    • idAsLong

      public ActivityEmojiImpl idAsLong(long idAsLong)
      Returns:
      this.
    • name

      public ActivityEmojiImpl name(String name)
      Returns:
      this.
    • animated

      public ActivityEmojiImpl animated(boolean animated)
      Returns:
      this.