Small cleanup
This commit is contained in:
+6
-10
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user