module TD.Query.GetDefaultBackgroundCustomEmojiStickers
  (GetDefaultBackgroundCustomEmojiStickers(..)
  ) where

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

-- | Returns default list of custom emoji stickers for reply background. Returns 'TD.Data.Stickers.Stickers'
data GetDefaultBackgroundCustomEmojiStickers
  = GetDefaultBackgroundCustomEmojiStickers
  deriving (GetDefaultBackgroundCustomEmojiStickers
-> GetDefaultBackgroundCustomEmojiStickers -> Bool
(GetDefaultBackgroundCustomEmojiStickers
 -> GetDefaultBackgroundCustomEmojiStickers -> Bool)
-> (GetDefaultBackgroundCustomEmojiStickers
    -> GetDefaultBackgroundCustomEmojiStickers -> Bool)
-> Eq GetDefaultBackgroundCustomEmojiStickers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetDefaultBackgroundCustomEmojiStickers
-> GetDefaultBackgroundCustomEmojiStickers -> Bool
== :: GetDefaultBackgroundCustomEmojiStickers
-> GetDefaultBackgroundCustomEmojiStickers -> Bool
$c/= :: GetDefaultBackgroundCustomEmojiStickers
-> GetDefaultBackgroundCustomEmojiStickers -> Bool
/= :: GetDefaultBackgroundCustomEmojiStickers
-> GetDefaultBackgroundCustomEmojiStickers -> Bool
Eq, Int -> GetDefaultBackgroundCustomEmojiStickers -> ShowS
[GetDefaultBackgroundCustomEmojiStickers] -> ShowS
GetDefaultBackgroundCustomEmojiStickers -> String
(Int -> GetDefaultBackgroundCustomEmojiStickers -> ShowS)
-> (GetDefaultBackgroundCustomEmojiStickers -> String)
-> ([GetDefaultBackgroundCustomEmojiStickers] -> ShowS)
-> Show GetDefaultBackgroundCustomEmojiStickers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetDefaultBackgroundCustomEmojiStickers -> ShowS
showsPrec :: Int -> GetDefaultBackgroundCustomEmojiStickers -> ShowS
$cshow :: GetDefaultBackgroundCustomEmojiStickers -> String
show :: GetDefaultBackgroundCustomEmojiStickers -> String
$cshowList :: [GetDefaultBackgroundCustomEmojiStickers] -> ShowS
showList :: [GetDefaultBackgroundCustomEmojiStickers] -> ShowS
Show)

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

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