UserDto

data class UserDto(val id: Int, val email: String, val name: String, val experience: Int, val discoveredPlanets: List<PlanetDto>)

Data transfer object (DTO) representing a user received from the remote API.

Constructors

Link copied to clipboard
constructor(id: Int, email: String, name: String, experience: Int, discoveredPlanets: List<PlanetDto>)

Properties

Link copied to clipboard

The list of planets discovered by the user.

Link copied to clipboard

The email address of the user.

Link copied to clipboard

The experience level of the user.

Link copied to clipboard
val id: Int

The unique identifier of the user.

Link copied to clipboard

The name of the user.

Functions

Link copied to clipboard

Converts the UserDto to a UserRoomEntity for local database storage.