io.provenance.explorer.model.base.CommonModels.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of explorer-api-model Show documentation
Show all versions of explorer-api-model Show documentation
API models used by the Provenance Explorer API
The newest version!
package io.provenance.explorer.model.base
import java.math.BigInteger
const val USD_UPPER = "USD"
const val USD_LOWER = "usd"
data class PagedResults(
val pages: Int,
val results: List,
val total: Long,
val rollupTotals: Map = emptyMap()
)
enum class DateTruncGranularity { MONTH, DAY, HOUR, MINUTE }
data class CountTotal(
val count: BigInteger?,
val total: BigInteger
)
enum class PeriodInSeconds(val seconds: Int) {
SECOND(1),
MINUTE(60),
HOUR(3600),
DAY(86400),
WEEK(604800),
MONTH(2628000),
QUARTER(7884000),
YEAR(31536000)
}
enum class Timeframe { QUARTER, MONTH, WEEK, DAY, HOUR, FOREVER }