diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-11-19 00:09:12 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-11-19 00:09:12 -0800 |
commit | c0169b5c4524136c5f1a5ec3374dbd27562b5442 (patch) | |
tree | 59a2fe78580ff122fb8ab39996a37a51db750d6f | |
parent | 1a38094d8aa8b111956ecc5bf7cce1e40f8112c7 (diff) |
Add name property
-rw-r--r-- | src/adapters/actiontec-t3200m/actiontec-t3200m.ts | 1 | ||||
-rw-r--r-- | src/models/adapter.model.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/adapters/actiontec-t3200m/actiontec-t3200m.ts b/src/adapters/actiontec-t3200m/actiontec-t3200m.ts index cea7172..126e1f5 100644 --- a/src/adapters/actiontec-t3200m/actiontec-t3200m.ts +++ b/src/adapters/actiontec-t3200m/actiontec-t3200m.ts @@ -2,6 +2,7 @@ import { Adapter } from '../../models/adapter.model' import { Context } from '../../models/context.model' export class ActiontecT3200M implements Adapter { + name = 'ActiontecT3200M' constructor(private ctx: Context) {} isOnline = async (): Promise<boolean> => { return true diff --git a/src/models/adapter.model.ts b/src/models/adapter.model.ts index ed4f13a..d7d2efe 100644 --- a/src/models/adapter.model.ts +++ b/src/models/adapter.model.ts @@ -13,6 +13,7 @@ import { Context } from './context.model' * or connect in each of these methods) */ export interface Adapter { + name: string isOnline(): Promise<boolean> uptime(): Promise<number> // seconds nConnectedClients(): Promise<number> |