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

ZoneManager

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

Class: ZoneManager

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ZoneManager(hue)

Parameters

Name Type
hue Hue

Inherited from

Manager.constructor

Defined in

src/managers/Manager.ts:21

Properties

cache

Readonly cache: Collection<string, Zone>

Inherited from

Manager.cache

Defined in

src/managers/Manager.ts:17


holds

holds: typeof Zone = Zone

Overrides

Manager.holds

Defined in

src/managers/ZoneManager.ts:8


hue

Readonly hue: Hue

Inherited from

Manager.hue

Defined in

src/managers/Manager.ts:16


type

type: ResourceType = ResourceType.Zone

Overrides

Manager.type

Defined in

src/managers/ZoneManager.ts:7

Methods

_add

_add(data): Zone

Parameters

Name Type
data any

Returns

Zone

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

Parameters

Name Type
id string

Returns

Promise<ZoneGet>

Inherited from

Manager._get

Defined in

src/managers/Manager.ts:33


_post

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

Parameters

Name Type
data ZonePost

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 ZonePut

Returns

Promise<ResourceIdentifier<ResourceType>[]>

Inherited from

Manager._put

Defined in

src/managers/Manager.ts:37


create

create(options): Promise<undefined | string>

Parameters

Name Type
options Required<ZoneEditOptions>

Returns

Promise<undefined | string>

Defined in

src/managers/ZoneManager.ts:10


delete

delete(id): Promise<void>

Parameters

Name Type
id string

Returns

Promise<void>

Defined in

src/managers/ZoneManager.ts:26


edit

edit(id, options): Promise<void>

Parameters

Name Type
id string
options ZoneEditOptions

Returns

Promise<void>

Defined in

src/managers/ZoneManager.ts:19

hue.ts

Clone this wiki locally