Skip to content

Instantly share code, notes, and snippets.

@object
Created June 27, 2024 19:37
Show Gist options
  • Save object/2ccdcfd3c8e6262b9b767a4eacc85ab5 to your computer and use it in GitHub Desktop.
Save object/2ccdcfd3c8e6262b9b767a4eacc85ab5 to your computer and use it in GitHub Desktop.
Fable workshop (2024). Step 8. Model.fs
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