Introduce the Models module in order to make others internal
This commit is contained in:
parent
915d01e086
commit
c377ec25dc
6 changed files with 31 additions and 26 deletions
22
NightLight.Core/Models.fs
Normal file
22
NightLight.Core/Models.fs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
module NightLight.Models
|
||||
|
||||
open System
|
||||
|
||||
type State = { Time: DateTime }
|
||||
|
||||
type Event =
|
||||
| ReceivedZigbeeEvent of payload: string
|
||||
| TimeChanged of DateTime
|
||||
|
||||
type ZigbeeCommand = ZigbeeCommand of Topic: string * Payload: string
|
||||
|
||||
type ParseZigbeeEventError =
|
||||
| InvalidJson
|
||||
| MissingTypeField
|
||||
| MissingDataField
|
||||
| MissingFriendlyNameField
|
||||
| InvalidTypeField
|
||||
| InvalidFriendlyNameField
|
||||
| UnknownType
|
||||
|
||||
type ParseEventError = ParseZigbeeEventError of ParseZigbeeEventError
|
||||
Loading…
Add table
Add a link
Reference in a new issue