-
Notifications
You must be signed in to change notification settings - Fork 1
Zone
-
↳
Zone
- _clone
- _patch
- _update
- addChildren
- createScene
- delete
- edit
- isType
- removeChildren
- setArcheType
- setChildren
- setName
• new Zone(bridge
, data
)
Name | Type |
---|---|
bridge |
Hue |
data |
ZoneGet & { metadata : { archetype : ArcheType ; name : string } } |
src/structures/NamedResource.ts:15
• data: ZoneGet
& { metadata
: { archetype
: ArcheType
; name
: string
} }
src/structures/NamedResource.ts:13
• Readonly
hue: Hue
• type: ResourceType
= ResourceType.Zone
• get
archeType(): ArcheType
NamedResource.archeType
src/structures/NamedResource.ts:24
• get
childIds(): string
[]
string
[]
• get
id(): string
string
NamedResource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
NamedResource.identifier
• get
manager(): ZoneManager
NamedResource.manager
• get
name(): string
string
NamedResource.name
src/structures/NamedResource.ts:20
• get
serviceIds(): string
[]
string
[]
▸ _clone(): Zone
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <ZoneGet > |
void
▸ _update(data
): Zone
Name | Type |
---|---|
data |
Partial <ZoneGet > |
▸ addChildren(children
): Promise
<void
>
Name | Type |
---|---|
children |
string [] |
Promise
<void
>
▸ createScene(options
): Promise
<undefined
| string
>
Name | Type |
---|---|
options |
SceneCreateOptions |
Promise
<undefined
| string
>
▸ delete(): Promise
<void
>
Promise
<void
>
▸ edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
ZoneEditOptions |
Promise
<void
>
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>
▸ removeChildren(children
): Promise
<void
>
Name | Type |
---|---|
children |
string [] |
Promise
<void
>
▸ setArcheType(archeType
): Promise
<void
>
Name | Type |
---|---|
archeType |
ArcheType |
Promise
<void
>
src/structures/NamedResource.ts:32
▸ setChildren(children
): Promise
<void
>
Name | Type |
---|---|
children |
string [] |
Promise
<void
>
▸ setName(name
): Promise
<void
>
Name | Type |
---|---|
name |
string |
Promise
<void
>