Files
KnockOutWhist-Web/knockoutwhistweb/app/model/users/User.scala
LQ63 1ca410bc4b fix(ui): Websocket
Fixed imports, removed playedCards at trickstart
2025-11-27 08:43:20 +01:00

20 lines
407 B
Scala

package model.users
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)
}
}