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