module TD.Query.GetStoryNotificationSettingsExceptions
  (GetStoryNotificationSettingsExceptions(..)
  ) where

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

-- | Returns the list of chats with non-default notification settings for stories. Returns 'TD.Data.Chats.Chats'
data GetStoryNotificationSettingsExceptions
  = GetStoryNotificationSettingsExceptions
  deriving (GetStoryNotificationSettingsExceptions
-> GetStoryNotificationSettingsExceptions -> Bool
(GetStoryNotificationSettingsExceptions
 -> GetStoryNotificationSettingsExceptions -> Bool)
-> (GetStoryNotificationSettingsExceptions
    -> GetStoryNotificationSettingsExceptions -> Bool)
-> Eq GetStoryNotificationSettingsExceptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetStoryNotificationSettingsExceptions
-> GetStoryNotificationSettingsExceptions -> Bool
== :: GetStoryNotificationSettingsExceptions
-> GetStoryNotificationSettingsExceptions -> Bool
$c/= :: GetStoryNotificationSettingsExceptions
-> GetStoryNotificationSettingsExceptions -> Bool
/= :: GetStoryNotificationSettingsExceptions
-> GetStoryNotificationSettingsExceptions -> Bool
Eq, Int -> GetStoryNotificationSettingsExceptions -> ShowS
[GetStoryNotificationSettingsExceptions] -> ShowS
GetStoryNotificationSettingsExceptions -> String
(Int -> GetStoryNotificationSettingsExceptions -> ShowS)
-> (GetStoryNotificationSettingsExceptions -> String)
-> ([GetStoryNotificationSettingsExceptions] -> ShowS)
-> Show GetStoryNotificationSettingsExceptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetStoryNotificationSettingsExceptions -> ShowS
showsPrec :: Int -> GetStoryNotificationSettingsExceptions -> ShowS
$cshow :: GetStoryNotificationSettingsExceptions -> String
show :: GetStoryNotificationSettingsExceptions -> String
$cshowList :: [GetStoryNotificationSettingsExceptions] -> ShowS
showList :: [GetStoryNotificationSettingsExceptions] -> ShowS
Show)

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

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