|
|
|
@ -201,13 +201,15 @@ class DashboardApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, 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";
|
|
|
|
String url = "${ApiConsts.cocRest}Mohemm_ITG_UpdateAdvertisementAsViewed";
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"ItgNotificationMasterId": masterID,
|
|
|
|
"ItgNotificationMasterId": masterID,
|
|
|
|
"EmployeeNumber": AppState().memberInformationList!.eMPLOYEENUMBER.toString(),
|
|
|
|
"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);
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
|