Skip to content

Commit 90f6887

Browse files
committed
refactor: Simplify json serializable data classes
1 parent a5248c2 commit 90f6887

File tree

2 files changed

+0
-184
lines changed

2 files changed

+0
-184
lines changed

composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/network/Owner.kt

Lines changed: 0 additions & 46 deletions
This file was deleted.

composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/network/Repo.kt

Lines changed: 0 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -5,162 +5,24 @@ import kotlinx.serialization.Serializable
55

66
@Serializable
77
data class Repo(
8-
@SerialName("allow_forking")
9-
val allowForking: Boolean,
10-
@SerialName("archive_url")
11-
val archiveUrl: String,
12-
@SerialName("archived")
13-
val archived: Boolean,
14-
@SerialName("assignees_url")
15-
val assigneesUrl: String,
16-
@SerialName("blobs_url")
17-
val blobsUrl: String,
18-
@SerialName("branches_url")
19-
val branchesUrl: String,
20-
@SerialName("clone_url")
21-
val cloneUrl: String,
22-
@SerialName("collaborators_url")
23-
val collaboratorsUrl: String,
24-
@SerialName("comments_url")
25-
val commentsUrl: String,
26-
@SerialName("commits_url")
27-
val commitsUrl: String,
28-
@SerialName("compare_url")
29-
val compareUrl: String,
30-
@SerialName("contents_url")
31-
val contentsUrl: String,
32-
@SerialName("contributors_url")
33-
val contributorsUrl: String,
34-
@SerialName("created_at")
35-
val createdAt: String,
36-
@SerialName("default_branch")
37-
val defaultBranch: String,
38-
@SerialName("deployments_url")
39-
val deploymentsUrl: String,
408
@SerialName("description")
419
val description: String,
42-
@SerialName("disabled")
43-
val disabled: Boolean,
44-
@SerialName("downloads_url")
45-
val downloadsUrl: String,
46-
@SerialName("events_url")
47-
val eventsUrl: String,
48-
@SerialName("fork")
49-
val fork: Boolean,
50-
@SerialName("forks")
51-
val forks: Int,
5210
@SerialName("forks_count")
5311
val forksCount: Int,
54-
@SerialName("forks_url")
55-
val forksUrl: String,
5612
@SerialName("full_name")
5713
val fullName: String,
58-
@SerialName("git_commits_url")
59-
val gitCommitsUrl: String,
60-
@SerialName("git_refs_url")
61-
val gitRefsUrl: String,
62-
@SerialName("git_tags_url")
63-
val gitTagsUrl: String,
64-
@SerialName("git_url")
65-
val gitUrl: String,
66-
@SerialName("has_discussions")
67-
val hasDiscussions: Boolean,
68-
@SerialName("has_downloads")
69-
val hasDownloads: Boolean,
70-
@SerialName("has_issues")
71-
val hasIssues: Boolean,
72-
@SerialName("has_pages")
73-
val hasPages: Boolean,
74-
@SerialName("has_projects")
75-
val hasProjects: Boolean,
76-
@SerialName("has_wiki")
77-
val hasWiki: Boolean,
78-
@SerialName("homepage")
79-
val homepage: String,
80-
@SerialName("hooks_url")
81-
val hooksUrl: String,
8214
@SerialName("html_url")
8315
val htmlUrl: String,
8416
@SerialName("id")
8517
val id: Int,
86-
@SerialName("is_template")
87-
val isTemplate: Boolean,
88-
@SerialName("issue_comment_url")
89-
val issueCommentUrl: String,
90-
@SerialName("issue_events_url")
91-
val issueEventsUrl: String,
92-
@SerialName("issues_url")
93-
val issuesUrl: String,
94-
@SerialName("keys_url")
95-
val keysUrl: String,
96-
@SerialName("labels_url")
97-
val labelsUrl: String,
9818
@SerialName("language")
9919
val language: String,
100-
@SerialName("languages_url")
101-
val languagesUrl: String,
10220
@SerialName("license")
10321
val license: License?,
104-
@SerialName("merges_url")
105-
val mergesUrl: String,
106-
@SerialName("milestones_url")
107-
val milestonesUrl: String,
10822
@SerialName("name")
10923
val name: String,
110-
@SerialName("node_id")
111-
val nodeId: String,
112-
@SerialName("notifications_url")
113-
val notificationsUrl: String,
114-
@SerialName("open_issues")
115-
val openIssues: Int,
116-
@SerialName("open_issues_count")
117-
val openIssuesCount: Int,
118-
@SerialName("owner")
119-
val owner: Owner,
120-
@SerialName("private")
121-
val `private`: Boolean,
122-
@SerialName("pulls_url")
123-
val pullsUrl: String,
124-
@SerialName("pushed_at")
125-
val pushedAt: String,
126-
@SerialName("releases_url")
127-
val releasesUrl: String,
128-
@SerialName("score")
129-
val score: Double,
130-
@SerialName("size")
131-
val size: Int,
132-
@SerialName("ssh_url")
133-
val sshUrl: String,
13424
@SerialName("stargazers_count")
13525
val stargazersCount: Int,
136-
@SerialName("stargazers_url")
137-
val stargazersUrl: String,
138-
@SerialName("statuses_url")
139-
val statusesUrl: String,
140-
@SerialName("subscribers_url")
141-
val subscribersUrl: String,
142-
@SerialName("subscription_url")
143-
val subscriptionUrl: String,
144-
@SerialName("svn_url")
145-
val svnUrl: String,
146-
@SerialName("tags_url")
147-
val tagsUrl: String,
148-
@SerialName("teams_url")
149-
val teamsUrl: String,
15026
@SerialName("topics")
15127
val topics: List<String>,
152-
@SerialName("trees_url")
153-
val treesUrl: String,
154-
@SerialName("updated_at")
155-
val updatedAt: String,
156-
@SerialName("url")
157-
val url: String,
158-
@SerialName("visibility")
159-
val visibility: String,
160-
@SerialName("watchers")
161-
val watchers: Int,
162-
@SerialName("watchers_count")
163-
val watchersCount: Int,
164-
@SerialName("web_commit_signoff_required")
165-
val webCommitSignoffRequired: Boolean
16628
)

0 commit comments

Comments
 (0)