diff options
Diffstat (limited to 'src/models/Trip.ts')
-rw-r--r-- | src/models/Trip.ts | 28 |
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;
+}
|