Small cleanup

This commit is contained in:
Daniel Kluge
2023-10-30 14:31:32 +01:00
parent 4c7417d647
commit 8b52ffd51b
6 changed files with 21 additions and 33 deletions
+6 -10
View File
@@ -2,17 +2,13 @@ import { types } from "@aas-core-works/aas-core3.0-typescript";
import type { Request, OnRequestCallback } from "types/requests";
export default abstract class AASInterfaceServer<ConfigInterface> {
protected abstract readonly name: string;
protected config: ConfigInterface;
protected abstract readonly supportsSubscriptions: boolean;
protected readonly aas: types.Environment;
protected onRequestCallback: OnRequestCallback
public abstract readonly name: string;
public abstract readonly supportsSubscriptions: boolean;
constructor(config: ConfigInterface, aas: types.Environment, onRequestCallback: OnRequestCallback) {
this.config = config;
this.aas = aas;
this.onRequestCallback = onRequestCallback;
}
constructor(
protected readonly config: ConfigInterface,
protected readonly aas: types.Environment,
protected readonly onRequestCallback: OnRequestCallback) {}
public abstract prepare(): void;
public abstract run(): void;