sdk/ts/sdk.classes.aghandler.ts
2020-03-25 15:16:03 +00:00

16 lines
454 B
TypeScript

import * as plugins from './sdk.plugins';
export abstract class AAgHandler {
public authenticationHandler: any;
/**
* a slug that separates the handler from other handlers
*/
public abstract slug: string;
public abstract handleRequest (request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
public setAuthenticationHandler(authHandler) {
this.authenticationHandler = authHandler;
}
}