Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

MotionManager

github-actions[bot] edited this page Aug 11, 2023 · 2 revisions

Class: MotionManager

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MotionManager(hue)

Parameters

Name Type
hue Hue

Inherited from

Manager.constructor

Defined in

src/managers/Manager.ts:21

Properties

cache

Readonly cache: Collection<string, Motion>

Inherited from

Manager.cache

Defined in

src/managers/Manager.ts:17


holds

holds: typeof Motion = Motion

Overrides

Manager.holds

Defined in

src/managers/MotionManager.ts:7


hue

Readonly hue: Hue

Inherited from

Manager.hue

Defined in

src/managers/Manager.ts:16


type

type: ResourceType = ResourceType.Motion

Overrides

Manager.type

Defined in

src/managers/MotionManager.ts:6

Methods

_add

_add(data): Motion

Parameters

Name Type
data any

Returns

Motion

Inherited from

Manager._add

Defined in

src/managers/Manager.ts:25


_delete

_delete(id): Promise<ResourceIdentifier<ResourceType>[]>

Parameters

Name Type
id string

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._delete

Defined in

src/managers/Manager.ts:45


_get

_get(id): Promise<MotionGet>

Parameters

Name Type
id string

Returns

Promise<MotionGet>

Inherited from

Manager._get

Defined in

src/managers/Manager.ts:33


_post

_post(data): Promise<ResourceIdentifier<ResourceType>[]>

Parameters

Name Type
data never

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._post

Defined in

src/managers/Manager.ts:41


_put

_put(id, data): Promise<ResourceIdentifier<ResourceType>[]>

Parameters

Name Type
id string
data MotionPut

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._put

Defined in

src/managers/Manager.ts:37


edit

edit(id, options): Promise<void>

Parameters

Name Type
id string
options MotionEditOptions

Returns

Promise<void>

Defined in

src/managers/MotionManager.ts:9

hue.ts

Clone this wiki locally