All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.provenance.explorer.model.base.CommonModels.kt Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show 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 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy