This commit is contained in:
Hamza Aleghwairyeen
2024-04-08 20:40:02 +03:00
parent e59e94a04e
commit bc92709f9c
5 changed files with 18 additions and 11 deletions

View File

@@ -47,6 +47,15 @@ class NotificationCaptainController extends GetxController {
);
}
addNotificationCaptain(String driverId, title, body, isPin) async {
await CRUD().post(link: AppLink.addNotificationCaptain, payload: {
'driverID': driverId,
'title': title,
'body': body,
'isPin': isPin
});
}
@override
void onInit() {
getNotifications();