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