{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Chime.Types.ChannelMessageSummary where
import Amazonka.Chime.Types.ChannelMessageType
import Amazonka.Chime.Types.Identity
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ChannelMessageSummary = ChannelMessageSummary'
{
ChannelMessageSummary -> Maybe Identity
sender :: Prelude.Maybe Identity,
ChannelMessageSummary -> Maybe (Sensitive Text)
content :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ChannelMessageSummary -> Maybe Bool
redacted :: Prelude.Maybe Prelude.Bool,
ChannelMessageSummary -> Maybe (Sensitive Text)
metadata :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ChannelMessageSummary -> Maybe ChannelMessageType
type' :: Prelude.Maybe ChannelMessageType,
ChannelMessageSummary -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Core.POSIX,
ChannelMessageSummary -> Maybe Text
messageId :: Prelude.Maybe Prelude.Text,
ChannelMessageSummary -> Maybe POSIX
lastUpdatedTimestamp :: Prelude.Maybe Core.POSIX,
ChannelMessageSummary -> Maybe POSIX
lastEditedTimestamp :: Prelude.Maybe Core.POSIX
}
deriving (ChannelMessageSummary -> ChannelMessageSummary -> Bool
(ChannelMessageSummary -> ChannelMessageSummary -> Bool)
-> (ChannelMessageSummary -> ChannelMessageSummary -> Bool)
-> Eq ChannelMessageSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelMessageSummary -> ChannelMessageSummary -> Bool
$c/= :: ChannelMessageSummary -> ChannelMessageSummary -> Bool
== :: ChannelMessageSummary -> ChannelMessageSummary -> Bool
$c== :: ChannelMessageSummary -> ChannelMessageSummary -> Bool
Prelude.Eq, Int -> ChannelMessageSummary -> ShowS
[ChannelMessageSummary] -> ShowS
ChannelMessageSummary -> String
(Int -> ChannelMessageSummary -> ShowS)
-> (ChannelMessageSummary -> String)
-> ([ChannelMessageSummary] -> ShowS)
-> Show ChannelMessageSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelMessageSummary] -> ShowS
$cshowList :: [ChannelMessageSummary] -> ShowS
show :: ChannelMessageSummary -> String
$cshow :: ChannelMessageSummary -> String
showsPrec :: Int -> ChannelMessageSummary -> ShowS
$cshowsPrec :: Int -> ChannelMessageSummary -> ShowS
Prelude.Show, (forall x. ChannelMessageSummary -> Rep ChannelMessageSummary x)
-> (forall x. Rep ChannelMessageSummary x -> ChannelMessageSummary)
-> Generic ChannelMessageSummary
forall x. Rep ChannelMessageSummary x -> ChannelMessageSummary
forall x. ChannelMessageSummary -> Rep ChannelMessageSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChannelMessageSummary x -> ChannelMessageSummary
$cfrom :: forall x. ChannelMessageSummary -> Rep ChannelMessageSummary x
Prelude.Generic)
newChannelMessageSummary ::
ChannelMessageSummary
newChannelMessageSummary :: ChannelMessageSummary
newChannelMessageSummary =
ChannelMessageSummary' :: Maybe Identity
-> Maybe (Sensitive Text)
-> Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary
ChannelMessageSummary'
{ $sel:sender:ChannelMessageSummary' :: Maybe Identity
sender = Maybe Identity
forall a. Maybe a
Prelude.Nothing,
$sel:content:ChannelMessageSummary' :: Maybe (Sensitive Text)
content = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:redacted:ChannelMessageSummary' :: Maybe Bool
redacted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:ChannelMessageSummary' :: Maybe (Sensitive Text)
metadata = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:type':ChannelMessageSummary' :: Maybe ChannelMessageType
type' = Maybe ChannelMessageType
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimestamp:ChannelMessageSummary' :: Maybe POSIX
createdTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:messageId:ChannelMessageSummary' :: Maybe Text
messageId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:ChannelMessageSummary' :: Maybe POSIX
lastUpdatedTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastEditedTimestamp:ChannelMessageSummary' :: Maybe POSIX
lastEditedTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
channelMessageSummary_sender :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Identity)
channelMessageSummary_sender :: (Maybe Identity -> f (Maybe Identity))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_sender = (ChannelMessageSummary -> Maybe Identity)
-> (ChannelMessageSummary
-> Maybe Identity -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe Identity)
(Maybe Identity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe Identity
sender :: Maybe Identity
$sel:sender:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe Identity
sender} -> Maybe Identity
sender) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe Identity
a -> ChannelMessageSummary
s {$sel:sender:ChannelMessageSummary' :: Maybe Identity
sender = Maybe Identity
a} :: ChannelMessageSummary)
channelMessageSummary_content :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.Text)
channelMessageSummary_content :: (Maybe Text -> f (Maybe Text))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_content = (ChannelMessageSummary -> Maybe (Sensitive Text))
-> (ChannelMessageSummary
-> Maybe (Sensitive Text) -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe (Sensitive Text)
content :: Maybe (Sensitive Text)
$sel:content:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe (Sensitive Text)
content} -> Maybe (Sensitive Text)
content) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe (Sensitive Text)
a -> ChannelMessageSummary
s {$sel:content:ChannelMessageSummary' :: Maybe (Sensitive Text)
content = Maybe (Sensitive Text)
a} :: ChannelMessageSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ChannelMessageSummary -> f ChannelMessageSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ChannelMessageSummary
-> f ChannelMessageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
channelMessageSummary_redacted :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.Bool)
channelMessageSummary_redacted :: (Maybe Bool -> f (Maybe Bool))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_redacted = (ChannelMessageSummary -> Maybe Bool)
-> (ChannelMessageSummary -> Maybe Bool -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe Bool
redacted :: Maybe Bool
$sel:redacted:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe Bool
redacted} -> Maybe Bool
redacted) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe Bool
a -> ChannelMessageSummary
s {$sel:redacted:ChannelMessageSummary' :: Maybe Bool
redacted = Maybe Bool
a} :: ChannelMessageSummary)
channelMessageSummary_metadata :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.Text)
channelMessageSummary_metadata :: (Maybe Text -> f (Maybe Text))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_metadata = (ChannelMessageSummary -> Maybe (Sensitive Text))
-> (ChannelMessageSummary
-> Maybe (Sensitive Text) -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe (Sensitive Text)
metadata :: Maybe (Sensitive Text)
$sel:metadata:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe (Sensitive Text)
metadata} -> Maybe (Sensitive Text)
metadata) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe (Sensitive Text)
a -> ChannelMessageSummary
s {$sel:metadata:ChannelMessageSummary' :: Maybe (Sensitive Text)
metadata = Maybe (Sensitive Text)
a} :: ChannelMessageSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ChannelMessageSummary -> f ChannelMessageSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ChannelMessageSummary
-> f ChannelMessageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
channelMessageSummary_type :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe ChannelMessageType)
channelMessageSummary_type :: (Maybe ChannelMessageType -> f (Maybe ChannelMessageType))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_type = (ChannelMessageSummary -> Maybe ChannelMessageType)
-> (ChannelMessageSummary
-> Maybe ChannelMessageType -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe ChannelMessageType)
(Maybe ChannelMessageType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe ChannelMessageType
type' :: Maybe ChannelMessageType
$sel:type':ChannelMessageSummary' :: ChannelMessageSummary -> Maybe ChannelMessageType
type'} -> Maybe ChannelMessageType
type') (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe ChannelMessageType
a -> ChannelMessageSummary
s {$sel:type':ChannelMessageSummary' :: Maybe ChannelMessageType
type' = Maybe ChannelMessageType
a} :: ChannelMessageSummary)
channelMessageSummary_createdTimestamp :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.UTCTime)
channelMessageSummary_createdTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_createdTimestamp = (ChannelMessageSummary -> Maybe POSIX)
-> (ChannelMessageSummary -> Maybe POSIX -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe POSIX
a -> ChannelMessageSummary
s {$sel:createdTimestamp:ChannelMessageSummary' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: ChannelMessageSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> ChannelMessageSummary -> f ChannelMessageSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary
-> f ChannelMessageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
channelMessageSummary_messageId :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.Text)
channelMessageSummary_messageId :: (Maybe Text -> f (Maybe Text))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_messageId = (ChannelMessageSummary -> Maybe Text)
-> (ChannelMessageSummary -> Maybe Text -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe Text
messageId :: Maybe Text
$sel:messageId:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe Text
messageId} -> Maybe Text
messageId) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe Text
a -> ChannelMessageSummary
s {$sel:messageId:ChannelMessageSummary' :: Maybe Text
messageId = Maybe Text
a} :: ChannelMessageSummary)
channelMessageSummary_lastUpdatedTimestamp :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.UTCTime)
channelMessageSummary_lastUpdatedTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_lastUpdatedTimestamp = (ChannelMessageSummary -> Maybe POSIX)
-> (ChannelMessageSummary -> Maybe POSIX -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe POSIX
lastUpdatedTimestamp :: Maybe POSIX
$sel:lastUpdatedTimestamp:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe POSIX
lastUpdatedTimestamp} -> Maybe POSIX
lastUpdatedTimestamp) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe POSIX
a -> ChannelMessageSummary
s {$sel:lastUpdatedTimestamp:ChannelMessageSummary' :: Maybe POSIX
lastUpdatedTimestamp = Maybe POSIX
a} :: ChannelMessageSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> ChannelMessageSummary -> f ChannelMessageSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary
-> f ChannelMessageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
channelMessageSummary_lastEditedTimestamp :: Lens.Lens' ChannelMessageSummary (Prelude.Maybe Prelude.UTCTime)
channelMessageSummary_lastEditedTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary -> f ChannelMessageSummary
channelMessageSummary_lastEditedTimestamp = (ChannelMessageSummary -> Maybe POSIX)
-> (ChannelMessageSummary -> Maybe POSIX -> ChannelMessageSummary)
-> Lens
ChannelMessageSummary
ChannelMessageSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelMessageSummary' {Maybe POSIX
lastEditedTimestamp :: Maybe POSIX
$sel:lastEditedTimestamp:ChannelMessageSummary' :: ChannelMessageSummary -> Maybe POSIX
lastEditedTimestamp} -> Maybe POSIX
lastEditedTimestamp) (\s :: ChannelMessageSummary
s@ChannelMessageSummary' {} Maybe POSIX
a -> ChannelMessageSummary
s {$sel:lastEditedTimestamp:ChannelMessageSummary' :: Maybe POSIX
lastEditedTimestamp = Maybe POSIX
a} :: ChannelMessageSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> ChannelMessageSummary -> f ChannelMessageSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ChannelMessageSummary
-> f ChannelMessageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Core.FromJSON ChannelMessageSummary where
parseJSON :: Value -> Parser ChannelMessageSummary
parseJSON =
String
-> (Object -> Parser ChannelMessageSummary)
-> Value
-> Parser ChannelMessageSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ChannelMessageSummary"
( \Object
x ->
Maybe Identity
-> Maybe (Sensitive Text)
-> Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary
ChannelMessageSummary'
(Maybe Identity
-> Maybe (Sensitive Text)
-> Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe Identity)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Identity)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Sender")
Parser
(Maybe (Sensitive Text)
-> Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Content")
Parser
(Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe Bool)
-> Parser
(Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Redacted")
Parser
(Maybe (Sensitive Text)
-> Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Metadata")
Parser
(Maybe ChannelMessageType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe ChannelMessageType)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ChannelMessageType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Type")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> ChannelMessageSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text -> Maybe POSIX -> Maybe POSIX -> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTimestamp")
Parser
(Maybe Text -> Maybe POSIX -> Maybe POSIX -> ChannelMessageSummary)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe POSIX -> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MessageId")
Parser (Maybe POSIX -> Maybe POSIX -> ChannelMessageSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> ChannelMessageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedTimestamp")
Parser (Maybe POSIX -> ChannelMessageSummary)
-> Parser (Maybe POSIX) -> Parser ChannelMessageSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastEditedTimestamp")
)
instance Prelude.Hashable ChannelMessageSummary
instance Prelude.NFData ChannelMessageSummary