|
|
|
|
@ -106,7 +106,7 @@ class DashboardApiClient {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Mark Attendance
|
|
|
|
|
Future<GenericResponseModel?> markAttendance({String lat = "0", String? long = "0", required int pointType, String nfcValue = "", bool isGpsRequired = false, String QRValue = ""}) async {
|
|
|
|
|
Future<GenericResponseModel?> markAttendance({String lat = "0", String? long = "0", required int pointType, String nfcValue = "", bool isGpsRequired = false, String QRValue = "", String payrollCode = ""}) async {
|
|
|
|
|
String url = "${ApiConsts.swpRest}AuthenticateAndSwipeUserSupportNFC";
|
|
|
|
|
var uuid = Uuid();
|
|
|
|
|
// Generate a v4 (random) id
|
|
|
|
|
@ -120,7 +120,8 @@ class DashboardApiClient {
|
|
|
|
|
"PointType": pointType, // NFC=2, Wifi = 3, QR= 1,
|
|
|
|
|
"NFCValue": nfcValue,
|
|
|
|
|
"WifiValue": pointType == 3 ? "100" : "",
|
|
|
|
|
"IsGpsRequired": isGpsRequired
|
|
|
|
|
"IsGpsRequired": isGpsRequired,
|
|
|
|
|
"PayrollCodeStr": AppState().postParamsObject?.payrollCodeStr.toString() ?? ""
|
|
|
|
|
};
|
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
|
|