| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.PinPon.API.Topic
Contents
- data Notification = Notification {}
- type TopicAPI = "topic" :> (ReqBody '[JSON] Notification :> Post '[JSON, HTML] Notification)
- topicServer :: ServerT TopicAPI App
Types
data Notification Source #
A pinpon doorbell notification.
pinpon doorbell notifications are sent by pinpon API clients to
the server. The server translates these notifications to the
format(s) required by the doorbell's subscribers.
Note that some notification formats don't support sound (e.g., email and SMS). This field will be ignored on platforms that do not support it.
Constructors
| Notification | |
type TopicAPI = "topic" :> (ReqBody '[JSON] Notification :> Post '[JSON, HTML] Notification) Source #