Fix local dev config and ALOTTTT OFF FLUTTER, im tired boss..
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class GuardianNotificationEntity {
|
||||
final int? id;
|
||||
final String notificationType;
|
||||
final String? content;
|
||||
final String? voiceNoteUrl;
|
||||
final int? voiceNoteDuration;
|
||||
final bool isRead;
|
||||
final DateTime? createdAt;
|
||||
|
||||
const GuardianNotificationEntity({
|
||||
this.id,
|
||||
required this.notificationType,
|
||||
this.content,
|
||||
this.voiceNoteUrl,
|
||||
this.voiceNoteDuration,
|
||||
this.isRead = false,
|
||||
this.createdAt,
|
||||
});
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import 'package:dartz/dartz.dart';
|
||||
|
||||
import '../../../../core/errors/failures.dart';
|
||||
import '../entities/guardian_notification.dart';
|
||||
|
||||
abstract class NotificationRepository {
|
||||
Future<Either<Failure, List<GuardianNotificationEntity>>> getNotifications();
|
||||
Future<Either<Failure, void>> markAllRead();
|
||||
Future<Either<Failure, void>> markOneRead(int id);
|
||||
}
|
||||
Reference in New Issue
Block a user