aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Model.elm
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-13 21:48:04 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-13 21:48:04 +0200
commit5348b220c8ec071eee01578f0ea525e28d3a5c3f (patch)
tree29725415cc884227081c44b832d3daff46c9068d /src/client/elm/Model.elm
parent83034116b02497576d97bffc9e91a5476cc60d41 (diff)
Mode DecodeFlags and Model to seperate files
Diffstat (limited to 'src/client/elm/Model.elm')
-rw-r--r--src/client/elm/Model.elm19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client/elm/Model.elm b/src/client/elm/Model.elm
new file mode 100644
index 0000000..8f4c6a6
--- /dev/null
+++ b/src/client/elm/Model.elm
@@ -0,0 +1,19 @@
+module Model exposing (..)
+
+
+type alias Model =
+ { users : List User
+ }
+
+
+type alias User =
+ { type_ : UserType
+ , value : String
+ }
+
+
+type UserType
+ = Class
+ | Teacher
+ | Room
+ | Student