Class ChannelPinsUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.ChannelPinsUpdateImpl
- All Implemented Interfaces:
ChannelPinsUpdate
,Entity
,HasChannel
,Timestamped
,RequiresCatnip
public class ChannelPinsUpdateImpl
extends Object
implements ChannelPinsUpdate, RequiresCatnip, Timestamped
- Since:
- 10/9/18.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionChannelPinsUpdateImpl
(Catnip catnip, long channelIdAsLong, String lastPinTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) lastPinTimestamp
(String lastPinTimestamp) 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.HasChannel
channelId
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
ChannelPinsUpdateImpl
public ChannelPinsUpdateImpl() -
ChannelPinsUpdateImpl
-
-
Method Details
-
lastPinTimestamp
- Specified by:
lastPinTimestamp
in interfaceChannelPinsUpdate
- Returns:
- The timestamp of the last pinned message in the channel. May be
null
.
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
channelIdAsLong
- Returns:
this
.
-
lastPinTimestamp
- Returns:
this
.
-