messageSendCustomContent method
发送消息-自定义消息,customType
为自定义类型,customExtra
为扩展数据
Implementation
Future<EasyPacket<void>> messageSendCustomContent({required ObjectId sid, required int from, String? title, String? body, ObjectId? shareCardId, String? shareIconUrl, List<String>? shareHeadUrl, String? shareLinkUrl, required int customType, String? customShort, Map<String, dynamic>? customExtra}) async {
final response = await _aliveClient.websocketRequest('messageSend', data: {
'bsid': bsid,
'sid': sid,
'from': from,
'type': Constant.msgTypeCustom,
'title': title,
'body': body,
'shareCardId': shareCardId,
'shareIconUrl': shareIconUrl,
'shareHeadUrl': shareHeadUrl,
'shareLinkUrl': shareLinkUrl,
'customType': customType,
'customShort': customShort,
'customExtra': customExtra,
});
return response;
}