| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Types.Preferences
Documentation
data ChatFeature Source #
Constructors
| CFTimedMessages | |
| CFFullDelete | |
| CFReactions | |
| CFVoice | |
| CFFiles | |
| CFCalls | |
| CFSessions |
Instances
| FromJSON ChatFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser ChatFeature parseJSONList :: Value -> Parser [ChatFeature] omittedField :: Maybe ChatFeature | |
| ToJSON ChatFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: ChatFeature -> Value toEncoding :: ChatFeature -> Encoding toJSONList :: [ChatFeature] -> Value toEncodingList :: [ChatFeature] -> Encoding omitField :: ChatFeature -> Bool | |
| Show ChatFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> ChatFeature -> ShowS show :: ChatFeature -> String showList :: [ChatFeature] -> ShowS | |
data SChatFeature (f :: ChatFeature) where Source #
Constructors
Instances
| Show (SChatFeature f) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> SChatFeature f -> ShowS show :: SChatFeature f -> String showList :: [SChatFeature f] -> ShowS | |
data AChatFeature Source #
Constructors
| FeatureI f => ACF (SChatFeature f) |
Instances
| Show AChatFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> AChatFeature -> ShowS show :: AChatFeature -> String showList :: [AChatFeature] -> ShowS | |
chatFeatureNameText :: ChatFeature -> Text Source #
chatFeatureNameText' :: forall (f :: ChatFeature). SChatFeature f -> Text Source #
chatPrefSel :: forall (f :: ChatFeature). SChatFeature f -> Preferences -> Maybe (FeaturePreference f) Source #
chatFeature :: forall (f :: ChatFeature). SChatFeature f -> ChatFeature Source #
class PreferenceI p where Source #
Methods
getPreference :: forall (f :: ChatFeature). SChatFeature f -> p -> FeaturePreference f Source #
Instances
| PreferenceI FullPreferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getPreference :: forall (f :: ChatFeature). SChatFeature f -> FullPreferences -> FeaturePreference f Source # | |
| PreferenceI Preferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getPreference :: forall (f :: ChatFeature). SChatFeature f -> Preferences -> FeaturePreference f Source # | |
| PreferenceI (Maybe Preferences) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getPreference :: forall (f :: ChatFeature). SChatFeature f -> Maybe Preferences -> FeaturePreference f Source # | |
setPreference :: forall (f :: ChatFeature). FeatureI f => SChatFeature f -> Maybe FeatureAllowed -> Maybe Preferences -> Preferences Source #
setPreference' :: forall (f :: ChatFeature). SChatFeature f -> Maybe (FeaturePreference f) -> Maybe Preferences -> Preferences Source #
setPreference_ :: forall (f :: ChatFeature). SChatFeature f -> Maybe (FeaturePreference f) -> Preferences -> Preferences Source #
data Preferences Source #
Constructors
| Preferences | |
Fields
| |
Instances
class HasCommands p where Source #
Methods
commands_ :: p -> Maybe [ChatBotCommand] Source #
Instances
| HasCommands GroupPreferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods commands_ :: GroupPreferences -> Maybe [ChatBotCommand] Source # | |
| HasCommands Preferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods commands_ :: Preferences -> Maybe [ChatBotCommand] Source # | |
data GroupFeature Source #
Constructors
| GFTimedMessages | |
| GFDirectMessages | |
| GFFullDelete | |
| GFReactions | |
| GFVoice | |
| GFFiles | |
| GFSimplexLinks | |
| GFReports | |
| GFHistory | |
| GFSessions |
Instances
| FromJSON GroupFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser GroupFeature parseJSONList :: Value -> Parser [GroupFeature] omittedField :: Maybe GroupFeature | |
| ToJSON GroupFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: GroupFeature -> Value toEncoding :: GroupFeature -> Encoding toJSONList :: [GroupFeature] -> Value toEncodingList :: [GroupFeature] -> Encoding omitField :: GroupFeature -> Bool | |
| Show GroupFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> GroupFeature -> ShowS show :: GroupFeature -> String showList :: [GroupFeature] -> ShowS | |
data SGroupFeature (f :: GroupFeature) where Source #
Constructors
Instances
| Show (SGroupFeature f) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> SGroupFeature f -> ShowS show :: SGroupFeature f -> String showList :: [SGroupFeature f] -> ShowS | |
data AGroupFeature Source #
Constructors
| GroupFeatureI f => AGF (SGroupFeature f) |
Instances
| Show AGroupFeature Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> AGroupFeature -> ShowS show :: AGroupFeature -> String showList :: [AGroupFeature] -> ShowS | |
data AGroupFeatureNoRole Source #
Constructors
| GroupFeatureNoRoleI f => AGFNR (SGroupFeature f) |
Instances
| Show AGroupFeatureNoRole Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> AGroupFeatureNoRole -> ShowS show :: AGroupFeatureNoRole -> String showList :: [AGroupFeatureNoRole] -> ShowS | |
data AGroupFeatureRole Source #
Constructors
| GroupFeatureRoleI f => AGFR (SGroupFeature f) |
Instances
| Show AGroupFeatureRole Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> AGroupFeatureRole -> ShowS show :: AGroupFeatureRole -> String showList :: [AGroupFeatureRole] -> ShowS | |
groupFeatureNameText :: GroupFeature -> Text Source #
groupFeatureNameText' :: forall (f :: GroupFeature). SGroupFeature f -> Text Source #
groupFeatureAllowed' :: forall (f :: GroupFeature). GroupFeatureNoRoleI f => SGroupFeature f -> FullGroupPreferences -> Bool Source #
groupFeatureMemberAllowed' :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupMemberRole -> FullGroupPreferences -> Bool Source #
groupPrefSel :: forall (f :: GroupFeature). SGroupFeature f -> GroupPreferences -> Maybe (GroupFeaturePreference f) Source #
toGroupFeature :: forall (f :: GroupFeature). SGroupFeature f -> GroupFeature Source #
class GroupPreferenceI p where Source #
Methods
getGroupPreference :: forall (f :: GroupFeature). SGroupFeature f -> p -> GroupFeaturePreference f Source #
Instances
| GroupPreferenceI FullGroupPreferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getGroupPreference :: forall (f :: GroupFeature). SGroupFeature f -> FullGroupPreferences -> GroupFeaturePreference f Source # | |
| GroupPreferenceI GroupPreferences Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getGroupPreference :: forall (f :: GroupFeature). SGroupFeature f -> GroupPreferences -> GroupFeaturePreference f Source # | |
| GroupPreferenceI (Maybe GroupPreferences) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods getGroupPreference :: forall (f :: GroupFeature). SGroupFeature f -> Maybe GroupPreferences -> GroupFeaturePreference f Source # | |
data GroupPreferences Source #
Constructors
| GroupPreferences | |
Fields
| |
Instances
data ChatBotCommand Source #
Constructors
| CBCCommand | |
| CBCMenu | |
Fields
| |
Instances
| FromJSON ChatBotCommand Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser ChatBotCommand parseJSONList :: Value -> Parser [ChatBotCommand] omittedField :: Maybe ChatBotCommand | |
| ToJSON ChatBotCommand Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: ChatBotCommand -> Value toEncoding :: ChatBotCommand -> Encoding toJSONList :: [ChatBotCommand] -> Value toEncodingList :: [ChatBotCommand] -> Encoding omitField :: ChatBotCommand -> Bool | |
| Show ChatBotCommand Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> ChatBotCommand -> ShowS show :: ChatBotCommand -> String showList :: [ChatBotCommand] -> ShowS | |
| Eq ChatBotCommand Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: ChatBotCommand -> ChatBotCommand -> Bool (/=) :: ChatBotCommand -> ChatBotCommand -> Bool | |
setGroupPreference :: forall (f :: GroupFeature). GroupFeatureNoRoleI f => SGroupFeature f -> GroupFeatureEnabled -> Maybe GroupPreferences -> GroupPreferences Source #
setGroupPreferenceRole :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupFeatureEnabled -> Maybe GroupMemberRole -> Maybe GroupPreferences -> GroupPreferences Source #
setGroupPreference' :: forall (f :: GroupFeature). SGroupFeature f -> GroupFeaturePreference f -> Maybe GroupPreferences -> GroupPreferences Source #
setGroupPreference_ :: forall (f :: GroupFeature). SGroupFeature f -> GroupFeaturePreference f -> FullGroupPreferences -> GroupPreferences Source #
setGroupTimedMessagesPreference :: TimedMessagesGroupPreference -> Maybe GroupPreferences -> GroupPreferences Source #
data FullPreferences Source #
Constructors
| FullPreferences | |
Instances
Constructors
| ListDef [a] |
Instances
| FromJSON a => FromJSON (ListDef a) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser (ListDef a) parseJSONList :: Value -> Parser [ListDef a] omittedField :: Maybe (ListDef a) | |
| ToJSON a => ToJSON (ListDef a) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toEncoding :: ListDef a -> Encoding toJSONList :: [ListDef a] -> Value toEncodingList :: [ListDef a] -> Encoding | |
| Show a => Show (ListDef a) Source # | |
| Eq a => Eq (ListDef a) Source # | |
data FullGroupPreferences Source #
Constructors
Instances
data ContactUserPreferences Source #
Constructors
Instances
data ContactUserPreference p Source #
Constructors
| ContactUserPreference | |
Fields
| |
Instances
data ContactUserPref p Source #
Constructors
| CUPContact | |
Fields
| |
| CUPUser | |
Fields
| |
Instances
| FromJSON p => FromJSON (ContactUserPref p) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser (ContactUserPref p) parseJSONList :: Value -> Parser [ContactUserPref p] omittedField :: Maybe (ContactUserPref p) | |
| ToJSON p => ToJSON (ContactUserPref p) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: ContactUserPref p -> Value toEncoding :: ContactUserPref p -> Encoding toJSONList :: [ContactUserPref p] -> Value toEncodingList :: [ContactUserPref p] -> Encoding omitField :: ContactUserPref p -> Bool | |
| Show p => Show (ContactUserPref p) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> ContactUserPref p -> ShowS show :: ContactUserPref p -> String showList :: [ContactUserPref p] -> ShowS | |
| Eq p => Eq (ContactUserPref p) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: ContactUserPref p -> ContactUserPref p -> Bool (/=) :: ContactUserPref p -> ContactUserPref p -> Bool | |
data TimedMessagesPreference Source #
Constructors
| TimedMessagesPreference | |
Fields
| |
Instances
data FullDeletePreference Source #
Constructors
| FullDeletePreference | |
Fields | |
Instances
data ReactionsPreference Source #
Constructors
| ReactionsPreference | |
Fields | |
Instances
data VoicePreference Source #
Constructors
| VoicePreference | |
Fields | |
Instances
data FilesPreference Source #
Constructors
| FilesPreference | |
Fields | |
Instances
data CallsPreference Source #
Constructors
| CallsPreference | |
Fields | |
Instances
data SessionsPreference Source #
Constructors
| SessionsPreference | |
Fields | |
Instances
class (Eq (FeaturePreference f), HasField "allow" (FeaturePreference f) FeatureAllowed) => FeatureI (f :: ChatFeature) where Source #
Associated Types
type FeaturePreference (f :: ChatFeature) = (p :: Type) | p -> f Source #
Instances
data GroupPreference Source #
Constructors
| GroupPreference | |
Fields | |
Instances
| FromJSON GroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser GroupPreference parseJSONList :: Value -> Parser [GroupPreference] omittedField :: Maybe GroupPreference | |
| ToJSON GroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: GroupPreference -> Value toEncoding :: GroupPreference -> Encoding toJSONList :: [GroupPreference] -> Value toEncodingList :: [GroupPreference] -> Encoding omitField :: GroupPreference -> Bool | |
| Show GroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> GroupPreference -> ShowS show :: GroupPreference -> String showList :: [GroupPreference] -> ShowS | |
| Eq GroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: GroupPreference -> GroupPreference -> Bool (/=) :: GroupPreference -> GroupPreference -> Bool | |
| HasField "enable" GroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: GroupPreference -> (GroupFeatureEnabled -> GroupPreference, GroupFeatureEnabled) | |
data TimedMessagesGroupPreference Source #
Constructors
| TimedMessagesGroupPreference | |
Fields
| |
Instances
| FromJSON TimedMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser TimedMessagesGroupPreference parseJSONList :: Value -> Parser [TimedMessagesGroupPreference] omittedField :: Maybe TimedMessagesGroupPreference | |
| ToJSON TimedMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: TimedMessagesGroupPreference -> Value toEncoding :: TimedMessagesGroupPreference -> Encoding toJSONList :: [TimedMessagesGroupPreference] -> Value toEncodingList :: [TimedMessagesGroupPreference] -> Encoding omitField :: TimedMessagesGroupPreference -> Bool | |
| Show TimedMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> TimedMessagesGroupPreference -> ShowS show :: TimedMessagesGroupPreference -> String showList :: [TimedMessagesGroupPreference] -> ShowS | |
| Eq TimedMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: TimedMessagesGroupPreference -> TimedMessagesGroupPreference -> Bool (/=) :: TimedMessagesGroupPreference -> TimedMessagesGroupPreference -> Bool | |
| HasField "enable" TimedMessagesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
data DirectMessagesGroupPreference Source #
Constructors
| DirectMessagesGroupPreference | |
Fields
| |
Instances
| FromJSON DirectMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser DirectMessagesGroupPreference parseJSONList :: Value -> Parser [DirectMessagesGroupPreference] | |
| ToJSON DirectMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: DirectMessagesGroupPreference -> Value toEncoding :: DirectMessagesGroupPreference -> Encoding toJSONList :: [DirectMessagesGroupPreference] -> Value toEncodingList :: [DirectMessagesGroupPreference] -> Encoding omitField :: DirectMessagesGroupPreference -> Bool | |
| Show DirectMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> DirectMessagesGroupPreference -> ShowS show :: DirectMessagesGroupPreference -> String showList :: [DirectMessagesGroupPreference] -> ShowS | |
| Eq DirectMessagesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: DirectMessagesGroupPreference -> DirectMessagesGroupPreference -> Bool (/=) :: DirectMessagesGroupPreference -> DirectMessagesGroupPreference -> Bool | |
| HasField "enable" DirectMessagesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "role" DirectMessagesGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: DirectMessagesGroupPreference -> (Maybe GroupMemberRole -> DirectMessagesGroupPreference, Maybe GroupMemberRole) | |
data FullDeleteGroupPreference Source #
Constructors
| FullDeleteGroupPreference | |
Fields
| |
Instances
| FromJSON FullDeleteGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser FullDeleteGroupPreference parseJSONList :: Value -> Parser [FullDeleteGroupPreference] omittedField :: Maybe FullDeleteGroupPreference | |
| ToJSON FullDeleteGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: FullDeleteGroupPreference -> Value toEncoding :: FullDeleteGroupPreference -> Encoding toJSONList :: [FullDeleteGroupPreference] -> Value toEncodingList :: [FullDeleteGroupPreference] -> Encoding omitField :: FullDeleteGroupPreference -> Bool | |
| Show FullDeleteGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> FullDeleteGroupPreference -> ShowS show :: FullDeleteGroupPreference -> String showList :: [FullDeleteGroupPreference] -> ShowS | |
| Eq FullDeleteGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: FullDeleteGroupPreference -> FullDeleteGroupPreference -> Bool (/=) :: FullDeleteGroupPreference -> FullDeleteGroupPreference -> Bool | |
| HasField "enable" FullDeleteGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "role" FullDeleteGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FullDeleteGroupPreference -> (Maybe GroupMemberRole -> FullDeleteGroupPreference, Maybe GroupMemberRole) | |
data ReactionsGroupPreference Source #
Constructors
| ReactionsGroupPreference | |
Fields | |
Instances
| FromJSON ReactionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser ReactionsGroupPreference parseJSONList :: Value -> Parser [ReactionsGroupPreference] omittedField :: Maybe ReactionsGroupPreference | |
| ToJSON ReactionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: ReactionsGroupPreference -> Value toEncoding :: ReactionsGroupPreference -> Encoding toJSONList :: [ReactionsGroupPreference] -> Value toEncodingList :: [ReactionsGroupPreference] -> Encoding omitField :: ReactionsGroupPreference -> Bool | |
| Show ReactionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> ReactionsGroupPreference -> ShowS show :: ReactionsGroupPreference -> String showList :: [ReactionsGroupPreference] -> ShowS | |
| Eq ReactionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: ReactionsGroupPreference -> ReactionsGroupPreference -> Bool (/=) :: ReactionsGroupPreference -> ReactionsGroupPreference -> Bool | |
| HasField "enable" ReactionsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
data VoiceGroupPreference Source #
Constructors
| VoiceGroupPreference | |
Fields
| |
Instances
| FromJSON VoiceGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser VoiceGroupPreference parseJSONList :: Value -> Parser [VoiceGroupPreference] omittedField :: Maybe VoiceGroupPreference | |
| ToJSON VoiceGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: VoiceGroupPreference -> Value toEncoding :: VoiceGroupPreference -> Encoding toJSONList :: [VoiceGroupPreference] -> Value toEncodingList :: [VoiceGroupPreference] -> Encoding omitField :: VoiceGroupPreference -> Bool | |
| Show VoiceGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> VoiceGroupPreference -> ShowS show :: VoiceGroupPreference -> String showList :: [VoiceGroupPreference] -> ShowS | |
| Eq VoiceGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: VoiceGroupPreference -> VoiceGroupPreference -> Bool (/=) :: VoiceGroupPreference -> VoiceGroupPreference -> Bool | |
| HasField "enable" VoiceGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: VoiceGroupPreference -> (GroupFeatureEnabled -> VoiceGroupPreference, GroupFeatureEnabled) | |
| HasField "role" VoiceGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: VoiceGroupPreference -> (Maybe GroupMemberRole -> VoiceGroupPreference, Maybe GroupMemberRole) | |
data FilesGroupPreference Source #
Constructors
| FilesGroupPreference | |
Fields
| |
Instances
| FromJSON FilesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser FilesGroupPreference parseJSONList :: Value -> Parser [FilesGroupPreference] omittedField :: Maybe FilesGroupPreference | |
| ToJSON FilesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: FilesGroupPreference -> Value toEncoding :: FilesGroupPreference -> Encoding toJSONList :: [FilesGroupPreference] -> Value toEncodingList :: [FilesGroupPreference] -> Encoding omitField :: FilesGroupPreference -> Bool | |
| Show FilesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> FilesGroupPreference -> ShowS show :: FilesGroupPreference -> String showList :: [FilesGroupPreference] -> ShowS | |
| Eq FilesGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: FilesGroupPreference -> FilesGroupPreference -> Bool (/=) :: FilesGroupPreference -> FilesGroupPreference -> Bool | |
| HasField "enable" FilesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FilesGroupPreference -> (GroupFeatureEnabled -> FilesGroupPreference, GroupFeatureEnabled) | |
| HasField "role" FilesGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FilesGroupPreference -> (Maybe GroupMemberRole -> FilesGroupPreference, Maybe GroupMemberRole) | |
data SimplexLinksGroupPreference Source #
Constructors
| SimplexLinksGroupPreference | |
Fields
| |
Instances
| FromJSON SimplexLinksGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser SimplexLinksGroupPreference parseJSONList :: Value -> Parser [SimplexLinksGroupPreference] omittedField :: Maybe SimplexLinksGroupPreference | |
| ToJSON SimplexLinksGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: SimplexLinksGroupPreference -> Value toEncoding :: SimplexLinksGroupPreference -> Encoding toJSONList :: [SimplexLinksGroupPreference] -> Value toEncodingList :: [SimplexLinksGroupPreference] -> Encoding omitField :: SimplexLinksGroupPreference -> Bool | |
| Show SimplexLinksGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> SimplexLinksGroupPreference -> ShowS show :: SimplexLinksGroupPreference -> String showList :: [SimplexLinksGroupPreference] -> ShowS | |
| Eq SimplexLinksGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: SimplexLinksGroupPreference -> SimplexLinksGroupPreference -> Bool (/=) :: SimplexLinksGroupPreference -> SimplexLinksGroupPreference -> Bool | |
| HasField "enable" SimplexLinksGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "role" SimplexLinksGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: SimplexLinksGroupPreference -> (Maybe GroupMemberRole -> SimplexLinksGroupPreference, Maybe GroupMemberRole) | |
data ReportsGroupPreference Source #
Constructors
| ReportsGroupPreference | |
Fields | |
Instances
| FromJSON ReportsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser ReportsGroupPreference parseJSONList :: Value -> Parser [ReportsGroupPreference] omittedField :: Maybe ReportsGroupPreference | |
| ToJSON ReportsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: ReportsGroupPreference -> Value toEncoding :: ReportsGroupPreference -> Encoding toJSONList :: [ReportsGroupPreference] -> Value toEncodingList :: [ReportsGroupPreference] -> Encoding omitField :: ReportsGroupPreference -> Bool | |
| Show ReportsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> ReportsGroupPreference -> ShowS show :: ReportsGroupPreference -> String showList :: [ReportsGroupPreference] -> ShowS | |
| Eq ReportsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: ReportsGroupPreference -> ReportsGroupPreference -> Bool (/=) :: ReportsGroupPreference -> ReportsGroupPreference -> Bool | |
| HasField "enable" ReportsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: ReportsGroupPreference -> (GroupFeatureEnabled -> ReportsGroupPreference, GroupFeatureEnabled) | |
data HistoryGroupPreference Source #
Constructors
| HistoryGroupPreference | |
Fields | |
Instances
| FromJSON HistoryGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser HistoryGroupPreference parseJSONList :: Value -> Parser [HistoryGroupPreference] omittedField :: Maybe HistoryGroupPreference | |
| ToJSON HistoryGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: HistoryGroupPreference -> Value toEncoding :: HistoryGroupPreference -> Encoding toJSONList :: [HistoryGroupPreference] -> Value toEncodingList :: [HistoryGroupPreference] -> Encoding omitField :: HistoryGroupPreference -> Bool | |
| Show HistoryGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> HistoryGroupPreference -> ShowS show :: HistoryGroupPreference -> String showList :: [HistoryGroupPreference] -> ShowS | |
| Eq HistoryGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: HistoryGroupPreference -> HistoryGroupPreference -> Bool (/=) :: HistoryGroupPreference -> HistoryGroupPreference -> Bool | |
| HasField "enable" HistoryGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: HistoryGroupPreference -> (GroupFeatureEnabled -> HistoryGroupPreference, GroupFeatureEnabled) | |
data SessionsGroupPreference Source #
Constructors
| SessionsGroupPreference | |
Fields
| |
Instances
| FromJSON SessionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser SessionsGroupPreference parseJSONList :: Value -> Parser [SessionsGroupPreference] omittedField :: Maybe SessionsGroupPreference | |
| ToJSON SessionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: SessionsGroupPreference -> Value toEncoding :: SessionsGroupPreference -> Encoding toJSONList :: [SessionsGroupPreference] -> Value toEncodingList :: [SessionsGroupPreference] -> Encoding omitField :: SessionsGroupPreference -> Bool | |
| Show SessionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> SessionsGroupPreference -> ShowS show :: SessionsGroupPreference -> String showList :: [SessionsGroupPreference] -> ShowS | |
| Eq SessionsGroupPreference Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: SessionsGroupPreference -> SessionsGroupPreference -> Bool (/=) :: SessionsGroupPreference -> SessionsGroupPreference -> Bool | |
| HasField "enable" SessionsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: SessionsGroupPreference -> (GroupFeatureEnabled -> SessionsGroupPreference, GroupFeatureEnabled) | |
| HasField "role" SessionsGroupPreference (Maybe GroupMemberRole) Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: SessionsGroupPreference -> (Maybe GroupMemberRole -> SessionsGroupPreference, Maybe GroupMemberRole) | |
class (Eq (GroupFeaturePreference f), HasField "enable" (GroupFeaturePreference f) GroupFeatureEnabled) => GroupFeatureI (f :: GroupFeature) where Source #
Associated Types
type GroupFeaturePreference (f :: GroupFeature) = (p :: Type) | p -> f Source #
Methods
sGroupFeature :: SGroupFeature f Source #
groupPrefParam :: GroupFeaturePreference f -> Maybe Int Source #
groupPrefRole :: GroupFeaturePreference f -> Maybe GroupMemberRole Source #
Instances
| GroupFeatureI 'GFDirectMessages Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFDirectMessages Source # groupPrefParam :: GroupFeaturePreference 'GFDirectMessages -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFDirectMessages -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFFiles Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFFiles Source # groupPrefParam :: GroupFeaturePreference 'GFFiles -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFFiles -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFFullDelete Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFFullDelete Source # groupPrefParam :: GroupFeaturePreference 'GFFullDelete -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFFullDelete -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFHistory Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFHistory Source # groupPrefParam :: GroupFeaturePreference 'GFHistory -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFHistory -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFReactions Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFReactions Source # groupPrefParam :: GroupFeaturePreference 'GFReactions -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFReactions -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFReports Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFReports Source # groupPrefParam :: GroupFeaturePreference 'GFReports -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFReports -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFSessions Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFSessions Source # groupPrefParam :: GroupFeaturePreference 'GFSessions -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFSessions -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFSimplexLinks Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFSimplexLinks Source # groupPrefParam :: GroupFeaturePreference 'GFSimplexLinks -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFSimplexLinks -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFTimedMessages Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFTimedMessages Source # groupPrefParam :: GroupFeaturePreference 'GFTimedMessages -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFTimedMessages -> Maybe GroupMemberRole Source # | |||||
| GroupFeatureI 'GFVoice Source # | |||||
Defined in Simplex.Chat.Types.Preferences Associated Types
Methods sGroupFeature :: SGroupFeature 'GFVoice Source # groupPrefParam :: GroupFeaturePreference 'GFVoice -> Maybe Int Source # groupPrefRole :: GroupFeaturePreference 'GFVoice -> Maybe GroupMemberRole Source # | |||||
class GroupFeatureI f => GroupFeatureNoRoleI (f :: GroupFeature) Source #
Instances
| GroupFeatureNoRoleI 'GFFullDelete Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureNoRoleI 'GFHistory Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureNoRoleI 'GFReactions Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureNoRoleI 'GFReports Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureNoRoleI 'GFTimedMessages Source # | |
Defined in Simplex.Chat.Types.Preferences | |
class (GroupFeatureI f, HasField "role" (GroupFeaturePreference f) (Maybe GroupMemberRole)) => GroupFeatureRoleI (f :: GroupFeature) Source #
Instances
| GroupFeatureRoleI 'GFDirectMessages Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureRoleI 'GFFiles Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureRoleI 'GFFullDelete Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureRoleI 'GFSessions Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureRoleI 'GFSimplexLinks Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| GroupFeatureRoleI 'GFVoice Source # | |
Defined in Simplex.Chat.Types.Preferences | |
groupPrefStateText :: HasField "enable" p GroupFeatureEnabled => GroupFeature -> p -> Maybe Int -> Maybe GroupMemberRole -> Text Source #
groupParamText_ :: GroupFeature -> Maybe Int -> Text Source #
groupPreferenceText :: forall (f :: GroupFeature). GroupFeatureI f => GroupFeaturePreference f -> Text Source #
timedTTLText :: Int -> Text Source #
toGroupPreference :: forall (f :: GroupFeature). GroupFeatureI f => GroupFeaturePreference f -> GroupPreference Source #
data FeatureAllowed Source #
Instances
| FromJSON FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser FeatureAllowed parseJSONList :: Value -> Parser [FeatureAllowed] omittedField :: Maybe FeatureAllowed | |
| ToJSON FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: FeatureAllowed -> Value toEncoding :: FeatureAllowed -> Encoding toJSONList :: [FeatureAllowed] -> Value toEncodingList :: [FeatureAllowed] -> Encoding omitField :: FeatureAllowed -> Bool | |
| Show FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> FeatureAllowed -> ShowS show :: FeatureAllowed -> String showList :: [FeatureAllowed] -> ShowS | |
| Eq FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: FeatureAllowed -> FeatureAllowed -> Bool (/=) :: FeatureAllowed -> FeatureAllowed -> Bool | |
| StrEncoding FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods strEncode :: FeatureAllowed -> ByteString strDecode :: ByteString -> Either String FeatureAllowed strP :: Parser FeatureAllowed | |
| FromField FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods fromField :: FieldParser FeatureAllowed # | |
| ToField FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toField :: FeatureAllowed -> SQLData # | |
| HasField "allow" CallsPreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: CallsPreference -> (FeatureAllowed -> CallsPreference, FeatureAllowed) | |
| HasField "allow" FilesPreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FilesPreference -> (FeatureAllowed -> FilesPreference, FeatureAllowed) | |
| HasField "allow" FullDeletePreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FullDeletePreference -> (FeatureAllowed -> FullDeletePreference, FeatureAllowed) | |
| HasField "allow" ReactionsPreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: ReactionsPreference -> (FeatureAllowed -> ReactionsPreference, FeatureAllowed) | |
| HasField "allow" SessionsPreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: SessionsPreference -> (FeatureAllowed -> SessionsPreference, FeatureAllowed) | |
| HasField "allow" TimedMessagesPreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: TimedMessagesPreference -> (FeatureAllowed -> TimedMessagesPreference, FeatureAllowed) | |
| HasField "allow" VoicePreference FeatureAllowed Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: VoicePreference -> (FeatureAllowed -> VoicePreference, FeatureAllowed) | |
data GroupFeatureEnabled Source #
Instances
| FromJSON GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser GroupFeatureEnabled parseJSONList :: Value -> Parser [GroupFeatureEnabled] omittedField :: Maybe GroupFeatureEnabled | |
| ToJSON GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: GroupFeatureEnabled -> Value toEncoding :: GroupFeatureEnabled -> Encoding toJSONList :: [GroupFeatureEnabled] -> Value toEncodingList :: [GroupFeatureEnabled] -> Encoding omitField :: GroupFeatureEnabled -> Bool | |
| Show GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> GroupFeatureEnabled -> ShowS show :: GroupFeatureEnabled -> String showList :: [GroupFeatureEnabled] -> ShowS | |
| Eq GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods (==) :: GroupFeatureEnabled -> GroupFeatureEnabled -> Bool (/=) :: GroupFeatureEnabled -> GroupFeatureEnabled -> Bool | |
| StrEncoding GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods strEncode :: GroupFeatureEnabled -> ByteString strDecode :: ByteString -> Either String GroupFeatureEnabled strP :: Parser GroupFeatureEnabled | |
| FromField GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods fromField :: FieldParser GroupFeatureEnabled # | |
| ToField GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toField :: GroupFeatureEnabled -> SQLData # | |
| HasField "enable" DirectMessagesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "enable" FilesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: FilesGroupPreference -> (GroupFeatureEnabled -> FilesGroupPreference, GroupFeatureEnabled) | |
| HasField "enable" FullDeleteGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "enable" GroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: GroupPreference -> (GroupFeatureEnabled -> GroupPreference, GroupFeatureEnabled) | |
| HasField "enable" HistoryGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: HistoryGroupPreference -> (GroupFeatureEnabled -> HistoryGroupPreference, GroupFeatureEnabled) | |
| HasField "enable" ReactionsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "enable" ReportsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: ReportsGroupPreference -> (GroupFeatureEnabled -> ReportsGroupPreference, GroupFeatureEnabled) | |
| HasField "enable" SessionsGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: SessionsGroupPreference -> (GroupFeatureEnabled -> SessionsGroupPreference, GroupFeatureEnabled) | |
| HasField "enable" SimplexLinksGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "enable" TimedMessagesGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
| HasField "enable" VoiceGroupPreference GroupFeatureEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods hasField :: VoiceGroupPreference -> (GroupFeatureEnabled -> VoiceGroupPreference, GroupFeatureEnabled) | |
groupFeatureState :: forall (f :: GroupFeature). GroupFeatureI f => GroupFeaturePreference f -> (GroupFeatureEnabled, Maybe Int, Maybe GroupMemberRole) Source #
mergePreferences :: Maybe Preferences -> Maybe Preferences -> Bool -> FullPreferences Source #
fullPreferences' :: Maybe Preferences -> FullPreferences Source #
mergeGroupPreferences :: Maybe GroupPreferences -> FullGroupPreferences Source #
data PrefEnabled Source #
Constructors
| PrefEnabled | |
Fields
| |
Instances
| FromJSON PrefEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods parseJSON :: Value -> Parser PrefEnabled parseJSONList :: Value -> Parser [PrefEnabled] omittedField :: Maybe PrefEnabled | |
| ToJSON PrefEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods toJSON :: PrefEnabled -> Value toEncoding :: PrefEnabled -> Encoding toJSONList :: [PrefEnabled] -> Value toEncodingList :: [PrefEnabled] -> Encoding omitField :: PrefEnabled -> Bool | |
| Show PrefEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences Methods showsPrec :: Int -> PrefEnabled -> ShowS show :: PrefEnabled -> String showList :: [PrefEnabled] -> ShowS | |
| Eq PrefEnabled Source # | |
Defined in Simplex.Chat.Types.Preferences | |
prefEnabled :: forall (f :: ChatFeature). FeatureI f => Bool -> FeaturePreference f -> FeaturePreference f -> PrefEnabled Source #
prefStateText :: ChatFeature -> FeatureAllowed -> Maybe Int -> Text Source #
featureStateText :: ChatFeature -> PrefEnabled -> Maybe Int -> Text Source #
paramText_ :: ChatFeature -> Maybe Int -> Text Source #
prefEnabledToText :: ChatFeature -> PrefEnabled -> Maybe Int -> Text Source #
preferenceText :: forall (f :: ChatFeature). FeatureI f => FeaturePreference f -> Text Source #
featureState :: forall (f :: ChatFeature). FeatureI f => ContactUserPreference (FeaturePreference f) -> (PrefEnabled, Maybe Int) Source #
preferenceState :: forall (f :: ChatFeature). FeatureI f => FeaturePreference f -> (FeatureAllowed, Maybe Int) Source #
getContactUserPreference :: forall (f :: ChatFeature). SChatFeature f -> ContactUserPreferences -> ContactUserPreference (FeaturePreference f) Source #