diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetail.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetail.kt index 7cd33a5f..183ec3e6 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetail.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetail.kt @@ -42,6 +42,16 @@ class UserDetail( } override fun hashCode(): Int = id.hashCode() + override fun toString(): String { + return "UserDetail(" + + "id=$id, " + + "actorId=$actorId, " + + "password=$password, " + + "autoAcceptFolloweeFollowRequest=$autoAcceptFolloweeFollowRequest, " + + "lastMigration=$lastMigration, " + + "homeTimelineId=$homeTimelineId" + + ")" + } companion object { @Suppress("LongParameterList") diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailHashedPassword.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailHashedPassword.kt index f0dc4399..8e5edf56 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailHashedPassword.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailHashedPassword.kt @@ -17,4 +17,8 @@ package dev.usbharu.hideout.core.domain.model.userdetails @JvmInline -value class UserDetailHashedPassword(val password: String) +value class UserDetailHashedPassword(val password: String) { + override fun toString(): String { + return "[MASKED]" + } +} diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailId.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailId.kt index cc048546..0641cd6e 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailId.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/userdetails/UserDetailId.kt @@ -17,4 +17,8 @@ package dev.usbharu.hideout.core.domain.model.userdetails @JvmInline -value class UserDetailId(val id: Long) +value class UserDetailId(val id: Long) { + override fun toString(): String { + return "UserDetailId(id=$id)" + } +}