feat: BAC-30 Implement Jackson Mapping via DTOs (#102)

Reviewed-on: #102
Co-authored-by: Janis <janis.e.20@gmx.de>
Co-committed-by: Janis <janis.e.20@gmx.de>
This commit is contained in:
2025-12-06 10:17:04 +01:00
committed by Janis
parent b9e60b5d4a
commit 8d697fd311
16 changed files with 240 additions and 70 deletions

View File

@@ -0,0 +1,17 @@
package dto.subDTO
import de.knockoutwhist.player.AbstractPlayer
case class PlayerDTO(id: String, name: String, dogLife: Boolean)
object PlayerDTO {
def apply(player: AbstractPlayer): PlayerDTO = {
PlayerDTO(
id = player.id.toString,
name = player.name,
dogLife = player.isInDogLife
)
}
}