Message class

A fully initialized class which represents a Message from the Inbox.

Inheritance
Mixed in types

Constructors

Message.parse(Reddit reddit, Map? data)

Properties

author String
The author of the Message.
no setter
body String
The body of the Message.
no setter
createdUtc DateTime
When was this Message created.
no setter
data Map?
Returns the raw properties dictionary for this object.
no setterinherited
destination String
Who is this Message for.
no setter
distinguished String
The type of distinguishment that is assigned to this message.
no setter
fullname String?
The fullname of a Reddit object.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of a Reddit object.
no setterinherited
infoParams Map<String, String>?
no setterinherited
infoPath String
The base request format for the current object.
no setterinherited
newItem bool
Returns true if the Inbox item is new.
no setterinherited
reddit Reddit
The current Reddit instance.
finalinherited
replies List<Message>
The List of replies to this Message.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String?
The subject of the Inbox item.
no setterinherited
subreddit SubredditRef?
A SubredditRef representing the subreddit this message was sent to, for ModMail Messages.
no setter
wasComment bool
Returns true if the current Inbox reply was from a Comment.
no setterinherited

Methods

block() Future<void>
Block the user who sent the item.
inherited
collapse() Future<void>
Mark the item as collapsed.
inherited
fetch() Future
Requests the data associated with the current object.
inherited
markRead() Future<void>
Mark the item as read.
inherited
markUnread() Future<void>
Mark the item as unread.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future
Requests updated information from the Reddit API and updates the current object properties.
inherited
remove() Future<void>
Removes the message from the recipient's view of their inbox.
inherited
toString() String
A string representation of this object.
inherited
uncollapse() Future<void>
Mark the item as collapsed.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited