Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
asoji committed Sep 14, 2024
2 parents dacec41 + 852d4b2 commit 62c2722
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/kotlin/one/devos/osuv2kt/models/GithubUser.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package one.devos.osuv2kt.models

public data class GithubUser(
public val displayName: String,
public val githubUrl: String?,
public val githubUsername: String?,
public val id: Int?,
public val osuUsername: String?,
public val userId: Int?,
public val userUrl: String?
)
19 changes: 19 additions & 0 deletions src/main/kotlin/one/devos/osuv2kt/models/build/Build.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package one.devos.osuv2kt.models.build

import com.google.gson.annotations.SerializedName
import one.devos.osuv2kt.models.changelog.ChangelogEntry
import java.time.OffsetDateTime

public data class Build(
public val createdAt: OffsetDateTime,
public val displayVersion: String,
public val id: Int,
public val updateStream: BuildUpdateStream?,
@SerializedName("users") public val userCount: Int,
public val version: String?,
public val youtubeId: String?,

// Optionals
public val changelogEntries: Set<ChangelogEntry>?,
public val versions: BuildVersions?
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package one.devos.osuv2kt.models.build

public data class BuildUpdateStream(
public val displayVersion: String,
public val id: Int,
public val isFeatured: Boolean,
public val name: String,

// Optionals
public val latestBuild: Build?,
public val userCount: Int
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package one.devos.osuv2kt.models.build

public data class BuildVersions(
public val next: Build,
public val previous: Build
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package one.devos.osuv2kt.models.changelog

import com.google.gson.annotations.SerializedName
import one.devos.osuv2kt.models.GithubUser
import java.time.OffsetDateTime

public data class ChangelogEntry(
public val category: String,
public val createdAt: OffsetDateTime,
public val githubPullRequestId: Int?,
public val githubUrl: String?,
public val id: Int?,
@SerializedName("major") public val isMajor: Boolean,
public val repository: String?,
public val title: String?,
public val type: String,
public val url: String?,

// Optionals
public val githubUser: GithubUser?,
public val message: String?,
public val messageHtml: String?
)

0 comments on commit 62c2722

Please sign in to comment.