getBlackListStatus static method
获取特定用户的黑名单状态
userId
需要加入黑名单的用户 id
finished
回调结果,code 为 0 代表操作成功,其他值代表失败
blackListStatus
黑名单状态,0 代表在黑名单,1 代表不在黑名单,详细参见 RCBlackListStatus
Implementation
static Future<void> getBlackListStatus(String userId, Function(int? blackListStatus, int? code)? finished) async {
Map map = {"userId": userId};
Map result = await _channel.invokeMethod(RCMethodKey.GetBlackListStatus, map);
int? status = result["status"];
int? code = result["code"];
if (finished != null) {
finished(status, code);
}
}