module TD.Query.ClearImportedContacts
  (ClearImportedContacts(..)
  ) where

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

-- | Clears all imported contacts, contact list remains unchanged. Returns 'TD.Data.Ok.Ok'
data ClearImportedContacts
  = ClearImportedContacts
  deriving (ClearImportedContacts -> ClearImportedContacts -> Bool
(ClearImportedContacts -> ClearImportedContacts -> Bool)
-> (ClearImportedContacts -> ClearImportedContacts -> Bool)
-> Eq ClearImportedContacts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearImportedContacts -> ClearImportedContacts -> Bool
== :: ClearImportedContacts -> ClearImportedContacts -> Bool
$c/= :: ClearImportedContacts -> ClearImportedContacts -> Bool
/= :: ClearImportedContacts -> ClearImportedContacts -> Bool
Eq, Int -> ClearImportedContacts -> ShowS
[ClearImportedContacts] -> ShowS
ClearImportedContacts -> String
(Int -> ClearImportedContacts -> ShowS)
-> (ClearImportedContacts -> String)
-> ([ClearImportedContacts] -> ShowS)
-> Show ClearImportedContacts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearImportedContacts -> ShowS
showsPrec :: Int -> ClearImportedContacts -> ShowS
$cshow :: ClearImportedContacts -> String
show :: ClearImportedContacts -> String
$cshowList :: [ClearImportedContacts] -> ShowS
showList :: [ClearImportedContacts] -> ShowS
Show)

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

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