module TD.Query.TestUseUpdate
  (TestUseUpdate(..)
  ) where

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

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

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

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