MsgGetC2CReceiveMessageOpt
introduction
Get C2C receiving message option
Parameter details
overload1
Parameter name | Parameter type | Required | Description |
---|---|---|---|
user_id_list | List< string > | Required | user ID list |
callback | ValueCallback< List< GetC2CRecvMsgOptResult > > | Required | Asynchronous callback The format of json_param in the return value is json |
overload2
Parameter name | Parameter type | Required | Description |
---|---|---|---|
user_id_list | List< string > | Required | user ID list |
callback | ValueCallback< string > | Required | Asynchronous callback The format of json_param in the return value is string |
Returned template
TIMResult
The parameters of the callback function after successfully calling the API:
code:int
desc:string
json_param:
'[
{
"msg_recv_msg_opt_result_identifier" : "user1",
"msg_recv_msg_opt_result_opt" : 0,
},
{
"msg_recv_msg_opt_result_identifier" : "user2",
"msg_recv_msg_opt_result_opt" : 1,
}
]' // For the meaning of Json Key, please refer to [GetC2CRecvMsgOptResult]
user_data:string
Return value details
name | type | description |
---|---|---|
TIMResult | TIMResult | Return value of calling API |
code | int | Result error code: Error Codes |
desc | string | The description of the error. |
json_param | string | Json string. Calling different API will get different Json strings. For the meaning of Json Key, please refer to GetC2CRecvMsgOptResult |
user_data | string | User-defined data transfered by ImSDK without any processing |