You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 25, 2025. It is now read-only.
-**Fetch Headlines:** Retrieve a paginated list of news headlines. Supports optional filtering by category, source, and event country.
7
+
-**Fetch Headlines:** Retrieve a paginated list of news headlines. Supports optional filtering using lists of `Category`, `Source`, and `Country` objects. Filtering logic is OR within each list and AND across different filter types (e.g., (category A OR B) AND (source X OR Y)).
8
8
-**Get Headline by ID:** Fetch a specific headline by its unique identifier.
9
9
-**Create Headline:** Add a new headline to the data source.
10
10
-**Update Headline:** Modify an existing headline in the data source.
@@ -52,11 +52,17 @@ void main() async {
52
52
final headlinesPage1 = await headlinesRepository.getHeadlines(limit: 10);
53
53
print('Page 1: ${headlinesPage1.items}');
54
54
55
-
// Fetch headlines with filtering
55
+
// Fetch headlines with filtering (Example)
56
+
// Assume you have Category, Source, Country objects available
57
+
final techCategory = Category(id: 'tech', name: 'Technology');
58
+
final bbcSource = Source(id: 'bbc', name: 'BBC News');
0 commit comments