module TD.Query.ActivateStoryStealthMode
  (ActivateStoryStealthMode(..)
  ) where

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

-- | Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only. Returns 'TD.Data.Ok.Ok'
data ActivateStoryStealthMode
  = ActivateStoryStealthMode
  deriving (ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool
(ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool)
-> (ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool)
-> Eq ActivateStoryStealthMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool
== :: ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool
$c/= :: ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool
/= :: ActivateStoryStealthMode -> ActivateStoryStealthMode -> Bool
Eq, Int -> ActivateStoryStealthMode -> ShowS
[ActivateStoryStealthMode] -> ShowS
ActivateStoryStealthMode -> String
(Int -> ActivateStoryStealthMode -> ShowS)
-> (ActivateStoryStealthMode -> String)
-> ([ActivateStoryStealthMode] -> ShowS)
-> Show ActivateStoryStealthMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ActivateStoryStealthMode -> ShowS
showsPrec :: Int -> ActivateStoryStealthMode -> ShowS
$cshow :: ActivateStoryStealthMode -> String
show :: ActivateStoryStealthMode -> String
$cshowList :: [ActivateStoryStealthMode] -> ShowS
showList :: [ActivateStoryStealthMode] -> ShowS
Show)

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

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