DeleteResult class
Provides information about a delete action
- Inheritance
-
- Object
- MessagesOperationResult
- DeleteResult
Constructors
-
DeleteResult(DeleteAction action, MessageSequence originalSequence, Mailbox originalMailbox, MessageSequence? targetSequence, Mailbox? targetMailbox, MailClient mailClient, {required bool canUndo, List<
MimeMessage> ? messages}) - Creates a new result for an delete call
Properties
- action → DeleteAction
-
The internal action that was used to delete
final
- canUndo → bool
-
Can the move operation be undone?
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUndoable → bool
-
Is this delete result undoable?
no setterinherited
- mailClient → MailClient
-
The associated mail client
finalinherited
-
messages
→ List<
MimeMessage> ? -
The deleted messages, if known
finalinherited
- originalMailbox → Mailbox
-
The originating mailbox
finalinherited
- originalSequence → MessageSequence
-
The original message sequence used
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetMailbox → Mailbox?
-
The target mailbox, can be null
finalinherited
- targetSequence → MessageSequence?
-
The resulting message sequence of the deleted messages
finalinherited
Methods
-
applyMessageIds(
MessageSequence originalSequence, MessageSequence? targetSequence, List< MimeMessage> ? messages) → bool -
Apply the message IDs from the
targetSequence
to themessages
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reverse(
) → DeleteResult - Reverses the result so that the original sequence and mailbox becomes the target ones.
-
reverseWith(
UidResponseCode? result) → DeleteResult -
Reverses the result
and includes the new sequence from the given
result
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited