Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Model.Notification.Types
module Model.Notification.Notify
addNotification :: (MonadDB c m, MonadHas Party c m) => Notification -> m Notification Source #
addBroadcastNotification :: (MonadDB c m, MonadHas Party c m) => Notification -> m Int Source #
changeNotificationsDelivery :: MonadDB c m => [Notification] -> Delivery -> m Int Source #
lookupUserNotifications :: (MonadDB c m, MonadHas Account c m) => m [Notification] Source #
lookupUndeliveredNotifications :: MonadDB c m => Delivery -> m [Notification] Source #
removeNotification :: (MonadDB c m, MonadHas (Id Party) c m) => Id Notification -> m Bool Source #
cleanNotifications :: MonadDB c m => m Int Source #
removeMatchingNotifications :: MonadDB c m => Notification -> m Int Source #
notificationJSON :: ToNestedObject o u => Notification -> Record (Id Notification) o Source #