Skip to content

Commit 674d10c

Browse files
committed
fix: toString
1 parent b51b7af commit 674d10c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/spp/protocol/platform/auth/DeveloperRole.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import io.vertx.core.json.JsonObject
2626
*/
2727
@DataObject
2828
data class DeveloperRole(val roleName: String, val nativeRole: Boolean) {
29+
2930
constructor(json: JsonObject) : this(
3031
json.getString("roleName"),
3132
json.getBoolean("nativeRole")
@@ -35,6 +36,10 @@ data class DeveloperRole(val roleName: String, val nativeRole: Boolean) {
3536
return JsonObject.mapFrom(this)
3637
}
3738

39+
override fun toString(): String {
40+
return roleName
41+
}
42+
3843
companion object {
3944
val ROLE_MANAGER = DeveloperRole("role_manager", true)
4045
val ROLE_USER = DeveloperRole("role_user", true)

0 commit comments

Comments
 (0)