ModmailConversation class

A fully initialized class which represents a Modmail conversation.

Inheritance
Mixed in types

Constructors

ModmailConversation(Reddit reddit, {String? id, bool markRead = false, Map? data})
ModmailConversation.parse(Reddit reddit, Map<String, dynamic> data, {bool convertObjects = true})
factory

Properties

authors List<Redditor>
An ordered list of Redditors who have participated in the conversation.
no setter
data Map?
Returns the raw properties dictionary for this object.
no setterinherited
fullname String?
The fullname of a Reddit object.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
A unique ID for this conversation.
no setteroverride
infoParams Map<String, String>?
no setterinherited
infoPath String
The base request format for the current object.
no setterinherited
isHighlighted bool
Whether or not the current conversation highlighted.
no setter
isInternal bool
Whether or not this is a private moderator conversation.
no setter
lastModUpdate DateTime?
The date and time the conversation was last updated by a moderator.
no setter
lastUpdated DateTime
The date and time the conversation was last updated.
no setter
lastUserUpdate DateTime?
The date and time the conversation was last updated by a non-moderator user.
no setter
messages List<ModmailMessage>
The messages from this conversation.
no setter
modActions List<ModmailAction>
A list of all moderator actions made on this conversation.
no setter
numMessages int
The number of messages in this conversation.
no setter
objectIds List<Map>
no setter
owner SubredditRef
The subreddit associated with this conversation.
no setter
participant RedditorRef
no setter
reddit Reddit
The current Reddit instance.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String?
The subject line of the conversation.
no setteroverride

Methods

archive() Future<void>
Archive the conversation.
fetch() Future
Requests the data associated with the current object.
inherited
highlight() Future<void>
Highlight the conversation.
mute() Future<void>
Mute the user (non-moderator) associated with the conversation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate() Future<ModmailConversation>
Promotes this ModmailConversationRef into a populated ModmailConversation.
inherited
read({List<ModmailConversation>? otherConversations}) Future<void>
Mark the conversation as read.
refresh() Future
Requests updated information from the Reddit API and updates the current object properties.
inherited
reply(String body, {bool authorHidden = false, bool internal = false}) Future<ModmailMessage>
Reply to the conversation.
toString() String
A string representation of this object.
inherited
unarchive() Future<void>
Unarchive the conversation.
unhighlight() Future<void>
Unhighlight the conversation.
unmute() Future<void>
Unmute the conversation.
unread({List? otherConversations}) Future<void>
Mark the conversation as unread.

Operators

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