Skip to content

Commit

Permalink
refactor(entities): Remove unused fields from Result and User cla…
Browse files Browse the repository at this point in the history
…sses.
  • Loading branch information
pierre.roy committed Jul 30, 2024
1 parent 7b54ed9 commit 7eb499b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/entities/Result.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ data class ResultUser(
val login: String,
val name: String,
val publicRepos: Int,
val totalPrivateRepos: Int,
val updatedAt: String,
) {
companion object {
Expand All @@ -33,7 +32,6 @@ data class ResultUser(
login = user.login,
name = user.name,
publicRepos = user.publicRepos,
totalPrivateRepos = user.totalPrivateRepos,
updatedAt = user.updatedAt,
)
}
Expand Down
15 changes: 0 additions & 15 deletions src/main/kotlin/entities/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -27,28 +25,15 @@ 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,
val reposUrl: String,
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,
)

0 comments on commit 7eb499b

Please sign in to comment.