TibiaResponse

@Serializable
data class TibiaResponse<T>(val timestamp: Instant, val isCached: Boolean, val cacheAge: Int, val isCachingEnabled: Boolean, val fetchingTime: Double, val parsingTime: Double, val data: T)(source)

A response from Tibia.com.

Parameters

T

The type of the data returned.

Constructors

Link copied to clipboard
constructor(timestamp: Instant, isCached: Boolean, cacheAge: Int, isCachingEnabled: Boolean, fetchingTime: Double, parsingTime: Double, data: T)

Properties

Link copied to clipboard

How old is the cached response, in seconds.

Link copied to clipboard
val data: T

The data parsed from Tibia.com.

Link copied to clipboard

The time it took to fetch the content from Tibia.com in seconds.

Link copied to clipboard

Whether the current data is cached or not.

Link copied to clipboard

Whether the response has caching enabled or not.

Link copied to clipboard

The time it took to parse the content into data in seconds.

Link copied to clipboard
val timestamp: Instant

the time when the request was done.