Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data MessageSource Source #
Describes source of a message
MessageSourceChatHistory | The message is from a chat history |
MessageSourceMessageThreadHistory | The message is from a message thread history |
MessageSourceForumTopicHistory | The message is from a forum topic history |
MessageSourceHistoryPreview | The message is from chat, message thread or forum topic history preview |
MessageSourceChatList | The message is from a chat list or a forum topic list |
MessageSourceSearch | The message is from search results, including file downloads, local file list, outgoing document messages, calendar |
MessageSourceChatEventLog | The message is from a chat event log |
MessageSourceNotification | The message is from a notification |
MessageSourceScreenshot | The message was screenshotted; the source must be used only if the message content was visible during the screenshot |
MessageSourceOther | The message is from some other source |
Instances
FromJSON MessageSource Source # | |
Defined in TD.Data.MessageSource parseJSON :: Value -> Parser MessageSource # parseJSONList :: Value -> Parser [MessageSource] # | |
ToJSON MessageSource Source # | |
Defined in TD.Data.MessageSource toJSON :: MessageSource -> Value # toEncoding :: MessageSource -> Encoding # toJSONList :: [MessageSource] -> Value # toEncodingList :: [MessageSource] -> Encoding # | |
Show MessageSource Source # | |
Defined in TD.Data.MessageSource showsPrec :: Int -> MessageSource -> ShowS # show :: MessageSource -> String # showList :: [MessageSource] -> ShowS # | |
Eq MessageSource Source # | |
Defined in TD.Data.MessageSource (==) :: MessageSource -> MessageSource -> Bool # (/=) :: MessageSource -> MessageSource -> Bool # | |
ShortShow MessageSource Source # | |
Defined in TD.Data.MessageSource shortShow :: MessageSource -> String Source # |