module TD.Query.LoadCommunityFullInfo
(LoadCommunityFullInfo(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data
=
{ :: Maybe Int
}
deriving (LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool
(LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool)
-> (LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool)
-> Eq LoadCommunityFullInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool
== :: LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool
$c/= :: LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool
/= :: LoadCommunityFullInfo -> LoadCommunityFullInfo -> Bool
Eq, Int -> LoadCommunityFullInfo -> ShowS
[LoadCommunityFullInfo] -> ShowS
LoadCommunityFullInfo -> String
(Int -> LoadCommunityFullInfo -> ShowS)
-> (LoadCommunityFullInfo -> String)
-> ([LoadCommunityFullInfo] -> ShowS)
-> Show LoadCommunityFullInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LoadCommunityFullInfo -> ShowS
showsPrec :: Int -> LoadCommunityFullInfo -> ShowS
$cshow :: LoadCommunityFullInfo -> String
show :: LoadCommunityFullInfo -> String
$cshowList :: [LoadCommunityFullInfo] -> ShowS
showList :: [LoadCommunityFullInfo] -> ShowS
Show)
instance I.ShortShow LoadCommunityFullInfo where
shortShow :: LoadCommunityFullInfo -> String
shortShow
LoadCommunityFullInfo
{ community_id :: LoadCommunityFullInfo -> Maybe Int
community_id = Maybe Int
community_id_
}
= String
"LoadCommunityFullInfo"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"community_id" String -> Maybe Int -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe Int
community_id_
]
instance AT.ToJSON LoadCommunityFullInfo where
toJSON :: LoadCommunityFullInfo -> Value
toJSON
LoadCommunityFullInfo
{ community_id :: LoadCommunityFullInfo -> Maybe Int
community_id = Maybe Int
community_id_
}
= [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
"loadCommunityFullInfo"
, Key
"community_id" Key -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe Int
community_id_
]