implement abstracts
This commit is contained in:
parent
f2cfbe4f37
commit
702f7383cb
@ -24,8 +24,13 @@ export abstract class DatabaseModel {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public abstract get(key: string): string|number|boolean;
|
||||
public abstract set(key: string, value: string|number|boolean): void;
|
||||
public get (key: string): string|number|boolean {
|
||||
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 write(): Promise<void>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user