Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Notification = Notification {
- ntfId :: !NotificationId
- ntfTransient :: !Bool
- ntfPayload :: !(List1 Object)
- type NotificationId = Id QueuedNotification
- data NotificationTarget
- target :: UserId -> NotificationTarget
- targetUser :: Lens' NotificationTarget UserId
- targetClients :: Lens' NotificationTarget [ClientId]
- data QueuedNotification
- queuedNotification :: NotificationId -> NonEmpty Event -> QueuedNotification
- queuedNotificationId :: Lens' QueuedNotification NotificationId
- queuedNotificationPayload :: Lens' QueuedNotification (NonEmpty Event)
- data QueuedNotificationList
- queuedNotificationList :: [QueuedNotification] -> Bool -> Maybe UTCTime -> QueuedNotificationList
- queuedNotifications :: Lens' QueuedNotificationList [QueuedNotification]
- queuedHasMore :: Lens' QueuedNotificationList Bool
- queuedTime :: Lens' QueuedNotificationList (Maybe UTCTime)
Notification
data Notification Source #
Notification | |
|
Instances
FromJSON Notification Source # | |
Defined in Wire.API.Internal.Notification parseJSON :: Value -> Parser Notification Source # parseJSONList :: Value -> Parser [Notification] Source # | |
ToJSON Notification Source # | |
Defined in Wire.API.Internal.Notification toJSON :: Notification -> Value Source # toEncoding :: Notification -> Encoding Source # toJSONList :: [Notification] -> Value Source # toEncodingList :: [Notification] -> Encoding Source # | |
Show Notification Source # | |
Defined in Wire.API.Internal.Notification showsPrec :: Int -> Notification -> ShowS # show :: Notification -> String # showList :: [Notification] -> ShowS # | |
Eq Notification Source # | |
Defined in Wire.API.Internal.Notification (==) :: Notification -> Notification -> Bool # (/=) :: Notification -> Notification -> Bool # | |
ToSchema Notification Source # | |
Defined in Wire.API.Internal.Notification | |
ToSchema Notification Source # | |
type NotificationId = Id QueuedNotification Source #
NotificationTarget
data NotificationTarget Source #
Instances
FromJSON NotificationTarget Source # | |
Defined in Wire.API.Internal.Notification parseJSON :: Value -> Parser NotificationTarget Source # parseJSONList :: Value -> Parser [NotificationTarget] Source # | |
ToJSON NotificationTarget Source # | |
Defined in Wire.API.Internal.Notification toJSON :: NotificationTarget -> Value Source # toEncoding :: NotificationTarget -> Encoding Source # toJSONList :: [NotificationTarget] -> Value Source # toEncodingList :: [NotificationTarget] -> Encoding Source # | |
Show NotificationTarget Source # | |
Defined in Wire.API.Internal.Notification showsPrec :: Int -> NotificationTarget -> ShowS # show :: NotificationTarget -> String # showList :: [NotificationTarget] -> ShowS # | |
Eq NotificationTarget Source # | |
Defined in Wire.API.Internal.Notification (==) :: NotificationTarget -> NotificationTarget -> Bool # (/=) :: NotificationTarget -> NotificationTarget -> Bool # |
target :: UserId -> NotificationTarget Source #
QueuedNotification (re-export)
data QueuedNotification Source #
Instances
data QueuedNotificationList Source #