module TD.Query.ClearRecentReactions
  (ClearRecentReactions(..)
  ) 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 recently used reactions. Returns 'TD.Data.Ok.Ok'
data ClearRecentReactions
  = ClearRecentReactions
  deriving (ClearRecentReactions -> ClearRecentReactions -> Bool
(ClearRecentReactions -> ClearRecentReactions -> Bool)
-> (ClearRecentReactions -> ClearRecentReactions -> Bool)
-> Eq ClearRecentReactions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearRecentReactions -> ClearRecentReactions -> Bool
== :: ClearRecentReactions -> ClearRecentReactions -> Bool
$c/= :: ClearRecentReactions -> ClearRecentReactions -> Bool
/= :: ClearRecentReactions -> ClearRecentReactions -> Bool
Eq, Int -> ClearRecentReactions -> ShowS
[ClearRecentReactions] -> ShowS
ClearRecentReactions -> String
(Int -> ClearRecentReactions -> ShowS)
-> (ClearRecentReactions -> String)
-> ([ClearRecentReactions] -> ShowS)
-> Show ClearRecentReactions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearRecentReactions -> ShowS
showsPrec :: Int -> ClearRecentReactions -> ShowS
$cshow :: ClearRecentReactions -> String
show :: ClearRecentReactions -> String
$cshowList :: [ClearRecentReactions] -> ShowS
showList :: [ClearRecentReactions] -> ShowS
Show)

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

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