Class IncomingTextChatMessageManipulationResult


  • public final class IncomingTextChatMessageManipulationResult
    extends java.lang.Object

    Represents the result of the optional incoming text chat message manipulation by an IncomingChatMessageManipulator.

    Since:
    12.1
    • Constructor Detail

      • IncomingTextChatMessageManipulationResult

        public IncomingTextChatMessageManipulationResult​(TextChatMessage textChatMessage)
        Creates an IncomingTextChatMessageManipulationResult with a manipulated text chat message
        Parameters:
        textChatMessage - the manipulated text chat message
        Since:
        12.1
    • Method Detail

      • getUnmodifiedResult

        public static IncomingTextChatMessageManipulationResult getUnmodifiedResult()
        Provides an IncomingTextChatMessageManipulationResult without any modifications
        Returns:
        an IncomingTextChatMessageManipulationResult without any modifications
        Since:
        12.1
      • getTextChatMessage

        public java.util.Optional<TextChatMessage> getTextChatMessage()
        Returns:
        an Optional with the manipulated text chat message, or an empty Optional if no manipulation has been done.
        Since:
        12.1