mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 06:51:09 +00:00
refactor: userdetailのtoStringを改良
This commit is contained in:
+10
@@ -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")
|
||||
|
||||
+5
-1
@@ -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]"
|
||||
}
|
||||
}
|
||||
|
||||
+5
-1
@@ -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)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user