Files
KnockOutWhist-Web/knockoutwhistweb/app/model/users/User.scala
LQ63 6402df43b1 fix(ui): Websocket
Fixed startGame to be correctly implemented
2025-11-27 08:00:32 +01:00

21 lines
448 B
Scala

package model.users
import play.api.libs.json.{Format, Json}
import java.util.UUID
case class User(
internalId: Long,
id: UUID,
name: String,
passwordHash: String
) {
def withName(newName: String): User = {
this.copy(name = newName)
}
private def withPasswordHash(newPasswordHash: String): User = {
this.copy(passwordHash = newPasswordHash)
}
}