Class MessageExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Message enrichWithCid(Message $self, String newCid) Enriches the message with the given newCid.
      final static Message updateFailedMessage(Message $self, Error error) Updates a message that whose request (Edition/Delete/Reaction update...) has failed.
      final static Message updateMessageOnlineState(Message $self, Boolean isOnline) Update the online state of a message.
      final static Date getCreatedAtOrThrow(Message $self)
      final static Date getCreatedAtOrNull(Message $self)
      final static Date getCreatedAtOrDefault(Message $self, Date default)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • enrichWithCid

         final static Message enrichWithCid(Message $self, String newCid)

        Enriches the message with the given newCid. Sets the Message.cid and the Message.replyTo cid to the newCid value.

      • updateFailedMessage

         final static Message updateFailedMessage(Message $self, Error error)

        Updates a message that whose request (Edition/Delete/Reaction update...) has failed.

        Parameters:
        error - Error.
      • getCreatedAtOrThrow

         final static Date getCreatedAtOrThrow(Message $self)
        Returns:

        when the message was created or throw an exception.

      • getCreatedAtOrNull

         final static Date getCreatedAtOrNull(Message $self)
        Returns:

        when the message was created or null.