module TD.Query.ResetInstalledBackgrounds
  (ResetInstalledBackgrounds(..)
  ) where

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

-- | Resets list of installed backgrounds to its default value. Returns 'TD.Data.Ok.Ok'
data ResetInstalledBackgrounds
  = ResetInstalledBackgrounds
  deriving (ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool
(ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool)
-> (ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool)
-> Eq ResetInstalledBackgrounds
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool
== :: ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool
$c/= :: ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool
/= :: ResetInstalledBackgrounds -> ResetInstalledBackgrounds -> Bool
Eq, Int -> ResetInstalledBackgrounds -> ShowS
[ResetInstalledBackgrounds] -> ShowS
ResetInstalledBackgrounds -> String
(Int -> ResetInstalledBackgrounds -> ShowS)
-> (ResetInstalledBackgrounds -> String)
-> ([ResetInstalledBackgrounds] -> ShowS)
-> Show ResetInstalledBackgrounds
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetInstalledBackgrounds -> ShowS
showsPrec :: Int -> ResetInstalledBackgrounds -> ShowS
$cshow :: ResetInstalledBackgrounds -> String
show :: ResetInstalledBackgrounds -> String
$cshowList :: [ResetInstalledBackgrounds] -> ShowS
showList :: [ResetInstalledBackgrounds] -> ShowS
Show)

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

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