setBioDeviceInfo method

Future<void> setBioDeviceInfo(
  1. NextJob data
)

Implementation

Future<void> setBioDeviceInfo(NextJob data) async {
  if(data.biometricDeviceUuid.isNotEmpty && data.biometricSecretKey.isNotEmpty) {
    final prefs = await SharedPreferences.getInstance();
    prefs.setString("biometric_device_uuid", data.biometricDeviceUuid);
    prefs.setString("biometric_secret_key", data.biometricSecretKey);
    prefs.setInt("server_unixtime", data.serverUnixtime);
  }
}