module TD.Query.GetImportedContactCount
  (GetImportedContactCount(..)
  ) where

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

-- | Returns the total number of imported contacts. Returns 'TD.Data.Count.Count'
data GetImportedContactCount
  = GetImportedContactCount
  deriving (GetImportedContactCount -> GetImportedContactCount -> Bool
(GetImportedContactCount -> GetImportedContactCount -> Bool)
-> (GetImportedContactCount -> GetImportedContactCount -> Bool)
-> Eq GetImportedContactCount
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetImportedContactCount -> GetImportedContactCount -> Bool
== :: GetImportedContactCount -> GetImportedContactCount -> Bool
$c/= :: GetImportedContactCount -> GetImportedContactCount -> Bool
/= :: GetImportedContactCount -> GetImportedContactCount -> Bool
Eq, Int -> GetImportedContactCount -> ShowS
[GetImportedContactCount] -> ShowS
GetImportedContactCount -> String
(Int -> GetImportedContactCount -> ShowS)
-> (GetImportedContactCount -> String)
-> ([GetImportedContactCount] -> ShowS)
-> Show GetImportedContactCount
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetImportedContactCount -> ShowS
showsPrec :: Int -> GetImportedContactCount -> ShowS
$cshow :: GetImportedContactCount -> String
show :: GetImportedContactCount -> String
$cshowList :: [GetImportedContactCount] -> ShowS
showList :: [GetImportedContactCount] -> ShowS
Show)

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

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