Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class DecodedTextures(val timestamp: Long, val profileId: String, val profileName: String, val textures: Map<String, Texture>)

Texture element decoded from RawPlayerProfile.Property.value.

Link copied to clipboard
class DecodedTexturesJsonAdapter(moshi: Moshi) : JsonAdapter<DecodedTextures>
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Metadata(val model: String?)
Link copied to clipboard
class MetadataJsonAdapter(moshi: Moshi) : JsonAdapter<Metadata>
Link copied to clipboard
data class PlayerProfile(val id: String, val name: String, val legacy: Boolean = false, val skinUrl: String?, val capeUrl: String?, val skinModel: SkinModel)

Represents a player's profile as retrieved from the Mojang session servers.

Link copied to clipboard

Custom adapter for converting RawPlayerProfile into a PlayerProfile object.

Link copied to clipboard
data class PlayerUUIDProfile(val id: String, val name: String, val legacy: Boolean = false, val demo: Boolean = false)

This data class should not be used in your app. Only for internal use.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RawPlayerProfile(val id: String, val name: String, val legacy: Boolean = false, val properties: List<RawPlayerProfile.Property>)

The JSON Element that to be processed.

Link copied to clipboard
class RawPlayerProfileJsonAdapter(moshi: Moshi) : JsonAdapter<RawPlayerProfile>
Link copied to clipboard

Enum representing the model type of player's skin.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Texture(val url: String, val metadata: Metadata?)

Data of the texture.

Link copied to clipboard
class TextureJsonAdapter(moshi: Moshi) : JsonAdapter<Texture>