Package-level declarations

Types

Link copied to clipboard
data class AuthenticatedUserDto(val token: String, val user: UserDto, val validated: Boolean)

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

Link copied to clipboard
data class DiscoverActionDto(val selectedTime: Int)
Link copied to clipboard
data class DiscoverActionResponseDto(val hasFoundNewPlanet: Boolean, val planet: PlanetDto?, val experience: Int)
Link copied to clipboard
data class ExploreActionDto(val planetId: Int, val selectedTime: Int)
Link copied to clipboard
data class ExploreActionResponseDto(val experience: Int)
Link copied to clipboard
data class HealthDto(val env: String, val name: String, val version: String, val androidVersion: String, val iosVersion: String)
Link copied to clipboard
data class LoginDto(val email: String, val password: String)
Link copied to clipboard
data class PlanetDto(val id: Int, val name: String)

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

Link copied to clipboard
data class RegisterDto(val name: String, val email: String, val password: String)
Link copied to clipboard
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.

Functions

Link copied to clipboard

Converts the AuthenticatedUserDto to a UserRoomEntity for local database storage. This function might be useful when a user registers with no discovered planets yet.

Converts the UserDto to a UserRoomEntity for local database storage.

Converts the PlanetDto to a PlanetRoomEntity for local database storage.