Skip to content

Commit

Permalink
feat(AppSettingsManager): Set author email
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Nov 13, 2024
1 parent 514c70b commit 8145cb6
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,17 @@ class AppSettingsManager internal constructor(
suspend fun setLastTransferType(transferType: TransferType): Unit = withContext(Dispatchers.IO) {
appSettingsController.setLastTransferType(transferType)
}

/**
* Asynchronously sets the last email of the transfer author entered by the user.
*
* @param authorEmail The last email of the transfer author entered.
*
* @throws RealmException If the provided email is invalid.
* @throws CancellationException If the operation is cancelled.
*/
@Throws(RealmException::class, CancellationException::class)
suspend fun setLastAuthorEmail(authorEmail: String?): Unit = withContext(Dispatchers.IO) {
appSettingsController.setLastAuthorEmail(authorEmail)
}
}

0 comments on commit 8145cb6

Please sign in to comment.