Reviewed-on: #102 Co-authored-by: Janis <janis.e.20@gmx.de> Co-committed-by: Janis <janis.e.20@gmx.de>
17 lines
328 B
Scala
17 lines
328 B
Scala
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
|
|
)
|
|
}
|
|
|
|
} |