module TD.Query.ClearAutosaveSettingsExceptions
  (ClearAutosaveSettingsExceptions(..)
  ) where

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

-- | Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings. Returns 'TD.Data.Ok.Ok'
data ClearAutosaveSettingsExceptions
  = ClearAutosaveSettingsExceptions
  deriving (ClearAutosaveSettingsExceptions
-> ClearAutosaveSettingsExceptions -> Bool
(ClearAutosaveSettingsExceptions
 -> ClearAutosaveSettingsExceptions -> Bool)
-> (ClearAutosaveSettingsExceptions
    -> ClearAutosaveSettingsExceptions -> Bool)
-> Eq ClearAutosaveSettingsExceptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearAutosaveSettingsExceptions
-> ClearAutosaveSettingsExceptions -> Bool
== :: ClearAutosaveSettingsExceptions
-> ClearAutosaveSettingsExceptions -> Bool
$c/= :: ClearAutosaveSettingsExceptions
-> ClearAutosaveSettingsExceptions -> Bool
/= :: ClearAutosaveSettingsExceptions
-> ClearAutosaveSettingsExceptions -> Bool
Eq, Int -> ClearAutosaveSettingsExceptions -> ShowS
[ClearAutosaveSettingsExceptions] -> ShowS
ClearAutosaveSettingsExceptions -> String
(Int -> ClearAutosaveSettingsExceptions -> ShowS)
-> (ClearAutosaveSettingsExceptions -> String)
-> ([ClearAutosaveSettingsExceptions] -> ShowS)
-> Show ClearAutosaveSettingsExceptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearAutosaveSettingsExceptions -> ShowS
showsPrec :: Int -> ClearAutosaveSettingsExceptions -> ShowS
$cshow :: ClearAutosaveSettingsExceptions -> String
show :: ClearAutosaveSettingsExceptions -> String
$cshowList :: [ClearAutosaveSettingsExceptions] -> ShowS
showList :: [ClearAutosaveSettingsExceptions] -> ShowS
Show)

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

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