Repo created
This commit is contained in:
parent
75dc487a7a
commit
39c29d175b
6317 changed files with 388324 additions and 2 deletions
15
feature/account/storage/api/build.gradle.kts
Normal file
15
feature/account/storage/api/build.gradle.kts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
plugins {
|
||||
id(ThunderbirdPlugins.Library.kmp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "net.thunderbird.feature.account.storage"
|
||||
}
|
||||
|
||||
kotlin {
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
api(projects.feature.account.api)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package net.thunderbird.feature.account.storage.mapper
|
||||
|
||||
import net.thunderbird.core.architecture.data.DataMapper
|
||||
import net.thunderbird.feature.account.profile.AccountAvatar
|
||||
import net.thunderbird.feature.account.storage.profile.AvatarDto
|
||||
|
||||
interface AccountAvatarDataMapper : DataMapper<AccountAvatar, AvatarDto>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package net.thunderbird.feature.account.storage.mapper
|
||||
|
||||
import net.thunderbird.core.architecture.data.DataMapper
|
||||
import net.thunderbird.feature.account.profile.AccountProfile
|
||||
import net.thunderbird.feature.account.storage.profile.ProfileDto
|
||||
|
||||
interface AccountProfileDataMapper : DataMapper<AccountProfile, ProfileDto>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package net.thunderbird.feature.account.storage.profile
|
||||
|
||||
data class AvatarDto(
|
||||
val avatarType: AvatarTypeDto,
|
||||
val avatarMonogram: String?,
|
||||
val avatarImageUri: String?,
|
||||
val avatarIconName: String?,
|
||||
)
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package net.thunderbird.feature.account.storage.profile
|
||||
|
||||
enum class AvatarTypeDto {
|
||||
MONOGRAM,
|
||||
IMAGE,
|
||||
ICON,
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package net.thunderbird.feature.account.storage.profile
|
||||
|
||||
import net.thunderbird.feature.account.Account
|
||||
import net.thunderbird.feature.account.AccountId
|
||||
|
||||
data class ProfileDto(
|
||||
override val id: AccountId,
|
||||
val name: String,
|
||||
val color: Int,
|
||||
val avatar: AvatarDto,
|
||||
) : Account
|
||||
Loading…
Add table
Add a link
Reference in a new issue