add data for caching and modifed to know if it's a modifed image or not (to apply algorithm)
This commit is contained in:
1 parent
74ee9b7bcc
commit
31e570f573
1 file changed
+9
-3
@@ -1,13 +1,19 @@
|
|||||||
export interface ImageType {
|
export interface ImageType {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
data: string;
|
||||||
|
modifed: Map<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ImageClass implements ImageType {
|
export class ImageClass implements ImageType {
|
||||||
id: number
|
id: number;
|
||||||
name: string
|
name: string;
|
||||||
constructor(id: number, title: 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.id = id
|
||||||
this.name = title
|
this.name = title
|
||||||
|
this.data = data
|
||||||
|
this.modifed = modifed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user