submitBatchSuggestions method
Submit multiple suggestions in batch
Implementation
Future<int> submitBatchSuggestions(
List<PackageSuggestion> suggestions,
) async {
int successCount = 0;
for (final suggestion in suggestions) {
final success = await submitSuggestion(
packageName: suggestion.packageName,
categories: suggestion.categories,
notes: suggestion.notes,
);
if (success) {
successCount++;
}
// Add small delay to be polite to the API
await Future.delayed(const Duration(milliseconds: 100));
}
return successCount;
}