aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Group.ts')
-rw-r--r--src/models/Group.ts35
1 files changed, 35 insertions, 0 deletions
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 };
+}