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

DeviceManager

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

Class: DeviceManager

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DeviceManager(hue)

Parameters

Name Type
hue Hue

Inherited from

Manager.constructor

Defined in

src/managers/Manager.ts:21

Properties

cache

Readonly cache: Collection<string, Device>

Inherited from

Manager.cache

Defined in

src/managers/Manager.ts:17


holds

holds: typeof Device = Device

Overrides

Manager.holds

Defined in

src/managers/DeviceManager.ts:8


hue

Readonly hue: Hue

Inherited from

Manager.hue

Defined in

src/managers/Manager.ts:16


type

type: ResourceType = ResourceType.Device

Overrides

Manager.type

Defined in

src/managers/DeviceManager.ts:7

Methods

_add

_add(data): Device

Parameters

Name Type
data any

Returns

Device

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<DeviceGet>

Parameters

Name Type
id string

Returns

Promise<DeviceGet>

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 DevicePut

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._put

Defined in

src/managers/Manager.ts:37


delete

delete(id): Promise<void>

Parameters

Name Type
id string

Returns

Promise<void>

Defined in

src/managers/DeviceManager.ts:20


edit

edit(id, options): Promise<void>

Parameters

Name Type
id string
options ArcheTypeResourceEditOptions

Returns

Promise<void>

Defined in

src/managers/DeviceManager.ts:14


identify

identify(id): Promise<void>

Parameters

Name Type
id string

Returns

Promise<void>

Defined in

src/managers/DeviceManager.ts:10

hue.ts

Clone this wiki locally