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