Skip to content

Commit

Permalink
Load/Send teamId from API
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonnold committed Aug 2, 2020
1 parent eb2ab23 commit 99e4668
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ data class ReplayDetailRow(
@Column("player_id")
var playerId: UUID,

@Column("team_id")
var teamId: Long,

@Column("profile_id")
var profileId: Long,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ data class ReplaySummaryRow(
@Column("player_id")
var playerId: UUID,

@Column("team_id")
var teamId: Long,

@Column("profile_id")
var profileId: Long,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class ReplayService(private val replayDAO: ReplayDAO) {
player.playerId,
player.race,
player.name,
player.profileId
player.profileId,
player.teamId
)
}
)
Expand Down Expand Up @@ -95,6 +96,7 @@ class ReplayService(private val replayDAO: ReplayDAO) {
playerSnapshots[0].playerId,
playerSnapshots[0].race,
playerSnapshots[0].name,
playerSnapshots[0].teamId,
playerSnapshots[0].profileId,
playerSnapshots[0].collectedMinerals,
playerSnapshots[0].collectedVespene,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class ReplayDetails(
val playerId: UUID?,
val race: String = "",
val name: String = "",
val teamId: Long = 0,
val profileId: Long = 0,
val collectedMinerals: Long = 0,
val collectedVespene: Long = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ data class ReplaySummary(
val playerId: UUID,
val race: String,
val name: String,
val profileId: Long
val profileId: Long,
val teamId: Long
)
}

0 comments on commit 99e4668

Please sign in to comment.