From f2ecc1803f3ea294a0c6b7915b61348ed0395b26 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Wed, 16 Nov 2022 15:16:38 +0100 Subject: Remade and extended the app using React --- src/models/Trip.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/models/Trip.ts (limited to 'src/models/Trip.ts') 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; +} -- cgit v1.2.3