Skip to main content
Version: 5.7.0

MarkMessagesRead

Marks the specified message(s) as read.

ServiceOperation
messagingMARK_MESSAGES_READ

Method Parameters

ParameterDescription
msgboxThe box that the messages reside in.
msgIdsAn array of msgIds.

Usage

http://localhost:3000
string msgbox = "inbox";
string[] msgIds = { "msgId1", "msgId2" };
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.MessagingService.MarkMessagesRead(msgbox, msgIds, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"actual": 1,
"requested": 1
}
}
Common Error Code

Status Codes

CodeNameDescription
40601FEATURE_NOT_ENABLEDMessaging feature is not enabled for app.