getAllChatRoomEntries static method
获取聊天室所有自定义属性
chatroomId
聊天室 Id
finished
回调结果,code 为 0 代表操作成功,其他值代表失败,entry 为返回的 map
此接口只支持聊天室,必须先开通聊天室属性自定义功能
Implementation
static Future<void> getAllChatRoomEntries(String chatRoomId, Function(Map? entry, int? code)? finished) async {
Map map = {"chatRoomId": chatRoomId};
Map result = await _channel.invokeMethod(RCMethodKey.GetAllChatRoomEntries, map);
int? code = result["code"];
Map? entry = result["entry"];
if (finished != null) {
finished(entry, code);
}
}