simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Store.Profiles

Documentation

data AutoAccept Source #

Instances

Instances details
FromJSON AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

parseJSON :: Value -> Parser AutoAccept

parseJSONList :: Value -> Parser [AutoAccept]

omittedField :: Maybe AutoAccept

ToJSON AutoAccept Source # 
Instance details

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 # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

showsPrec :: Int -> AutoAccept -> ShowS

show :: AutoAccept -> String

showList :: [AutoAccept] -> ShowS

Eq AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

(==) :: AutoAccept -> AutoAccept -> Bool

(/=) :: AutoAccept -> AutoAccept -> Bool

data AddressSettings Source #

Constructors

AddressSettings 

Fields

Instances

Instances details
FromJSON AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

parseJSON :: Value -> Parser AddressSettings

parseJSONList :: Value -> Parser [AddressSettings]

omittedField :: Maybe AddressSettings

ToJSON AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Show AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

showsPrec :: Int -> AddressSettings -> ShowS

show :: AddressSettings -> String

showList :: [AddressSettings] -> ShowS

Eq AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

data UserMsgReceiptSettings Source #

Constructors

UserMsgReceiptSettings 

Fields

Instances

Instances details
Show UserMsgReceiptSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

data UserContactLink Source #

Instances

data GroupLinkInfo Source #

Instances

Instances details
Show GroupLinkInfo Source # 
Instance details

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 #

getUsers :: Connection -> IO [User] 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 #

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 #

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 #

setUserContactLinkShortLink :: Connection -> Int64 -> ShortLinkContact -> IO () 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 #

getUserServers :: Connection -> User -> ExceptT StoreError IO ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) Source #

setServerOperators :: Connection -> NonEmpty ServerOperator -> IO () Source #

setConditionsNotified :: Connection -> Int64 -> UTCTime -> IO () Source #

acceptConditions :: Connection -> Int64 -> NonEmpty Int64 -> UTCTime -> ExceptT StoreError IO () Source #

createCall :: Connection -> User -> Call -> UTCTime -> IO () Source #

deleteCalls :: Connection -> User -> ContactId -> IO () Source #

getCalls :: Connection -> IO [Call] 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 #