diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-11-18 23:52:50 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-11-18 23:52:50 -0800 |
commit | c7d241b5b30f78d7febf52ac8a8fce1befd05872 (patch) | |
tree | 4e2351b84e9c3f7dec35743b825174452594bb28 | |
parent | 8585f4408fbf5fe7c88833ffe606e6abed566856 (diff) |
Implement actiontec stubs
-rw-r--r-- | src/adapters/actiontec-t3200m/actiontec-t3200m.ts | 19 | ||||
-rw-r--r-- | src/adapters/actiontec-t3200m/index.ts | 2 |
2 files changed, 19 insertions, 2 deletions
diff --git a/src/adapters/actiontec-t3200m/actiontec-t3200m.ts b/src/adapters/actiontec-t3200m/actiontec-t3200m.ts index 0bc2391..cea7172 100644 --- a/src/adapters/actiontec-t3200m/actiontec-t3200m.ts +++ b/src/adapters/actiontec-t3200m/actiontec-t3200m.ts @@ -1,2 +1,19 @@ import { Adapter } from '../../models/adapter.model' -export class ActiontecTS3200M implements Adapter {} +import { Context } from '../../models/context.model' + +export class ActiontecT3200M implements Adapter { + constructor(private ctx: Context) {} + isOnline = async (): Promise<boolean> => { + return true + } + uptime = async (): Promise<number> => { + return 5 + } + nConnectedClients = async (): Promise<number> => { + return 2 + } + + leaseTime = async (): Promise<number> => { + return 2 + } +} diff --git a/src/adapters/actiontec-t3200m/index.ts b/src/adapters/actiontec-t3200m/index.ts index fada54a..641f5cf 100644 --- a/src/adapters/actiontec-t3200m/index.ts +++ b/src/adapters/actiontec-t3200m/index.ts @@ -1 +1 @@ -export { ActiontecTS3200M } from './actiontec-t3200m' +export { ActiontecT3200M } from './actiontec-t3200m' |