refactor: userdetailのtoStringを改良

This commit is contained in:
usbharu 2024-08-24 12:04:31 +09:00
parent c872a837eb
commit 457b6a12be
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
3 changed files with 20 additions and 2 deletions

View File

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

View File

@ -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]"
}
}

View File

@ -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)"
}
}