public Task SetCalibrationAsync(CalibrationData calibration) { calibration.ThrowIf(c => c.DeviceFamilyName != FamilyName, nameof(calibration), "Calibration data is for a different family of devices."); _tracker.ApplyCalibrationData(new Tobii.Research.CalibrationData(calibration.Data)); return(Task.FromResult(true)); }
public Task SetCalibrationAsync(CalibrationData calibrationData) { calibrationData.ThrowIf(c => c.DeviceFamilyName != FamilyName, nameof(calibrationData), "Calibration data is for the different family of devices."); IEnumerable <CalibrationPointResult> points = CalibrationSerializer.Deserialize(calibrationData.Data); var calibration = _calibration.Value; calibration.Clear(); calibration.AddRange(points); return(Task.FromResult(true)); }