mirror of https://github.com/usbharu/Hideout.git
refactor: userdetailのtoStringを改良
This commit is contained in:
parent
c872a837eb
commit
457b6a12be
|
@ -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")
|
||||
|
|
|
@ -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]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue