From 31e570f57350613817bab8d6df8de07e515b2de6 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Thu, 16 Mar 2023 01:33:14 +0100 Subject: [PATCH] add data for caching and modifed to know if it's a modifed image or not (to apply algorithm) --- frontend/src/image.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/image.ts b/frontend/src/image.ts index 3269cba..f94f2fe 100644 --- a/frontend/src/image.ts +++ b/frontend/src/image.ts @@ -1,13 +1,19 @@ export interface ImageType { id: number; name: string; + data: string; + modifed: Map; } export class ImageClass implements ImageType { - id: number - name: string - constructor(id: number, title: string) { + id: number; + name: string; + data: string; + modifed: Map; + constructor(id: number, title: string, data: string = "", modifed: Map = new Map()) { this.id = id this.name = title + this.data = data + this.modifed = modifed } } \ No newline at end of file