Planet

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.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, imageId: Int = getImageByName(StudyPlanetApplication.appContext, name), smallImageId: Int = getImageByName(StudyPlanetApplication.appContext, name + "_small"))

Properties

Link copied to clipboard
val id: Int

The unique identifier of the planet.

Link copied to clipboard

The resource ID of the planet's image. Defaults to the image associated with the planet's name.

Link copied to clipboard

The name of the planet.

Link copied to clipboard