mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Filters working on notifications
This commit is contained in:
@@ -66,13 +66,17 @@ class BackendAPI {
|
||||
late String _apiKey;
|
||||
late Dio _dio;
|
||||
|
||||
Future<List<Notification>> listNotifications(int offset) async {
|
||||
Future<List<Notification>> listNotifications(bool? isNew, int offset) async {
|
||||
print('About to call /notifications');
|
||||
|
||||
Response response;
|
||||
response = await _dio.get(
|
||||
'/notifications',
|
||||
queryParameters: {'page_offset': offset, 'page_limit': _pageSize},
|
||||
queryParameters: {
|
||||
'is_new': isNew ?? '',
|
||||
'page_offset': offset,
|
||||
'page_limit': _pageSize,
|
||||
},
|
||||
);
|
||||
|
||||
print('Received: ' + response.data.toString());
|
||||
|
||||
Reference in New Issue
Block a user