callLegacy method
Executes the use case to get validated proxies with legacy parameters
This is kept for backward compatibility
count is the number of proxies to return
onlyHttps filters to only return HTTPS proxies
countries filters to only return proxies from specific countries
onProgress is a callback for progress updates during validation
Implementation
@Deprecated('Use call with ProxyFilterOptions instead')
Future<List<Proxy>> callLegacy({
int count = 10,
bool onlyHttps = false,
List<String>? countries,
void Function(int completed, int total)? onProgress,
}) {
return repository.getValidatedProxiesLegacy(
count: count,
onlyHttps: onlyHttps,
countries: countries,
onProgress: onProgress,
);
}