Class OutgoingTextChatMessageManipulationResult

java.lang.Object
com.novomind.ecom.api.iagent.manipulator.result.OutgoingTextChatMessageManipulationResult

public final class OutgoingTextChatMessageManipulationResult extends Object

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

Since:
12.1
  • Constructor Details

    • 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 Details

    • getUnmodifiedResult

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

      public 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