module TD.Query.GetBusinessChatLinks
  (GetBusinessChatLinks(..)
  ) where

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

-- | Returns business chat links created for the current account. Returns 'TD.Data.BusinessChatLinks.BusinessChatLinks'
data GetBusinessChatLinks
  = GetBusinessChatLinks
  deriving (GetBusinessChatLinks -> GetBusinessChatLinks -> Bool
(GetBusinessChatLinks -> GetBusinessChatLinks -> Bool)
-> (GetBusinessChatLinks -> GetBusinessChatLinks -> Bool)
-> Eq GetBusinessChatLinks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetBusinessChatLinks -> GetBusinessChatLinks -> Bool
== :: GetBusinessChatLinks -> GetBusinessChatLinks -> Bool
$c/= :: GetBusinessChatLinks -> GetBusinessChatLinks -> Bool
/= :: GetBusinessChatLinks -> GetBusinessChatLinks -> Bool
Eq, Int -> GetBusinessChatLinks -> ShowS
[GetBusinessChatLinks] -> ShowS
GetBusinessChatLinks -> String
(Int -> GetBusinessChatLinks -> ShowS)
-> (GetBusinessChatLinks -> String)
-> ([GetBusinessChatLinks] -> ShowS)
-> Show GetBusinessChatLinks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetBusinessChatLinks -> ShowS
showsPrec :: Int -> GetBusinessChatLinks -> ShowS
$cshow :: GetBusinessChatLinks -> String
show :: GetBusinessChatLinks -> String
$cshowList :: [GetBusinessChatLinks] -> ShowS
showList :: [GetBusinessChatLinks] -> ShowS
Show)

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

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