Class ThreadMetadataImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadMetadataImpl​(com.fasterxml.jackson.databind.JsonNode data)
      Creates a new thread metadata instance.
    • Constructor Detail

      • ThreadMetadataImpl

        public ThreadMetadataImpl​(com.fasterxml.jackson.databind.JsonNode data)
        Creates a new thread metadata instance.
        Parameters:
        data - The json data of the thread metadata.
    • Method Detail

      • isInvitable

        public java.util.Optional<java.lang.Boolean> isInvitable()
        Specified by:
        isInvitable in interface ThreadMetadata
      • 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.