-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/devOS-Sanity-Edition/osuv2kt
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | ||
) |
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/one/devos/osuv2kt/models/build/BuildUpdateStream.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/build/BuildVersions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
23 changes: 23 additions & 0 deletions
23
src/main/kotlin/one/devos/osuv2kt/models/changelog/ChangelogEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | ||
) |