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