module TD.Query.TestCallEmpty
  (TestCallEmpty(..)
  ) where

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

-- | Does nothing; for testing only. This is an offline method. Can be called before authorization. Returns 'TD.Data.Ok.Ok'
data TestCallEmpty
  = TestCallEmpty
  deriving (TestCallEmpty -> TestCallEmpty -> Bool
(TestCallEmpty -> TestCallEmpty -> Bool)
-> (TestCallEmpty -> TestCallEmpty -> Bool) -> Eq TestCallEmpty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TestCallEmpty -> TestCallEmpty -> Bool
== :: TestCallEmpty -> TestCallEmpty -> Bool
$c/= :: TestCallEmpty -> TestCallEmpty -> Bool
/= :: TestCallEmpty -> TestCallEmpty -> Bool
Eq, Int -> TestCallEmpty -> ShowS
[TestCallEmpty] -> ShowS
TestCallEmpty -> String
(Int -> TestCallEmpty -> ShowS)
-> (TestCallEmpty -> String)
-> ([TestCallEmpty] -> ShowS)
-> Show TestCallEmpty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TestCallEmpty -> ShowS
showsPrec :: Int -> TestCallEmpty -> ShowS
$cshow :: TestCallEmpty -> String
show :: TestCallEmpty -> String
$cshowList :: [TestCallEmpty] -> ShowS
showList :: [TestCallEmpty] -> ShowS
Show)

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

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