Repo created
This commit is contained in:
parent
75dc487a7a
commit
39c29d175b
6317 changed files with 388324 additions and 2 deletions
7
feature/mail/account/api/build.gradle.kts
Normal file
7
feature/mail/account/api/build.gradle.kts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
plugins {
|
||||
id(ThunderbirdPlugins.Library.kmp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "net.thunderbird.feature.mail.account.api"
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package net.thunderbird.feature.mail.account.api
|
||||
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface AccountManager<TAccount : BaseAccount> {
|
||||
fun getAccounts(): List<TAccount>
|
||||
fun getAccountsFlow(): Flow<List<TAccount>>
|
||||
fun getAccount(accountUuid: String): TAccount?
|
||||
fun getAccountFlow(accountUuid: String): Flow<TAccount?>
|
||||
fun moveAccount(account: TAccount, newPosition: Int)
|
||||
fun saveAccount(account: TAccount)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package net.thunderbird.feature.mail.account.api
|
||||
|
||||
interface BaseAccount {
|
||||
val uuid: String
|
||||
val name: String?
|
||||
val email: String
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue