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

DevicePower

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

Class: DevicePower

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new DevicePower(hue, data)

Parameters

Name Type
hue Hue
data DevicePowerGet

Inherited from

Resource.constructor

Defined in

src/structures/Resource.ts:64

Properties

data

data: DevicePowerGet

Inherited from

Resource.data

Defined in

src/structures/Resource.ts:54


hue

Readonly hue: Hue

Inherited from

Resource.hue

Defined in

src/structures/Resource.ts:51


type

type: ResourceType = ResourceType.DevicePower

Overrides

Resource.type

Defined in

src/structures/DevicePower.ts:12

Accessors

batteryLevel

get batteryLevel(): number

Returns

number

Defined in

src/structures/DevicePower.ts:25


batteryState

get batteryState(): DevicePowerBatteryState

Returns

DevicePowerBatteryState

Defined in

src/structures/DevicePower.ts:21


id

get id(): string

Returns

string

Inherited from

Resource.id

Defined in

src/structures/Resource.ts:56


identifier

get identifier(): ResourceIdentifier<ResourceType>

Returns

ResourceIdentifier<ResourceType>

Inherited from

Resource.identifier

Defined in

src/structures/Resource.ts:60


manager

get manager(): DevicePowerManager

Returns

DevicePowerManager

Overrides

Resource.manager

Defined in

src/structures/DevicePower.ts:14


ownerId

get ownerId(): string

Returns

string

Defined in

src/structures/DevicePower.ts:17

Methods

_clone

_clone(): DevicePower

Returns

DevicePower

Inherited from

Resource._clone

Defined in

src/structures/Resource.ts:77


_patch

_patch(data): void

Parameters

Name Type
data Partial<DevicePowerGet>

Returns

void

Inherited from

Resource._patch

Defined in

src/structures/Resource.ts:73


_update

_update(data): DevicePower

Parameters

Name Type
data Partial<DevicePowerGet>

Returns

DevicePower

Inherited from

Resource._update

Defined in

src/structures/Resource.ts:81


isType

isType<T>(type): this is NarrowResource<T>

Type parameters

Name Type
T extends ResourceType

Parameters

Name Type
type T

Returns

this is NarrowResource<T>

Inherited from

Resource.isType

Defined in

src/structures/Resource.ts:69

hue.ts

Clone this wiki locally