Class OutgoingTextChatMessageManipulationResult


  • public final class OutgoingTextChatMessageManipulationResult
    extends java.lang.Object

    Represents the result of the optional outgoing text chat message manipulation by an OutgoingChatMessageManipulator.

    Since:
    12.1
    • Constructor Detail

      • OutgoingTextChatMessageManipulationResult

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

      • getUnmodifiedResult

        public static OutgoingTextChatMessageManipulationResult getUnmodifiedResult()
        Provides an OutgoingTextChatMessageManipulationResult without any modifications
        Returns:
        an OutgoingTextChatMessageManipulationResult 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