send Message
Sends a message in the session.
Return
AxpResult containing the result of the operation. This will be an AxpSuccessResult if the message is sent successfully, or an AxpFailureResult if an error occurs.
Parameters
The message text to send. This must be a valid string.
The ID of the parent message if applicable. This is optional.
Sends a message in the session asynchronously with a response handler.
Parameters
The message text to send. This must be a valid string.
The ID of the parent message if applicable. This is optional.
The response handler for asynchronous processing. This handler will be called with the result of the operation.
Sends a message in the conversation.
This is a suspending function that sends a message in the conversation. The message is represented by a MessageBody object.
Return
AxpResult containing the result of the operation. This will be an AxpSuccessResult if the message is sent successfully, or an AxpFailureResult if an error occurs.
Parameters
The message to send. This must be a valid MessageBody object.
The ID of the parent message if applicable. This is optional.
Sends a message in the conversation asynchronously.
This function sends a message in the conversation asynchronously. The message is represented by a MessageBody object. The result of the operation is handled by a ResponseHandler.
Parameters
The message to send. This must be a valid MessageBody object.
The response handler for asynchronous processing. This handler will be called with the result of the operation.
The ID of the parent message if applicable. This is optional.
Throws
if the given inputs are not valid.
if the session is not found.