Add notification sending functionality.
This commit is contained in:
11
src/Scylla/Notification.elm
Normal file
11
src/Scylla/Notification.elm
Normal file
@@ -0,0 +1,11 @@
|
||||
port module Scylla.Notification exposing (..)
|
||||
import Scylla.Model exposing (..)
|
||||
import Json.Decode
|
||||
|
||||
type alias Notification =
|
||||
{ name : String
|
||||
, text : String
|
||||
}
|
||||
|
||||
port sendNotificationPort : Notification -> Cmd msg
|
||||
port onNotificationClockPort : (Json.Decode.Value -> msg) -> Sub msg
|
||||
Reference in New Issue
Block a user