module TD.Query.ClearSearchedForTags
(ClearSearchedForTags(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data ClearSearchedForTags
= ClearSearchedForTags
{ ClearSearchedForTags -> Maybe Bool
clear_cashtags :: Maybe Bool
}
deriving (ClearSearchedForTags -> ClearSearchedForTags -> Bool
(ClearSearchedForTags -> ClearSearchedForTags -> Bool)
-> (ClearSearchedForTags -> ClearSearchedForTags -> Bool)
-> Eq ClearSearchedForTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearSearchedForTags -> ClearSearchedForTags -> Bool
== :: ClearSearchedForTags -> ClearSearchedForTags -> Bool
$c/= :: ClearSearchedForTags -> ClearSearchedForTags -> Bool
/= :: ClearSearchedForTags -> ClearSearchedForTags -> Bool
Eq, Int -> ClearSearchedForTags -> ShowS
[ClearSearchedForTags] -> ShowS
ClearSearchedForTags -> String
(Int -> ClearSearchedForTags -> ShowS)
-> (ClearSearchedForTags -> String)
-> ([ClearSearchedForTags] -> ShowS)
-> Show ClearSearchedForTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearSearchedForTags -> ShowS
showsPrec :: Int -> ClearSearchedForTags -> ShowS
$cshow :: ClearSearchedForTags -> String
show :: ClearSearchedForTags -> String
$cshowList :: [ClearSearchedForTags] -> ShowS
showList :: [ClearSearchedForTags] -> ShowS
Show)
instance I.ShortShow ClearSearchedForTags where
shortShow :: ClearSearchedForTags -> String
shortShow
ClearSearchedForTags
{ clear_cashtags :: ClearSearchedForTags -> Maybe Bool
clear_cashtags = Maybe Bool
clear_cashtags_
}
= String
"ClearSearchedForTags"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"clear_cashtags" String -> Maybe Bool -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe Bool
clear_cashtags_
]
instance AT.ToJSON ClearSearchedForTags where
toJSON :: ClearSearchedForTags -> Value
toJSON
ClearSearchedForTags
{ clear_cashtags :: ClearSearchedForTags -> Maybe Bool
clear_cashtags = Maybe Bool
clear_cashtags_
}
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"clearSearchedForTags"
, Key
"clear_cashtags" Key -> Maybe Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe Bool
clear_cashtags_
]