module TD.Query.GetRecommendedChatFolders
  (GetRecommendedChatFolders(..)
  ) where

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

-- | Returns recommended chat folders for the current user. Returns 'TD.Data.RecommendedChatFolders.RecommendedChatFolders'
data GetRecommendedChatFolders
  = GetRecommendedChatFolders
  deriving (GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool
(GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool)
-> (GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool)
-> Eq GetRecommendedChatFolders
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool
== :: GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool
$c/= :: GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool
/= :: GetRecommendedChatFolders -> GetRecommendedChatFolders -> Bool
Eq, Int -> GetRecommendedChatFolders -> ShowS
[GetRecommendedChatFolders] -> ShowS
GetRecommendedChatFolders -> String
(Int -> GetRecommendedChatFolders -> ShowS)
-> (GetRecommendedChatFolders -> String)
-> ([GetRecommendedChatFolders] -> ShowS)
-> Show GetRecommendedChatFolders
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetRecommendedChatFolders -> ShowS
showsPrec :: Int -> GetRecommendedChatFolders -> ShowS
$cshow :: GetRecommendedChatFolders -> String
show :: GetRecommendedChatFolders -> String
$cshowList :: [GetRecommendedChatFolders] -> ShowS
showList :: [GetRecommendedChatFolders] -> ShowS
Show)

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

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