Interface UnbluMessageCustomActionInvocation
-
- All Superinterfaces:
UnbluCustomActionInvocation
public interface UnbluMessageCustomActionInvocation extends UnbluCustomActionInvocation
An extension of theUnbluCustomActionInvocation
interface for custom actions invoked on a message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMessageId()
Gets the ID of the message the action was invoked on.java.lang.String
getMessageSenderPersonDisplayName()
java.lang.String
getMessageSenderPersonId()
java.lang.String
getMessageText()
Gets the text of the message that the action was invoked on.java.lang.String
getMessageType()
Gets the type of the message the action was invoked on.-
Methods inherited from interface com.unblu.sdk.core.conversation.customaction.UnbluCustomActionInvocation
geIinvocationId, getConversationId, getInvocationTimestamp, getInvokingPersonDisplayName, getInvokingPersonId, getKey
-
-
-
-
Method Detail
-
getMessageId
java.lang.String getMessageId()
Gets the ID of the message the action was invoked on.- Returns:
- The ID of the message as a string.
-
getMessageType
java.lang.String getMessageType()
Gets the type of the message the action was invoked on. The value returned is one of the following:- TEXT
- SYSTEM
- FILE
- CARD
- LIST
- APPROVAL_REQUEST
- MULTICHOICE_QUESTION/
- RATING_QUESTION
- TEXT_QUESTION
- REPLY
- QUESTION_ABORTED
- RECORDING_AVAILABLE
- Returns:
- A string representation of the message's type of the message
-
getMessageSenderPersonId
java.lang.String getMessageSenderPersonId()
- Returns:
- The ID of person who sent the message that the action was invoked on, as a string
-
getMessageSenderPersonDisplayName
java.lang.String getMessageSenderPersonDisplayName()
- Returns:
- The display name of the person who sent the message that the action was invoked on, as a string
-
getMessageText
java.lang.String getMessageText()
Gets the text of the message that the action was invoked on. If the message type contains complex data such as a file, the fallback text for the message type is returned.- Returns:
- The text of the message that the action was invoked on, as a string
-
-