| Copyright | (c) 2021 Rory Tyler Hayford |
|---|---|
| License | BSD-3-Clause |
| Maintainer | rory.hayford@protonmail.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Reddit.Types.Message
Description
Synopsis
- data Message = Message {}
- newtype PrivateMessageID = PrivateMessageID Text
- data MessageID
- data MessageOpts = MessageOpts {}
- data NewMessage = NewMessage {}
- data PostedMessage
Documentation
A private message or comment reply
Constructors
| Message | |
Instances
newtype PrivateMessageID Source #
A private message ID
Constructors
| PrivateMessageID Text |
Instances
This can be CommentID for replies to a comment, or a PrivateMessageID
for private messages. Querying one's inbox or unread messages can provide
both types
Constructors
| CommentReply CommentID | |
| PrivateMessage PrivateMessageID |
Instances
| Eq MessageID Source # | |
| Ord MessageID Source # | |
| Show MessageID Source # | |
| Generic MessageID Source # | |
| FromJSON MessageID Source # | |
| ToHttpApiData MessageID Source # | |
Defined in Network.Reddit.Types.Message Methods toUrlPiece :: MessageID -> Text # toEncodedUrlPiece :: MessageID -> Builder # toHeader :: MessageID -> ByteString # toQueryParam :: MessageID -> Text # | |
| Thing MessageID Source # | |
| type Rep MessageID Source # | |
Defined in Network.Reddit.Types.Message type Rep MessageID = D1 ('MetaData "MessageID" "Network.Reddit.Types.Message" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "CommentReply" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CommentID)) :+: C1 ('MetaCons "PrivateMessage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PrivateMessageID))) | |
data MessageOpts Source #
Constructors
| MessageOpts | |
Instances
| Eq MessageOpts Source # | |
Defined in Network.Reddit.Types.Message | |
| Show MessageOpts Source # | |
Defined in Network.Reddit.Types.Message Methods showsPrec :: Int -> MessageOpts -> ShowS # show :: MessageOpts -> String # showList :: [MessageOpts] -> ShowS # | |
| Generic MessageOpts Source # | |
Defined in Network.Reddit.Types.Message Associated Types type Rep MessageOpts :: Type -> Type # | |
| ToForm MessageOpts Source # | |
Defined in Network.Reddit.Types.Message Methods toForm :: MessageOpts -> Form # | |
| type Rep MessageOpts Source # | |
Defined in Network.Reddit.Types.Message type Rep MessageOpts = D1 ('MetaData "MessageOpts" "Network.Reddit.Types.Message" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "MessageOpts" 'PrefixI 'True) (S1 ('MetaSel ('Just "mark") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) | |
data NewMessage Source #
For sending new Messages via the compose API endpoint
Constructors
| NewMessage | |
Instances
data PostedMessage Source #