getBlockListFromServer method

  1. @Deprecated('Use fetchBlockIds instead.')
Future<List<String>> getBlockListFromServer()

~english Gets the block list from the server.

Return The block list obtained from the server.

Throws A description of the exception. See EMError. ~end

~chinese 从服务器获取黑名单列表。

Return 该方法调用成功会返回黑名单列表。

Throws 如果有方法调用的异常会在这里抛出,可以看到具体错误原因。请参见 EMError。 ~end

Implementation

@Deprecated('Use fetchBlockIds instead.')

/// ~english
/// Gets the block list from the server.
///
/// **Return** The block list obtained from the server.
///
/// **Throws** A description of the exception. See [EMError].
/// ~end
///
/// ~chinese
/// 从服务器获取黑名单列表。
///
/// **Return** 该方法调用成功会返回黑名单列表。
///
/// **Throws**  如果有方法调用的异常会在这里抛出,可以看到具体错误原因。请参见 [EMError]。
/// ~end
Future<List<String>> getBlockListFromServer() async {
  return Client.instance.contactManager.getBlockListFromServer();
}