Class TypingUserImpl
java.lang.Object
com.mewna.catnip.entity.impl.user.TypingUserImpl
- All Implemented Interfaces:
Entity
,GuildEntity
,HasChannel
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
,TypingUser
- Since:
- 10/6/18.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionTypingUserImpl
(Catnip catnip, long idAsLong, long channelIdAsLong, long guildIdAsLong, long timestamp) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) 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) long
timestamp
(long timestamp) 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.HasChannel
channelId
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
-
TypingUserImpl
public TypingUserImpl() -
TypingUserImpl
public TypingUserImpl(Catnip catnip, long idAsLong, long channelIdAsLong, long guildIdAsLong, long timestamp)
-
-
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. -
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
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.
-
timestamp
public long timestamp()- Specified by:
timestamp
in interfaceTypingUser
- Returns:
- The time the typing started at.
-
idAsLong
- Returns:
this
.
-
channelIdAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
timestamp
- Returns:
this
.
-