aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <marcin@zelent.net>2022-11-16 15:16:38 +0100
committerMarcin Zelent <marcin@zelent.net>2022-11-16 15:16:38 +0100
commitf2ecc1803f3ea294a0c6b7915b61348ed0395b26 (patch)
treee8c6fb1350ae4f659b3f9ef8d17157158b974b16 /src/models/Trip.ts
parentefb64f24d6200a39870c0e8966ab4f87e07c93a9 (diff)
Remade and extended the app using React
Diffstat (limited to 'src/models/Trip.ts')
-rw-r--r--src/models/Trip.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/models/Trip.ts b/src/models/Trip.ts
new file mode 100644
index 0000000..7f92669
--- /dev/null
+++ b/src/models/Trip.ts
@@ -0,0 +1,28 @@
+import Group from './Group';
+
+export default interface Trip {
+ /**
+ * ID of the trip, used internally within the application.
+ */
+ id: string;
+
+ /**
+ * Name of the trip, displayed to the user.
+ */
+ name: string;
+
+ /**
+ * Groups the trip is split into.
+ */
+ groups?: Group[];
+
+ /**
+ * URL to a JSON file containing data for the trip.
+ */
+ url: string;
+
+ /**
+ * Property indicating if the trip data has been already downloaded.
+ */
+ downloaded: boolean;
+}