module TD.Query.GetSavedAnimations
  (GetSavedAnimations(..)
  ) where

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

-- | Returns saved animations. Returns 'TD.Data.Animations.Animations'
data GetSavedAnimations
  = GetSavedAnimations
  deriving (GetSavedAnimations -> GetSavedAnimations -> Bool
(GetSavedAnimations -> GetSavedAnimations -> Bool)
-> (GetSavedAnimations -> GetSavedAnimations -> Bool)
-> Eq GetSavedAnimations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetSavedAnimations -> GetSavedAnimations -> Bool
== :: GetSavedAnimations -> GetSavedAnimations -> Bool
$c/= :: GetSavedAnimations -> GetSavedAnimations -> Bool
/= :: GetSavedAnimations -> GetSavedAnimations -> Bool
Eq, Int -> GetSavedAnimations -> ShowS
[GetSavedAnimations] -> ShowS
GetSavedAnimations -> String
(Int -> GetSavedAnimations -> ShowS)
-> (GetSavedAnimations -> String)
-> ([GetSavedAnimations] -> ShowS)
-> Show GetSavedAnimations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetSavedAnimations -> ShowS
showsPrec :: Int -> GetSavedAnimations -> ShowS
$cshow :: GetSavedAnimations -> String
show :: GetSavedAnimations -> String
$cshowList :: [GetSavedAnimations] -> ShowS
showList :: [GetSavedAnimations] -> ShowS
Show)

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

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