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/MediaItem.ts | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/models/MediaItem.ts (limited to 'src/models/MediaItem.ts') diff --git a/src/models/MediaItem.ts b/src/models/MediaItem.ts new file mode 100644 index 0000000..de1410a --- /dev/null +++ b/src/models/MediaItem.ts @@ -0,0 +1,53 @@ +import MediaType from "./MediaType"; + +export default interface MediaItem { + /** + * Name of the media item or the file. + */ + name: string; + + /** + * Path to the media item. + */ + src: string; + + /** + * Type of the media item. Can be a "photo" or a "video". + */ + type: MediaType; + + /** + * Width of the media item in pixels. + */ + width: number; + + /** + * Height of the media item in pixels. + */ + height: number; + + /** + * Latitude where the media item was taken. + */ + latitude?: number; + + /** + * Logitude where the media item was taken. + */ + longitude?: number; + + /** + * Date and time when the media item was taken. + */ + time?: string; + + /** + * Media item thumbnail. + */ + thumbnail?: string; + + /** + * Caption on the media item. + */ + caption?: string; +} -- cgit v1.2.3