Class ThreadMetadataImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.thread.ThreadMetadataImpl
-
- All Implemented Interfaces:
ThreadMetadata
public class ThreadMetadataImpl extends java.lang.Object implements ThreadMetadata
-
-
Constructor Summary
Constructors Constructor Description ThreadMetadataImpl(com.fasterxml.jackson.databind.JsonNode data)
Creates a new thread metadata instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Instant
getArchiveTimestamp()
int
getAutoArchiveDuration()
java.util.Optional<java.time.Instant>
getCreationTimestamp()
boolean
isArchived()
java.util.Optional<java.lang.Boolean>
isInvitable()
boolean
isLocked()
void
setArchived(boolean archived)
Sets the archived status of the thread.void
setArchiveTimestamp(java.time.Instant archiveTimestamp)
Sets the archive timestamp of the thread.void
setAutoArchiveDuration(int autoArchiveDuration)
Sets the auto archive duration of the thread.void
setInvitable(java.lang.Boolean invitable)
Sets the invitable status of the thread.void
setLocked(boolean locked)
Sets the locked status of the thread.
-
-
-
Method Detail
-
isArchived
public boolean isArchived()
- Specified by:
isArchived
in interfaceThreadMetadata
-
getAutoArchiveDuration
public int getAutoArchiveDuration()
- Specified by:
getAutoArchiveDuration
in interfaceThreadMetadata
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceThreadMetadata
-
getArchiveTimestamp
public java.time.Instant getArchiveTimestamp()
- Specified by:
getArchiveTimestamp
in interfaceThreadMetadata
-
isInvitable
public java.util.Optional<java.lang.Boolean> isInvitable()
- Specified by:
isInvitable
in interfaceThreadMetadata
-
getCreationTimestamp
public java.util.Optional<java.time.Instant> getCreationTimestamp()
- Specified by:
getCreationTimestamp
in interfaceThreadMetadata
-
setArchived
public void setArchived(boolean archived)
Sets the archived status of the thread.- Parameters:
archived
- The new archived status.
-
setAutoArchiveDuration
public void setAutoArchiveDuration(int autoArchiveDuration)
Sets the auto archive duration of the thread.- Parameters:
autoArchiveDuration
- The new auto archive duration.
-
setLocked
public void setLocked(boolean locked)
Sets the locked status of the thread.- Parameters:
locked
- The new locked status.
-
setArchiveTimestamp
public void setArchiveTimestamp(java.time.Instant archiveTimestamp)
Sets the archive timestamp of the thread.- Parameters:
archiveTimestamp
- The new archive timestamp.
-
setInvitable
public void setInvitable(java.lang.Boolean invitable)
Sets the invitable status of the thread.- Parameters:
invitable
- The new invitable status.
-
-