| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Store.Profiles
Documentation
data AutoAccept Source #
Constructors
| AutoAccept | |
Fields | |
Instances
| FromJSON AutoAccept Source # | |
Defined in Simplex.Chat.Store.Profiles Methods parseJSON :: Value -> Parser AutoAccept parseJSONList :: Value -> Parser [AutoAccept] omittedField :: Maybe AutoAccept | |
| ToJSON AutoAccept Source # | |
Defined in Simplex.Chat.Store.Profiles Methods toJSON :: AutoAccept -> Value toEncoding :: AutoAccept -> Encoding toJSONList :: [AutoAccept] -> Value toEncodingList :: [AutoAccept] -> Encoding omitField :: AutoAccept -> Bool | |
| Show AutoAccept Source # | |
Defined in Simplex.Chat.Store.Profiles Methods showsPrec :: Int -> AutoAccept -> ShowS show :: AutoAccept -> String showList :: [AutoAccept] -> ShowS | |
| Eq AutoAccept Source # | |
Defined in Simplex.Chat.Store.Profiles | |
data AddressSettings Source #
Constructors
| AddressSettings | |
Fields
| |
Instances
| FromJSON AddressSettings Source # | |
Defined in Simplex.Chat.Store.Profiles Methods parseJSON :: Value -> Parser AddressSettings parseJSONList :: Value -> Parser [AddressSettings] omittedField :: Maybe AddressSettings | |
| ToJSON AddressSettings Source # | |
Defined in Simplex.Chat.Store.Profiles Methods toJSON :: AddressSettings -> Value toEncoding :: AddressSettings -> Encoding toJSONList :: [AddressSettings] -> Value toEncodingList :: [AddressSettings] -> Encoding omitField :: AddressSettings -> Bool | |
| Show AddressSettings Source # | |
Defined in Simplex.Chat.Store.Profiles Methods showsPrec :: Int -> AddressSettings -> ShowS show :: AddressSettings -> String showList :: [AddressSettings] -> ShowS | |
| Eq AddressSettings Source # | |
Defined in Simplex.Chat.Store.Profiles Methods (==) :: AddressSettings -> AddressSettings -> Bool (/=) :: AddressSettings -> AddressSettings -> Bool | |
data UserMsgReceiptSettings Source #
Constructors
| UserMsgReceiptSettings | |
Fields
| |
Instances
| Show UserMsgReceiptSettings Source # | |
Defined in Simplex.Chat.Store.Profiles Methods showsPrec :: Int -> UserMsgReceiptSettings -> ShowS show :: UserMsgReceiptSettings -> String showList :: [UserMsgReceiptSettings] -> ShowS | |
data UserContactLink Source #
Constructors
| UserContactLink | |
Fields
| |
Instances
| FromJSON UserContactLink Source # | |
Defined in Simplex.Chat.Store.Profiles Methods parseJSON :: Value -> Parser UserContactLink parseJSONList :: Value -> Parser [UserContactLink] omittedField :: Maybe UserContactLink | |
| ToJSON UserContactLink Source # | |
Defined in Simplex.Chat.Store.Profiles Methods toJSON :: UserContactLink -> Value toEncoding :: UserContactLink -> Encoding toJSONList :: [UserContactLink] -> Value toEncodingList :: [UserContactLink] -> Encoding omitField :: UserContactLink -> Bool | |
| Show UserContactLink Source # | |
Defined in Simplex.Chat.Store.Profiles Methods showsPrec :: Int -> UserContactLink -> ShowS show :: UserContactLink -> String showList :: [UserContactLink] -> ShowS | |
data GroupLinkInfo Source #
Constructors
| GroupLinkInfo | |
Fields | |
Instances
| Show GroupLinkInfo Source # | |
Defined in Simplex.Chat.Store.Profiles Methods showsPrec :: Int -> GroupLinkInfo -> ShowS show :: GroupLinkInfo -> String showList :: [GroupLinkInfo] -> ShowS | |
createUserRecord :: Connection -> AgentUserId -> Profile -> Bool -> ExceptT StoreError IO User Source #
createUserRecordAt :: Connection -> AgentUserId -> Profile -> Bool -> UTCTime -> ExceptT StoreError IO User Source #
getUsersInfo :: Connection -> IO [UserInfo] Source #
setActiveUser :: Connection -> User -> IO User Source #
getUser :: Connection -> UserId -> ExceptT StoreError IO User Source #
getUserIdByName :: Connection -> UserName -> ExceptT StoreError IO Int64 Source #
getUserByAConnId :: Connection -> AgentConnId -> IO (Maybe User) Source #
getUserByASndFileId :: Connection -> AgentSndFileId -> IO (Maybe User) Source #
getUserByARcvFileId :: Connection -> AgentRcvFileId -> IO (Maybe User) Source #
getUserByContactId :: Connection -> ContactId -> ExceptT StoreError IO User Source #
getUserByGroupId :: Connection -> GroupId -> ExceptT StoreError IO User Source #
getUserByNoteFolderId :: Connection -> NoteFolderId -> ExceptT StoreError IO User Source #
getUserByFileId :: Connection -> FileTransferId -> ExceptT StoreError IO User Source #
getUserFileInfo :: Connection -> User -> IO [CIFileInfo] Source #
deleteUserRecord :: Connection -> User -> IO () Source #
updateUserPrivacy :: Connection -> User -> IO () Source #
updateAllContactReceipts :: Connection -> Bool -> IO () Source #
updateUserContactReceipts :: Connection -> User -> UserMsgReceiptSettings -> IO () Source #
updateUserGroupReceipts :: Connection -> User -> UserMsgReceiptSettings -> IO () Source #
updateUserAutoAcceptMemberContacts :: Connection -> User -> Bool -> IO () Source #
updateUserProfile :: Connection -> User -> Profile -> ExceptT StoreError IO User Source #
setUserProfileContactLink :: Connection -> User -> Maybe UserContactLink -> IO User Source #
getUserContactProfiles :: Connection -> User -> IO [Profile] Source #
createUserContactLink :: Connection -> User -> ConnId -> CreatedLinkContact -> SubscriptionMode -> ExceptT StoreError IO () Source #
getUserAddressConnection :: Connection -> VersionRangeChat -> User -> ExceptT StoreError IO Connection Source #
deleteUserAddress :: Connection -> User -> IO () Source #
getUserAddress :: Connection -> User -> ExceptT StoreError IO UserContactLink Source #
getUserContactLinkById :: Connection -> UserId -> Int64 -> ExceptT StoreError IO (UserContactLink, Maybe GroupLinkInfo) Source #
getGroupLinkInfo :: Connection -> UserId -> GroupId -> IO (Maybe GroupLinkInfo) Source #
getUserContactLinkByConnReq :: Connection -> User -> (ConnReqContact, ConnReqContact) -> IO (Maybe UserContactLink) Source #
getUserContactLinkViaShortLink :: Connection -> User -> ShortLinkContact -> IO (Maybe UserContactLink) Source #
setUserContactLinkShortLink :: Connection -> Int64 -> ShortLinkContact -> IO () Source #
getContactWithoutConnViaAddress :: Connection -> VersionRangeChat -> User -> (ConnReqContact, ConnReqContact) -> IO (Maybe Contact) Source #
getContactWithoutConnViaShortAddress :: Connection -> VersionRangeChat -> User -> ShortLinkContact -> IO (Maybe Contact) Source #
updateUserAddressSettings :: Connection -> Int64 -> AddressSettings -> IO () Source #
getProtocolServers :: forall (p :: ProtocolType). ProtocolTypeI p => Connection -> SProtocolType p -> User -> IO [UserServer p] Source #
insertProtocolServer :: forall (p :: ProtocolType). ProtocolTypeI p => Connection -> SProtocolType p -> User -> UTCTime -> NewUserServer p -> IO (UserServer p) Source #
getUpdateServerOperators :: Connection -> NonEmpty PresetOperator -> Bool -> IO [(Maybe PresetOperator, Maybe ServerOperator)] Source #
getServerOperators :: Connection -> ExceptT StoreError IO ServerOperatorConditions Source #
getUserServers :: Connection -> User -> ExceptT StoreError IO ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) Source #
setServerOperators :: Connection -> NonEmpty ServerOperator -> IO () Source #
getCurrentUsageConditions :: Connection -> ExceptT StoreError IO UsageConditions Source #
getLatestAcceptedConditions :: Connection -> IO (Maybe UsageConditions) Source #
setConditionsNotified :: Connection -> Int64 -> UTCTime -> IO () Source #
acceptConditions :: Connection -> Int64 -> NonEmpty Int64 -> UTCTime -> ExceptT StoreError IO () Source #
setUserServers :: Connection -> User -> UTCTime -> UpdatedUserOperatorServers -> ExceptT StoreError IO UserOperatorServers Source #
setUserServers' :: Connection -> User -> UTCTime -> UpdatedUserOperatorServers -> IO UserOperatorServers Source #
createCall :: Connection -> User -> Call -> UTCTime -> IO () Source #
deleteCalls :: Connection -> User -> ContactId -> IO () Source #
createCommand :: Connection -> User -> Maybe Int64 -> CommandFunction -> IO CommandId Source #
setCommandConnId :: Connection -> User -> CommandId -> Int64 -> IO () Source #
deleteCommand :: Connection -> User -> CommandId -> IO () Source #
updateCommandStatus :: Connection -> User -> CommandId -> CommandStatus -> IO () Source #
getCommandDataByCorrId :: Connection -> User -> ACorrId -> IO (Maybe CommandData) Source #
setUserUIThemes :: Connection -> User -> Maybe UIThemeEntityOverrides -> IO () Source #