MessageApi.SendMessageResult

  • MessageApi.SendMessageResult is a deprecated interface used to represent the result of sending a message.

  • It contains the request ID assigned to the message and will have a status indicating success or failure.

  • On failure, the request ID will be MessageApi.UNKNOWN_REQUEST_ID.

  • The interface includes methods like getRequestId() to retrieve the message ID and getStatus() to get the status of the result.

  • Users should instead use MessageClient.sendMessage(String, String, byte[]).

public static interface MessageApi.SendMessageResult implements Result

This interface is deprecated.
See MessageClient.sendMessage(String, String, byte[]).

Contains the request id assigned to the message. On failure, the id will be MessageApi.UNKNOWN_REQUEST_ID and the status will be unsuccessful.

Public Method Summary

abstract int
getRequestId()
Returns an ID used to identify the sent message.

Inherited Method Summary

Public Methods

public abstract int getRequestId ()

Returns an ID used to identify the sent message. If Result.getStatus() is not successful, this value will be MessageApi.UNKNOWN_REQUEST_ID.