TF-4053 Add interactor/datasource/repository for move folder content action
This commit is contained in:
@@ -13,10 +13,14 @@ extension MailboxIdExtension on MailboxId {
|
||||
}
|
||||
}
|
||||
|
||||
PatchObject generateMoveToMailboxActionPath(MailboxId destinationMailboxId) {
|
||||
PatchObject generateMoveToMailboxActionPath({
|
||||
required MailboxId destinationMailboxId,
|
||||
bool markAsRead = false,
|
||||
}) {
|
||||
return PatchObject({
|
||||
generatePath(): null,
|
||||
destinationMailboxId.generatePath(): true
|
||||
destinationMailboxId.generatePath(): true,
|
||||
if (markAsRead) KeyWordIdentifier.emailSeen.generatePath(): true,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,13 +30,5 @@ extension MailboxIdExtension on MailboxId {
|
||||
});
|
||||
}
|
||||
|
||||
PatchObject generateMoveToSpamActionPath(MailboxId currentMailboxId, MailboxId spamMailboxId) {
|
||||
return PatchObject({
|
||||
currentMailboxId.generatePath(): null,
|
||||
spamMailboxId.generatePath(): true,
|
||||
KeyWordIdentifier.emailSeen.generatePath(): true
|
||||
});
|
||||
}
|
||||
|
||||
String get asString => id.value;
|
||||
}
|
||||
Reference in New Issue
Block a user