From 7eb499be56ed0825b4a9c0ab39a6b889765c3407 Mon Sep 17 00:00:00 2001 From: "pierre.roy" Date: Tue, 30 Jul 2024 11:59:38 +0200 Subject: [PATCH] refactor(entities): Remove unused fields from `Result` and `User` classes. --- src/main/kotlin/entities/Result.kt | 2 -- src/main/kotlin/entities/User.kt | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/src/main/kotlin/entities/Result.kt b/src/main/kotlin/entities/Result.kt index d24a1b5..a3f8dff 100644 --- a/src/main/kotlin/entities/Result.kt +++ b/src/main/kotlin/entities/Result.kt @@ -19,7 +19,6 @@ data class ResultUser( val login: String, val name: String, val publicRepos: Int, - val totalPrivateRepos: Int, val updatedAt: String, ) { companion object { @@ -33,7 +32,6 @@ data class ResultUser( login = user.login, name = user.name, publicRepos = user.publicRepos, - totalPrivateRepos = user.totalPrivateRepos, updatedAt = user.updatedAt, ) } diff --git a/src/main/kotlin/entities/User.kt b/src/main/kotlin/entities/User.kt index a872cd6..2a18058 100644 --- a/src/main/kotlin/entities/User.kt +++ b/src/main/kotlin/entities/User.kt @@ -7,10 +7,8 @@ data class User( val avatarUrl: String, val bio: String, val blog: String, - val collaborators: Int, val company: String?, val createdAt: String, - val diskUsage: Int, val email: String, val eventsUrl: String, val followers: Int, @@ -27,9 +25,6 @@ data class User( val name: String, val nodeId: String, val organizationsUrl: String, - val ownedPrivateRepos: Int, - val plan: Plan, - val privateGists: Int, val publicGists: Int, val publicRepos: Int, val receivedEventsUrl: String, @@ -37,18 +32,8 @@ data class User( val siteAdmin: Boolean, val starredUrl: String, val subscriptionsUrl: String, - val totalPrivateRepos: Int, val twitterUsername: String, - val twoFactorAuthentication: Boolean, val type: String, val updatedAt: String, val url: String, ) - -@Serializable -data class Plan( - val collaborators: Int, - val name: String, - val privateRepos: Int, - val space: Int, -)