Created
June 27, 2024 19:37
-
-
Save object/2ccdcfd3c8e6262b9b767a4eacc85ab5 to your computer and use it in GitHub Desktop.
Fable workshop (2024). Step 8. Model.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Model | |
open Shared | |
[<RequireQualifiedAccess>] | |
type EventSet = | |
| Small | |
| Large | |
type Model = | |
{ EventSet: EventSet | |
PlaybackDelay : int | |
IsPlaying : bool | |
IsPaused : bool | |
Events : Dto.MediaSetEvent list | |
SocketConnected : bool | |
Error : string } | |
static member Empty = | |
{ EventSet = EventSet.Small | |
PlaybackDelay = 2000 | |
IsPlaying = false | |
IsPaused = false | |
Events = List.empty | |
SocketConnected = false | |
Error = "" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment