Reviewed-on: #102 Co-authored-by: Janis <janis.e.20@gmx.de> Co-committed-by: Janis <janis.e.20@gmx.de>
17 lines
295 B
Scala
17 lines
295 B
Scala
package dto.subDTO
|
|
|
|
import model.sessions.UserSession
|
|
|
|
case class UserDTO(id: String, username: String, host: Boolean = false)
|
|
|
|
object UserDTO {
|
|
|
|
def apply(user: UserSession): UserDTO = {
|
|
UserDTO(
|
|
id = user.id.toString,
|
|
username = user.name,
|
|
host = user.host
|
|
)
|
|
}
|
|
|
|
} |