| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Notifications.Types
Documentation
data NtfTknAction Source #
Constructors
| NTARegister | |
| NTAVerify NtfRegCode | |
| NTACheck | |
| NTADelete |
Instances
| Show NtfTknAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfTknAction -> ShowS show :: NtfTknAction -> String showList :: [NtfTknAction] -> ShowS | |
| Encoding NtfTknAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods smpEncode :: NtfTknAction -> ByteString Source # smpDecode :: ByteString -> Either String NtfTknAction Source # smpP :: Parser NtfTknAction Source # | |
| FromField NtfTknAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods fromField :: FieldParser NtfTknAction # | |
| ToField NtfTknAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods toField :: NtfTknAction -> SQLData # | |
Constructors
| NtfToken | |
Fields
| |
data NtfSubAction Source #
Constructors
| NSANtf NtfSubNTFAction | |
| NSASMP NtfSubSMPAction |
Instances
| Show NtfSubAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfSubAction -> ShowS show :: NtfSubAction -> String showList :: [NtfSubAction] -> ShowS | |
type NtfActionTs = UTCTime Source #
data NtfSubNTFAction Source #
Instances
| Show NtfSubNTFAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfSubNTFAction -> ShowS show :: NtfSubNTFAction -> String showList :: [NtfSubNTFAction] -> ShowS | |
| TextEncoding NtfSubNTFAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods textEncode :: NtfSubNTFAction -> Text Source # textDecode :: Text -> Maybe NtfSubNTFAction Source # | |
| FromField NtfSubNTFAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods fromField :: FieldParser NtfSubNTFAction # | |
| ToField NtfSubNTFAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods toField :: NtfSubNTFAction -> SQLData # | |
data NtfSubSMPAction Source #
Constructors
| NSASmpKey | |
| NSASmpDelete |
Instances
| Show NtfSubSMPAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfSubSMPAction -> ShowS show :: NtfSubSMPAction -> String showList :: [NtfSubSMPAction] -> ShowS | |
| TextEncoding NtfSubSMPAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods textEncode :: NtfSubSMPAction -> Text Source # textDecode :: Text -> Maybe NtfSubSMPAction Source # | |
| FromField NtfSubSMPAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods fromField :: FieldParser NtfSubSMPAction # | |
| ToField NtfSubSMPAction Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods toField :: NtfSubSMPAction -> SQLData # | |
data NtfAgentSubStatus Source #
Constructors
| NASNew | subscription started |
| NASKey | state after NKEY - notifier ID is assigned to queue on SMP server |
| NASCreated NtfSubStatus | state after SNEW - subscription created on notification server |
| NASOff | state after SDEL (subscription is deleted on notification server) |
| NASDeleted | state after NDEL (notifier credentials are deleted on SMP server) Can only exist transiently - if subscription record was updated by notification supervisor mid worker operation, and hence got updated instead of being fully deleted in the database post operation by worker |
Instances
| Show NtfAgentSubStatus Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfAgentSubStatus -> ShowS show :: NtfAgentSubStatus -> String showList :: [NtfAgentSubStatus] -> ShowS | |
| Eq NtfAgentSubStatus Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods (==) :: NtfAgentSubStatus -> NtfAgentSubStatus -> Bool (/=) :: NtfAgentSubStatus -> NtfAgentSubStatus -> Bool | |
| Encoding NtfAgentSubStatus Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods smpEncode :: NtfAgentSubStatus -> ByteString Source # smpDecode :: ByteString -> Either String NtfAgentSubStatus Source # smpP :: Parser NtfAgentSubStatus Source # | |
| FromField NtfAgentSubStatus Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods fromField :: FieldParser NtfAgentSubStatus # | |
| ToField NtfAgentSubStatus Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods toField :: NtfAgentSubStatus -> SQLData # | |
data NtfSubscription Source #
Constructors
| NtfSubscription | |
Fields
| |
Instances
| Show NtfSubscription Source # | |
Defined in Simplex.Messaging.Notifications.Types Methods showsPrec :: Int -> NtfSubscription -> ShowS show :: NtfSubscription -> String showList :: [NtfSubscription] -> ShowS | |
newNtfToken :: DeviceToken -> NtfServer -> AAuthKeyPair -> KeyPairX25519 -> NotificationsMode -> NtfToken Source #
isDeleteNtfSubAction :: NtfSubAction -> Bool Source #
newNtfSubscription :: UserId -> ConnId -> SMPServer -> Maybe NotifierId -> NtfServer -> NtfAgentSubStatus -> NtfSubscription Source #