Package-level declarations

Types

Link copied to clipboard
data class ActionResponse(val hasFoundNewPlanet: Boolean, val planet: Planet?, val gainedExperience: Int)
Link copied to clipboard
data class Health(val version: String, val androidVersion: String)
Link copied to clipboard
class Planet(val id: Int, val name: String, val imageId: Int = getImageByName(StudyPlanetApplication.appContext, name), val smallImageId: Int = getImageByName(StudyPlanetApplication.appContext, name + "_small"))

Represents a planet in the Study Planet application.

Link copied to clipboard
data class User(val discoveredPlanets: List<Planet>, val email: String, val name: String, val experience: Int, val currentLevel: Int, val currentLevelProgress: Int, val experienceForCurrentLevel: Int, val experienceForNextLevel: Int, val experienceProgress: Float)

Functions

Link copied to clipboard
fun getImageByName(context: Context, imageName: String): Int

Retrieves the resource ID of an image by its name.