add data for caching and modifed to know if it's a modifed image or not (to apply algorithm)

This commit is contained in:
Theophyl Hoguet committed 2023-03-16 01:33:14 +01:00
1 parent 74ee9b7bcc
commit 31e570f573
1 file changed
+9 -3
+9 -3
View File
@@ -1,13 +1,19 @@
export interface ImageType {
id: number;
name: string;
data: string;
modifed: Map<string, string>;
}
export class ImageClass implements ImageType {
id: number
name: string
constructor(id: number, title: string) {
id: number;
name: string;
data: string;
modifed: Map<string, string>;
constructor(id: number, title: string, data: string = "", modifed: Map<string, string> = new Map<string, string>()) {
this.id = id
this.name = title
this.data = data
this.modifed = modifed
}
}