path:
/groupTypes.nim
632 B | plain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gatewayTypes, deviceTypes
type
TradfriGroupActionType* = enum
GroupRename, GroupSetPowerState
TradfriGroup* = object
gatewayRef*: TradfriGatewayRef
`type`*: int
name*: string
createdAt*: int
id*: int
powerState*: bool
dimmerValue*: int
sceneId*: int
devices*: seq[TradfriDevice]
TradfriGroupAction* = object
case kind*: TradfriGroupActionType
of GroupRename:
groupName*: string
of GroupSetPowerState:
groupPowerState*: bool