module TD.Query.GetProfileShareThemeBackdrops
  (GetProfileShareThemeBackdrops(..)
  ) where

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

-- | Returns the list of backdrops, which can be used as a background of a theme of the screen for sharing a link to a user or a chat. Returns 'TD.Data.ProfileShareThemeBackdrops.ProfileShareThemeBackdrops'
data GetProfileShareThemeBackdrops
  = GetProfileShareThemeBackdrops
  deriving (GetProfileShareThemeBackdrops
-> GetProfileShareThemeBackdrops -> Bool
(GetProfileShareThemeBackdrops
 -> GetProfileShareThemeBackdrops -> Bool)
-> (GetProfileShareThemeBackdrops
    -> GetProfileShareThemeBackdrops -> Bool)
-> Eq GetProfileShareThemeBackdrops
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetProfileShareThemeBackdrops
-> GetProfileShareThemeBackdrops -> Bool
== :: GetProfileShareThemeBackdrops
-> GetProfileShareThemeBackdrops -> Bool
$c/= :: GetProfileShareThemeBackdrops
-> GetProfileShareThemeBackdrops -> Bool
/= :: GetProfileShareThemeBackdrops
-> GetProfileShareThemeBackdrops -> Bool
Eq, Int -> GetProfileShareThemeBackdrops -> ShowS
[GetProfileShareThemeBackdrops] -> ShowS
GetProfileShareThemeBackdrops -> String
(Int -> GetProfileShareThemeBackdrops -> ShowS)
-> (GetProfileShareThemeBackdrops -> String)
-> ([GetProfileShareThemeBackdrops] -> ShowS)
-> Show GetProfileShareThemeBackdrops
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetProfileShareThemeBackdrops -> ShowS
showsPrec :: Int -> GetProfileShareThemeBackdrops -> ShowS
$cshow :: GetProfileShareThemeBackdrops -> String
show :: GetProfileShareThemeBackdrops -> String
$cshowList :: [GetProfileShareThemeBackdrops] -> ShowS
showList :: [GetProfileShareThemeBackdrops] -> ShowS
Show)

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

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