summaryrefslogtreecommitdiff
path: root/src/api/OlympicsAPI.h
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 23:58:46 +0200
commit88b1b119dfa35f36b64d81dbe6c84f46d86455c5 (patch)
tree864ba9c747ef86d61b6aeb01e8985676f906bd3e /src/api/OlympicsAPI.h
parentf24b4dcbd11336dabfd146c656e2437e4393b225 (diff)
Compacted competitors into one object, deleted API class (now in sportmodel).
Diffstat (limited to 'src/api/OlympicsAPI.h')
-rw-r--r--src/api/OlympicsAPI.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/api/OlympicsAPI.h b/src/api/OlympicsAPI.h
deleted file mode 100644
index a301cf8..0000000
--- a/src/api/OlympicsAPI.h
+++ /dev/null
@@ -1,72 +0,0 @@
-
-#pragma once
-
-#define API_LINK "https://sph-s-api.olympics.com/summer/schedules/api/ENG/schedule/discipline/"
-
-#include <string>
-#include <QJsonObject>
-
-// TODO: change this to true to use the olympics api, instead of the mock date in res/mock/
-#define USE_API_REQUEST false
-
-using namespace std;
-
-class OlympicsAPI {
-
-public:
-
- enum Disciplines {
- AquaticsArtisticSwimming,
- AquaticsDiving,
- AquaticsMarathonSwimming,
- AquaticsSwimming,
- AquaticsWaterPolo,
- Archery,
- Athletics,
- Badminton,
- Basketball3v3,
- Basketball,
- Boxing,
- Breaking,
- CanoeingSprint,
- CanoeingSlalom,
- CyclingBMXFreestyle,
- CyclingBMXRacing,
- CyclingMaountainBike,
- CyclingRoad,
- CyclingTrack,
- EquestrianDressage,
- EquestrianEventing,
- EquestrianJumping,
- Fencing,
- FieldHockey,
- Football,
- Golf,
- GymnasticsArtistic,
- GymnasticsRhythmic,
- GymnasticsTrampoline,
- HandballIndoor,
- Judo,
- ModernPentathlon,
- Rowing,
- Rugby7,
- Sailing,
- Shooting,
- Skateboarding,
- SportClimbing,
- Surfing,
- TableTennis,
- Taekwondo,
- Tennis,
- Triathlon,
- VolleyballBeach,
- VolleyballIndoor,
- Weightlifting,
- WrestlingFreestyle,
- WrestlingGrecoRoman
- };
-
- QJsonObject getSportData(Disciplines sport);
- string getDisciplineShort(Disciplines sport);
-
-};