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