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