Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:56:56 +01:00
parent 75dc487a7a
commit 39c29d175b
6317 changed files with 388324 additions and 2 deletions

View 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)
}
}
}

View file

@ -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>

View file

@ -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>

View file

@ -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?,
)

View file

@ -0,0 +1,7 @@
package net.thunderbird.feature.account.storage.profile
enum class AvatarTypeDto {
MONOGRAM,
IMAGE,
ICON,
}

View file

@ -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