Skip to content

Commit

Permalink
added quickPlayStats property
Browse files Browse the repository at this point in the history
  • Loading branch information
shalva97 committed May 25, 2024
1 parent ca5065c commit 0b41431
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Assists(
val assists: Int? = null,
val defensiveAssists: Int? = null,
val healingDone: Int? = null,
val offensiveAssists: Int? = null,
val reconAssists: Int? = null
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Average(
val assistsAvgPer10Min: Float? = null,
val deathsAvgPer10Min: Float? = null,
val eliminationsAvgPer10Min: Float? = null,
val finalBlowsAvgPer10Min: Float? = null,
val healingDoneAvgPer10Min: Float? = null,
val heroDamageDoneAvgPer10Min: Float? = null,
val objectiveContestTimeAvgPer10Min: String? = null,
val objectiveKillsAvgPer10Min: Float? = null,
val objectiveTimeAvgPer10Min: String? = null,
val soloKillsAvgPer10Min: Float? = null,
val timeSpentOnFireAvgPer10Min: String? = null
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Best(
val allDamageDoneMostInGame: Int? = null,
val assistsMostInGame: Int? = null,
val barrierDamageDoneMostInGame: Int? = null,
val defensiveAssistsMostInGame: Int? = null,
val eliminationsMostInGame: Int? = null,
val environmentalKillsMostInGame: Int? = null,
val finalBlowsMostInGame: Int? = null,
val healingDoneMostInGame: Int? = null,
val heroDamageDoneMostInGame: Int? = null,
val killsStreakBest: Int? = null,
val meleeFinalBlowsMostInGame: Int? = null,
val multikillsBest: Int? = null,
val objectiveContestTimeMostInGame: String? = null,
val objectiveKillsMostInGame: Int? = null,
val objectiveTimeMostInGame: String? = null,
val offensiveAssistsMostInGame: Int? = null,
val reconAssistsMostInGame: Int? = null,
val soloKillsMostInGame: Int? = null,
val timeSpentOnFireMostInGame: String? = null
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonElement

@Serializable
public data class CareerHeroStats(
val assists: Assists? = null,
val average: Average,
val best: Best,
val combat: Combat,
val heroSpecific: JsonElement?,
val game: Game,
val matchAwards: JsonElement?
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class CareerHeroes(
val allHeroes: CareerHeroStats,
val ana: CareerHeroStats,
val ashe: CareerHeroStats,
val baptiste: CareerHeroStats,
val bastion: CareerHeroStats,
val brigitte: CareerHeroStats,
val cassidy: CareerHeroStats,
val dVa: CareerHeroStats,
val doomfist: CareerHeroStats,
val echo: CareerHeroStats,
val genji: CareerHeroStats,
val hanzo: CareerHeroStats,
val illari: CareerHeroStats,
val junkerQueen: CareerHeroStats,
val junkrat: CareerHeroStats,
val kiriko: CareerHeroStats,
val lifeweaver: CareerHeroStats,
val lucio: CareerHeroStats,
val mauga: CareerHeroStats,
val mei: CareerHeroStats,
val mercy: CareerHeroStats,
val moira: CareerHeroStats,
val orisa: CareerHeroStats,
val ramattra: CareerHeroStats,
val reaper: CareerHeroStats,
val reinhardt: CareerHeroStats,
val roadhog: CareerHeroStats,
val sigma: CareerHeroStats,
val soldier76: CareerHeroStats,
val sombra: CareerHeroStats,
val torbjorn: CareerHeroStats,
val tracer: CareerHeroStats,
val widowmaker: CareerHeroStats,
val winston: CareerHeroStats,
val wreckingBall: CareerHeroStats,
val zarya: CareerHeroStats,
val zenyatta: CareerHeroStats
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Combat(
val damageDone: Int? = null,
val deaths: Int? = null,
val eliminations: Int? = null,
val environmentalKills: Int? = null,
val finalBlows: Int? = null,
val heroDamageDone: Int? = null,
val meleeFinalBlows: Int? = null,
val multikills: Int? = null,
val objectiveContestTime: String? = null,
val objectiveKills: Int? = null,
val objectiveTime: String? = null,
val soloKills: Int? = null,
val timeSpentOnFire: String? = null
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Game(
val gamesLost: Int,
val gamesPlayed: Int,
val gamesWon: Int? = null,
val heroWins: Int? = null,
val timePlayed: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,8 @@ public data class PlayerProfileStats(
val ratings: List<Rating>,
val gamesWon: Int,
val gamesLost: Int,
val gamesPlayed: Int,
val private: Boolean,
// TODO add quickPlayStats and competitiveStats
)

@Serializable
public data class Rating(
val group: String,
val tier: Int,
val role: String,
val roleIcon: String,
val rankIcon: String,
val tierIcon: String
val quickPlayStats: QuickPlayStats
// TODO add competitiveStats
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class QuickPlayStats(
val topHeroes: TopHeroes,
val careerStats: CareerHeroes
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class Rating(
val group: String,
val tier: Int,
val role: String,
val roleIcon: String,
val rankIcon: String,
val tierIcon: String
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class TopHero(
val timePlayed: String,
val gamesWon: Int,
val weaponAccuracy: Float,
val criticalHitAccuracy: Float,
val eliminationsPerLife: Float,
val multiKillBest: Int,
val objectiveKills: Int,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package io.github.shalva97.overwatch_player_search_api.models.profile

import kotlinx.serialization.Serializable

@Serializable
public data class TopHeroes(
val ana: TopHero,
val ashe: TopHero,
val baptiste: TopHero,
val bastion: TopHero,
val brigitte: TopHero,
val cassidy: TopHero,
val dVa: TopHero,
val doomfist: TopHero,
val echo: TopHero,
val genji: TopHero,
val hanzo: TopHero,
val illari: TopHero,
val junkerQueen: TopHero,
val junkrat: TopHero,
val kiriko: TopHero,
val lifeweaver: TopHero,
val lucio: TopHero,
val mauga: TopHero,
val mei: TopHero,
val mercy: TopHero,
val moira: TopHero,
val orisa: TopHero,
val ramattra: TopHero,
val reaper: TopHero,
val reinhardt: TopHero,
val roadhog: TopHero,
val sigma: TopHero,
val soldier76: TopHero,
val sombra: TopHero,
val torbjorn: TopHero,
val tracer: TopHero,
val widowmaker: TopHero,
val winston: TopHero,
val wreckingBall: TopHero,
val zarya: TopHero,
val zenyatta: TopHero
)

0 comments on commit 0b41431

Please sign in to comment.