Package-level declarations

Types

Link copied to clipboard
data class ClientAccount(session: OAuthSession? = null, var userInformation: UserInformation? = null, var cosmetics: Set<Cosmetic>? = null)

Represents a client account that is used to authenticate with the LiquidBounce API. It might hold additional information that can be obtained from the API.

Link copied to clipboard
data class ExpiryValue<T>(val value: T, val expiresAt: Long)

Represents a value that expires at a certain time defined by expiresAt.

Link copied to clipboard
data class OAuthSession(var accessToken: ExpiryValue<String>, val refreshToken: String)

Contains the access token and the refresh token.

Link copied to clipboard
data class TokenResponse(val accessToken: String, val expiresIn: Long, val refreshToken: String?)

Functions

Link copied to clipboard
fun Headers.Builder.addAuth(session: OAuthSession): Headers.Builder