Class ThreadChannelImpl.ThreadMetadataImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.ThreadChannelImpl.ThreadMetadataImpl
- All Implemented Interfaces:
ThreadChannel.ThreadMetadata
,Timestamped
- Enclosing class:
- ThreadChannelImpl
public static class ThreadChannelImpl.ThreadMetadataImpl
extends Object
implements ThreadChannel.ThreadMetadata, Timestamped
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionThreadMetadataImpl
(boolean locked, boolean archived, long archiverIdAsLong, String archiveTimestamp, int autoArchiveDuration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
archived()
archived
(boolean archived) long
archiverIdAsLong
(long archiverIdAsLong) archiveTimestamp
(String archiveTimestamp) int
Can currently only be set to: 60, 1440, 4320, 10080.autoArchiveDuration
(int autoArchiveDuration) builder()
boolean
locked()
locked
(boolean locked) 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.channel.ThreadChannel.ThreadMetadata
archiverId
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
ThreadMetadataImpl
public ThreadMetadataImpl() -
ThreadMetadataImpl
public ThreadMetadataImpl(boolean locked, boolean archived, long archiverIdAsLong, String archiveTimestamp, int autoArchiveDuration)
-
-
Method Details
-
archiveTimestamp
- Specified by:
archiveTimestamp
in interfaceThreadChannel.ThreadMetadata
-
builder
-
locked
public boolean locked()- Specified by:
locked
in interfaceThreadChannel.ThreadMetadata
-
archived
public boolean archived()- Specified by:
archived
in interfaceThreadChannel.ThreadMetadata
-
archiverIdAsLong
public long archiverIdAsLong()- Specified by:
archiverIdAsLong
in interfaceThreadChannel.ThreadMetadata
-
autoArchiveDuration
public int autoArchiveDuration()Description copied from interface:ThreadChannel.ThreadMetadata
Can currently only be set to: 60, 1440, 4320, 10080.- Specified by:
autoArchiveDuration
in interfaceThreadChannel.ThreadMetadata
-
locked
- Returns:
this
.
-
archived
- Returns:
this
.
-
archiverIdAsLong
- Returns:
this
.
-
archiveTimestamp
- Returns:
this
.
-
autoArchiveDuration
- Returns:
this
.
-