UNPKG
nanoleaf-client-multi
Version:
latest (4.0.0)
4.0.0
3.0.1
3.0.0
2.0.1
2.0.0
1.0.1
1.0.0
Client library for Nanoleaf smart home devices
gitlab.com/manganese/home/nanoleaf-client-multi
nanoleaf-client-multi
/
src
/
models
/
nanoleaf-device.js
14 lines
(13 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** *
@property
{
string
}
uuid
*
@property
{
URL
}
location
*
@property
{
string
}
deviceId
*/
class
NanoleafDevice
{
constructor
(
obj
) {
this
.
uuid
= obj.
uuid
;
this
.
location
=
new
URL
(obj.
location
);
this
.
deviceId
= obj.
deviceId
; } }
export
default
NanoleafDevice
;