-
-
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.
- Loading branch information
Showing
40 changed files
with
17,788 additions
and
159 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
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
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
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
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
61 changes: 61 additions & 0 deletions
61
chess-service/src/main/kotlin/com/michibaum/chess/apis/chesscom/ChesscomLeaderboards.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,61 @@ | ||
package com.michibaum.chess.apis.chesscom | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class ChesscomLeaderboards( | ||
@JsonProperty("live_rapid") | ||
val liveRapid: List<LiveRapid>, | ||
@JsonProperty("live_blitz") | ||
val liveBlitz: List<LiveBlitz>, | ||
@JsonProperty("live_bullet") | ||
val liveBullet: List<LiveBullet> | ||
) | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class LiveRapid( | ||
@JsonProperty("player_id") | ||
val playerId: Long, | ||
@JsonProperty("@id") | ||
val id: String, | ||
val url: String, | ||
val username: String, | ||
val score: Long, | ||
val rank: Long, | ||
val country: String, | ||
val title: String?, | ||
val name: String?, | ||
val status: String, | ||
) | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class LiveBlitz( | ||
@JsonProperty("player_id") | ||
val playerId: Long, | ||
@JsonProperty("@id") | ||
val id: String, | ||
val url: String, | ||
val username: String, | ||
val score: Long, | ||
val rank: Long, | ||
val country: String, | ||
val title: String, | ||
val name: String, | ||
val status: String, | ||
) | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class LiveBullet( | ||
@JsonProperty("player_id") | ||
val playerId: Long, | ||
@JsonProperty("@id") | ||
val id: String, | ||
val url: String, | ||
val username: String, | ||
val score: Long, | ||
val rank: Long, | ||
val country: String, | ||
val name: String, | ||
val status: 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
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
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
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
5 changes: 5 additions & 0 deletions
5
chess-service/src/main/kotlin/com/michibaum/chess/apis/dtos/TopAccountDto.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,5 @@ | ||
package com.michibaum.chess.apis.dtos | ||
|
||
data class TopAccountDto( | ||
val username: String | ||
) |
Oops, something went wrong.