2024-04-04 13:10:51 +02:00
|
|
|
enum OcurringInterval {
|
2024-04-03 14:38:40 +02:00
|
|
|
daily,
|
|
|
|
weekly,
|
|
|
|
monthly,
|
2024-04-04 13:10:51 +02:00
|
|
|
debug
|
2024-04-03 14:38:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class NotificationModel {
|
|
|
|
NotificationModel({
|
2024-04-04 13:10:51 +02:00
|
|
|
required this.id,
|
2024-04-03 14:38:40 +02:00
|
|
|
required this.title,
|
|
|
|
required this.body,
|
2024-04-04 13:10:51 +02:00
|
|
|
this.dateTimePushed,
|
2024-04-03 14:38:40 +02:00
|
|
|
this.scheduledFor,
|
2024-04-04 13:10:51 +02:00
|
|
|
this.recurring = false,
|
|
|
|
this.occuringInterval,
|
2024-04-03 14:38:40 +02:00
|
|
|
});
|
|
|
|
|
2024-04-04 13:10:51 +02:00
|
|
|
int id;
|
2024-04-03 14:38:40 +02:00
|
|
|
String title;
|
|
|
|
String body;
|
2024-04-04 13:10:51 +02:00
|
|
|
DateTime? dateTimePushed;
|
|
|
|
DateTime? scheduledFor;
|
|
|
|
bool recurring;
|
|
|
|
OcurringInterval? occuringInterval;
|
|
|
|
|
|
|
|
// Override toString() to provide custom string representation
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
return 'NotificationModel{id: $id, title: $title, body: $body, dateTimePushed: $dateTimePushed, scheduledFor: $scheduledFor, recurring: $recurring, occuringInterval: $occuringInterval}';
|
|
|
|
}
|
2024-04-03 14:38:40 +02:00
|
|
|
}
|