implement abstracts

This commit is contained in:
Timo Hocker 2020-05-02 21:07:15 +02:00
parent f2cfbe4f37
commit 702f7383cb

View File

@ -24,8 +24,13 @@ export abstract class DatabaseModel {
this.id = id; this.id = id;
} }
public abstract get(key: string): string|number|boolean; public get (key: string): string|number|boolean {
public abstract set(key: string, value: string|number|boolean): void; return this.data[key];
}
public set (key: string, value: string|number|boolean): void {
this.data[key] = value;
}
public abstract async read(): Promise<void>; public abstract async read(): Promise<void>;
public abstract async write(): Promise<void>; public abstract async write(): Promise<void>;