Updated on 2026-08-14
This commit is contained in:
parent
e40706d5c6
commit
603f522cf9
471 changed files with 556 additions and 502 deletions
|
|
@ -3,6 +3,7 @@ package com.tangem.domain.wallets.models
|
|||
import com.tangem.domain.models.MobileWallet
|
||||
import com.tangem.domain.models.scan.CardDTO
|
||||
import com.tangem.domain.models.scan.ScanResponse
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
import com.tangem.hot.sdk.model.HotWalletId
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
package com.tangem.domain.wallets.models
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
import com.tangem.common.extensions.hexToBytes
|
||||
import com.tangem.common.extensions.toHexString
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class UserWalletId(
|
||||
@Json(name = "stringValue")
|
||||
val stringValue: String,
|
||||
) {
|
||||
|
||||
val value = stringValue.hexToBytes()
|
||||
|
||||
constructor(value: ByteArray?) : this(stringValue = value?.toHexString() ?: "")
|
||||
|
||||
override fun toString() = "UserWalletId(${stringValue.take(n = 3)}...${stringValue.takeLast(n = 3)})"
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package com.tangem.domain.wallets.models
|
||||
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
|
||||
class UserWalletRemoteInfo(
|
||||
val walletId: UserWalletId,
|
||||
val name: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue