Reorganize types to prepare for unit testing
This commit is contained in:
parent
5219abfb4b
commit
83b716a509
7 changed files with 52 additions and 62 deletions
|
|
@ -20,3 +20,34 @@ type ParseZigbeeEventError =
|
|||
| UnknownType
|
||||
|
||||
type ParseEventError = ParseZigbeeEventError of ParseZigbeeEventError
|
||||
|
||||
type Room =
|
||||
| Bathroom
|
||||
| LivingRoom
|
||||
| Bedroom
|
||||
|
||||
type Bulb =
|
||||
| IkeaBulb
|
||||
| PaulmannBulb
|
||||
|
||||
type Light =
|
||||
{ FriendlyName: string
|
||||
Room: Room
|
||||
Bulb: Bulb }
|
||||
|
||||
let lights =
|
||||
[ { FriendlyName = "Vardagsrum - Fönsterlampa"
|
||||
Room = LivingRoom
|
||||
Bulb = IkeaBulb }
|
||||
{ FriendlyName = "Vardagsrum - Vägglampa"
|
||||
Room = LivingRoom
|
||||
Bulb = PaulmannBulb }
|
||||
{ FriendlyName = "Vardagsrum - Golvlampa"
|
||||
Room = LivingRoom
|
||||
Bulb = PaulmannBulb }
|
||||
{ FriendlyName = "Badrum - Taklampa"
|
||||
Room = Bathroom
|
||||
Bulb = IkeaBulb }
|
||||
{ FriendlyName = "Sovrum - Nattduksbordlampa"
|
||||
Room = Bedroom
|
||||
Bulb = IkeaBulb } ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue