From 3f6c5b9c30ff887a3833d7b386d22e06288a7715 Mon Sep 17 00:00:00 2001 From: Aamir Imac Date: Thu, 10 Aug 2023 10:36:08 +0300 Subject: [PATCH] Updates To 3.10 --- lib/api/dashboard_api_client.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/api/dashboard_api_client.dart b/lib/api/dashboard_api_client.dart index dfa4801..544ba71 100644 --- a/lib/api/dashboard_api_client.dart +++ b/lib/api/dashboard_api_client.dart @@ -201,13 +201,15 @@ class DashboardApiClient { }, url, postParams); } - Future setAdvertisementViewed(String masterID, int advertisementId) async { + Future setAdvertisementViewed(String masterID, int advertisementId, String ackValue) async { String url = "${ApiConsts.cocRest}Mohemm_ITG_UpdateAdvertisementAsViewed"; Map postParams = { "ItgNotificationMasterId": masterID, "EmployeeNumber": AppState().memberInformationList!.eMPLOYEENUMBER.toString(), - "ItgAdvertisement": {"advertisementId": advertisementId, "acknowledgment": true} //Mobile Id + "ItgAdvertisementId": advertisementId, + "ItgAcknowledgment": ackValue, + // "ItgAdvertisement": {"ItgAdvertisementId": advertisementId, "ItgAcknowledgment": ackValue} //Mobile Id }; postParams.addAll(AppState().postParamsJson); return await ApiClient().postJsonForObject((json) {