Neda/admin_panel/lib/services/interfaces/notification_service.dart

12 lines
357 B
Dart

import '../../models/notification_model.dart';
typedef NotificationList = List<NotificationModel>;
abstract class NotificationService {
/// Returns all notifications for admin.
Future<NotificationList> getNotifications();
/// Broadcasts a public notification to all users.
Future<void> sendPublicNotification(String title, String description);
}