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

DevicePowerManager

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

Class: DevicePowerManager

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DevicePowerManager(hue)

Parameters

Name Type
hue Hue

Inherited from

Manager.constructor

Defined in

src/managers/Manager.ts:21

Properties

cache

Readonly cache: Collection<string, DevicePower>

Inherited from

Manager.cache

Defined in

src/managers/Manager.ts:17


holds

holds: typeof DevicePower = DevicePower

Overrides

Manager.holds

Defined in

src/managers/DevicePowerManager.ts:7


hue

Readonly hue: Hue

Inherited from

Manager.hue

Defined in

src/managers/Manager.ts:16


type

type: ResourceType = ResourceType.DevicePower

Overrides

Manager.type

Defined in

src/managers/DevicePowerManager.ts:6

Methods

_add

_add(data): DevicePower

Parameters

Name Type
data any

Returns

DevicePower

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

Parameters

Name Type
id string

Returns

Promise<DevicePowerGet>

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 never

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._put

Defined in

src/managers/Manager.ts:37

hue.ts

Clone this wiki locally