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/Group.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/models/Group.ts (limited to 'src/models/Group.ts') diff --git a/src/models/Group.ts b/src/models/Group.ts new file mode 100644 index 0000000..9b3aa6d --- /dev/null +++ b/src/models/Group.ts @@ -0,0 +1,35 @@ +import { FeatureCollection } from 'geojson'; +import MediaItem from './MediaItem'; + +export default interface Group { + /** + * ID of the group used in URLs. + */ + id: string; + + /** + * Name of the group. + */ + name?: string; + + /** + * Description of the group. + */ + + description?: string; + + /** + * Medias in the group. + */ + media: MediaItem[]; + + /** + * Geo data track info in GeoJSON format. + */ + geoData?: FeatureCollection[]; + + /** + * Metadata that can be displayed in the description. + */ + metadata?: { [key: string]: string | number }; +} -- cgit v1.2.3