module TD.Query.GetAvailableGifts
(GetAvailableGifts(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data GetAvailableGifts
= GetAvailableGifts
deriving (GetAvailableGifts -> GetAvailableGifts -> Bool
(GetAvailableGifts -> GetAvailableGifts -> Bool)
-> (GetAvailableGifts -> GetAvailableGifts -> Bool)
-> Eq GetAvailableGifts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetAvailableGifts -> GetAvailableGifts -> Bool
== :: GetAvailableGifts -> GetAvailableGifts -> Bool
$c/= :: GetAvailableGifts -> GetAvailableGifts -> Bool
/= :: GetAvailableGifts -> GetAvailableGifts -> Bool
Eq, Int -> GetAvailableGifts -> ShowS
[GetAvailableGifts] -> ShowS
GetAvailableGifts -> String
(Int -> GetAvailableGifts -> ShowS)
-> (GetAvailableGifts -> String)
-> ([GetAvailableGifts] -> ShowS)
-> Show GetAvailableGifts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetAvailableGifts -> ShowS
showsPrec :: Int -> GetAvailableGifts -> ShowS
$cshow :: GetAvailableGifts -> String
show :: GetAvailableGifts -> String
$cshowList :: [GetAvailableGifts] -> ShowS
showList :: [GetAvailableGifts] -> ShowS
Show)
instance I.ShortShow GetAvailableGifts where
shortShow :: GetAvailableGifts -> String
shortShow
GetAvailableGifts
GetAvailableGifts
= String
"GetAvailableGifts"
instance AT.ToJSON GetAvailableGifts where
toJSON :: GetAvailableGifts -> Value
toJSON
GetAvailableGifts
GetAvailableGifts
= [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
"getAvailableGifts"
]