blob: 825e9409daf5e0a261399631fd3164b468bca70f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
module BattleCharacters.Comm.AddGlyphBoard exposing (decode)
-- Elm -------------------------------------------------------------------------
import Json.Decode
-- Battle Characters -----------------------------------------------------------
import BattleCharacters.Struct.GlyphBoard
-- Local Module-----------------------------------------------------------------
import Struct.ServerReply
--------------------------------------------------------------------------------
-- TYPES -----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
internal_decoder : (
BattleCharacters.Struct.GlyphBoard.Type ->
Struct.ServerReply.Type
)
internal_decoder glb = (Struct.ServerReply.AddGlyphBoard glb)
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
decode : (Json.Decode.Decoder Struct.ServerReply.Type)
decode =
(Json.Decode.map
(internal_decoder)
(BattleCharacters.Struct.GlyphBoard.decoder)
)
|