getGlobalPrivacySettings method

Future<Result<GlobalPrivacySettingsBase>> getGlobalPrivacySettings()

Get Global Privacy Settings.

ID: eb2b4cf6.

Implementation

Future<Result<GlobalPrivacySettingsBase>> getGlobalPrivacySettings() async {
  // Preparing the request.
  final request = AccountGetGlobalPrivacySettings();

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<GlobalPrivacySettingsBase>();
}