module TD.Query.GetOwnedBots
  (GetOwnedBots(..)
  ) where

import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I

-- | Returns the list of bots owned by the current user. Returns 'TD.Data.Users.Users'
data GetOwnedBots
  = GetOwnedBots
  deriving (GetOwnedBots -> GetOwnedBots -> Bool
(GetOwnedBots -> GetOwnedBots -> Bool)
-> (GetOwnedBots -> GetOwnedBots -> Bool) -> Eq GetOwnedBots
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetOwnedBots -> GetOwnedBots -> Bool
== :: GetOwnedBots -> GetOwnedBots -> Bool
$c/= :: GetOwnedBots -> GetOwnedBots -> Bool
/= :: GetOwnedBots -> GetOwnedBots -> Bool
Eq, Int -> GetOwnedBots -> ShowS
[GetOwnedBots] -> ShowS
GetOwnedBots -> String
(Int -> GetOwnedBots -> ShowS)
-> (GetOwnedBots -> String)
-> ([GetOwnedBots] -> ShowS)
-> Show GetOwnedBots
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetOwnedBots -> ShowS
showsPrec :: Int -> GetOwnedBots -> ShowS
$cshow :: GetOwnedBots -> String
show :: GetOwnedBots -> String
$cshowList :: [GetOwnedBots] -> ShowS
showList :: [GetOwnedBots] -> ShowS
Show)

instance I.ShortShow GetOwnedBots where
  shortShow :: GetOwnedBots -> String
shortShow
    GetOwnedBots
GetOwnedBots
        = String
"GetOwnedBots"

instance AT.ToJSON GetOwnedBots where
  toJSON :: GetOwnedBots -> Value
toJSON
    GetOwnedBots
GetOwnedBots
        = [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
"getOwnedBots"
          ]