emo / me.eater.emo / Account

Account

data class Account

Class to hold account data received from Mojang via Authentication

Constructors

<init>

Account(uuid: String, displayName: String, username: String, accessToken: String, userid: String)

Class to hold account data received from Mojang via Authentication

Properties

accessToken

val accessToken: String

Access token that is used to re-authenticate with Mojang, in game as well in the client

displayName

val displayName: String

Display name of account, used in e.g. Minecraft

userid

val userid: String

user id of game profile used. Has zero importance to us.

username

val username: String

Username that is used for login is with non-legacy accounts an email-address

uuid

val uuid: String

UUID of account known by Mojang account services

Companion Object Functions

fromMap

fun fromMap(map: Map<String, Any>): Account