getInfo method

  1. @override
Future<bool> getInfo({
  1. List<String> include = const [],
})
override

获取用户信息

Implementation

@override
Future<bool> getInfo({List<String> include = const []}) async {
  if (objectId.isEmpty) throw Exception("objectId is empty");
  var data = await BmobNetHelper.init().get('/1/users/$objectId');
  if (data != null && data.containsKey('objectId')) {
    fromJson(data);
    return true;
  }
  return false;
}