Class TypingUserImpl

java.lang.Object
com.mewna.catnip.entity.impl.user.TypingUserImpl
All Implemented Interfaces:
Entity, GuildEntity, HasChannel, HasGuild, Snowflake, Timestamped, RequiresCatnip, TypingUser

public class TypingUserImpl extends Object implements TypingUser, RequiresCatnip
Since:
10/6/18.
Author:
amy
  • Constructor Details

    • TypingUserImpl

      public TypingUserImpl()
    • TypingUserImpl

      public TypingUserImpl(Catnip catnip, long idAsLong, long channelIdAsLong, long guildIdAsLong, long timestamp)
  • Method Details

    • catnip

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

      public static TypingUserImpl.TypingUserImplBuilder 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.
    • channelIdAsLong

      public long channelIdAsLong()
      Specified by:
      channelIdAsLong in interface HasChannel
    • guildIdAsLong

      public long guildIdAsLong()
      Description copied from interface: HasGuild
      The id of the guild this entity is from.
      Specified by:
      guildIdAsLong in interface HasGuild
      Returns:
      Long representing the guild ID.
    • timestamp

      public long timestamp()
      Specified by:
      timestamp in interface TypingUser
      Returns:
      The time the typing started at.
    • idAsLong

      public TypingUserImpl idAsLong(long idAsLong)
      Returns:
      this.
    • channelIdAsLong

      public TypingUserImpl channelIdAsLong(long channelIdAsLong)
      Returns:
      this.
    • guildIdAsLong

      public TypingUserImpl guildIdAsLong(long guildIdAsLong)
      Returns:
      this.
    • timestamp

      public TypingUserImpl timestamp(long timestamp)
      Returns:
      this.