-
Notifications
You must be signed in to change notification settings - Fork 1
GroupedLightManager
Manager for all Hue grouped lights
-
ResourceManager
<GroupedLight
,ApiGroupedLight
>↳
GroupedLightManager
• new GroupedLightManager(bridge
)
Name | Type |
---|---|
bridge |
Bridge |
src/managers/GroupedLightManager.ts:11
• Readonly
bridge: Bridge
The bridge this manager belongs to
src/managers/ResourceManager.ts:17
• cache: Collection
<string
, GroupedLight
>
• Protected
makeCache: (this
: Manager
<GroupedLight
, ApiGroupedLight
>, data
: ApiGroupedLight
) => GroupedLight
▸ (this
, data
): GroupedLight
Name | Type |
---|---|
this |
Manager <GroupedLight , ApiGroupedLight > |
data |
ApiGroupedLight |
• Protected
resolveId: (this
: Manager
<GroupedLight
, ApiGroupedLight
>, data
: ApiGroupedLight
) => string
▸ (this
, data
): string
Name | Type |
---|---|
this |
Manager <GroupedLight , ApiGroupedLight > |
data |
ApiGroupedLight |
string
• Protected
route: Route
src/managers/ResourceManager.ts:19
▸ _add(data
): GroupedLight
Adds or updates a resource in the cache
internal
Name | Type |
---|---|
data |
ApiGroupedLight |
▸ fetch(id?
): Promise
<boolean
| void
>
Fetches a specific resource from the bridge
internal
Name | Type |
---|---|
id? |
string |
Promise
<boolean
| void
>
src/managers/ResourceManager.ts:32
▸ resolve(resolvable
): GroupedLight
Resolves a resolvable to a resource
Name | Type |
---|---|
resolvable |
string | GroupedLight
|