DeleteSentMessage
public BackndReturnObject DeleteSentMessage(string messageIndate);
Parameter
Value | Type | Description |
---|---|---|
messageIndate | string | indate of the sent message to delete |
Description
Deletes a message from the list of sent messages.
Even if a sent message is deleted, the recipient's list of received messages is preserved.
Example
Synchronous
//Get the inDate of the message to delete.
BackndReturnObject bro = Backnd.DirectMessage.GetSentMessageList();
string messageIndate = bro.Rows()[0]["inDate"]["S"].ToString();
Backnd.DirectMessage.DeleteSentMessage(messageIndate);
Asynchronous
//Get the inDate of the message to delete.
Backnd.DirectMessage.GetSentMessageList(callback =>
{
string messageIndate = callback.Rows()[0]["inDate"]["S"].ToString();
Backnd.DirectMessage.DeleteSentMessage(messageIndate, callback2 =>
{
//Post-process
});
});
Return cases
Success cases
When the deletion is successful
statusCode : 204
Error cases
When there is no message for the corresponding messageIndate
statusCode : 404
errorCode : NotFoundException