Created
January 25, 2017 12:42
-
-
Save amitaibu/d2027d20a53481bd4c7f0e9d99407eda to your computer and use it in GitHub Desktop.
This file contains hidden or 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
decodeStudentBoard : Decoder StudentBoard | |
decodeStudentBoard = | |
-- @todo: We don't send quizStatus yet, so made it optional. | |
Decode.decode StudentBoard | |
|> required "user" User.Decoder.decode | |
|> optional "selectedSlide" string "" | |
|> optional "slides_dict" (dict decodeStudentSlideContent) Dict.empty | |
|> required "joined" decodeDate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment