From d399c562f5fad76ed8018c712a635f49715a8fed Mon Sep 17 00:00:00 2001 From: Steru Date: Sat, 3 Aug 2024 20:19:05 +0200 Subject: Added another filter and sort functions. Also using mock data to test. --- src/api/OlympicsAPI.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/api/OlympicsAPI.h') diff --git a/src/api/OlympicsAPI.h b/src/api/OlympicsAPI.h index 8efaa26..f1168b6 100644 --- a/src/api/OlympicsAPI.h +++ b/src/api/OlympicsAPI.h @@ -8,17 +8,10 @@ #include #include -using namespace std; +// TODO: change this to true to use the olympics api, instead of the mock date in res/mock/ +#define USE_API_REQUEST false -/* - * TODO: - * Replace api request code snippet in main with: - * - OlympicsAPI api; - QJsonObject archery = api.getSportData(api.Archery); - qDebug() << "Competitor:" << archery["units"][0]["competitors"][0]["name"].toString(); - * - */ +using namespace std; class OlympicsAPI { -- cgit v1.2.3