1
0
Fork 0
tooty/src/Ports.elm

50 lines
916 B
Elm
Raw Normal View History

port module Ports
exposing
( saveRegistration
, deleteRegistration
, scrollIntoView
, saveClients
, setStatus
2017-05-11 08:55:15 +00:00
, uploadMedia
, updateMedia
2017-06-02 12:11:50 +00:00
, notify
2017-05-11 08:55:15 +00:00
, uploadSuccess
, uploadError
)
2017-05-11 08:55:15 +00:00
-- Outgoing ports
port saveRegistration : String -> Cmd msg
port deleteRegistration : String -> Cmd msg
port saveClients : String -> Cmd msg
port setStatus : { id : String, status : String } -> Cmd msg
port scrollIntoView : String -> Cmd msg
2017-05-11 08:55:15 +00:00
port uploadMedia : { id : String, url : String, token : String } -> Cmd msg
port updateMedia : { id : String, url : String, token : String, description : String } -> Cmd msg
2017-06-02 12:11:50 +00:00
port notify : { title : String, icon : String, body : String, clickUrl : String } -> Cmd msg
2017-05-11 08:55:15 +00:00
-- Incoming ports
port uploadError : (String -> msg) -> Sub msg
port uploadSuccess : (String -> msg) -> Sub msg