private async Task<bool> ProcessCalibrationRemoteData(string calibrationOverviewPath, string pacientId) { var calibrationOverviewSendDto = await DataManagerUtil.LoadJsonFileAsync<CalibrationOverviewSendDto>(calibrationOverviewPath); calibrationOverviewSendDto.PacientId = pacientId; var apiResponse = await ApiClient.Instance.SaveCalibrationOverview(calibrationOverviewSendDto); if (!apiResponse.Success) return false; File.Delete(calibrationOverviewPath); return true; }
private async Task<bool> ProcessMinigameRemoteData(string mingameOverviewPath, string pacientId) { var plataformOverviewSendDto = await DataManagerUtil.LoadJsonFileAsync<MinigameOverviewSendDto>(mingameOverviewPath); plataformOverviewSendDto.PacientId = pacientId; var apiResponse = await ApiClient.Instance.SaveMinigameOverview(plataformOverviewSendDto); if (!apiResponse.Success) return false; File.Delete(mingameOverviewPath); return true; }