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