mirror of
https://github.com/InsanusMokrassar/SauceNaoAPI.git
synced 2025-09-16 13:39:18 +00:00
LimitsState take comparison operator
This commit is contained in:
@@ -8,4 +8,6 @@ data class LimitsState(
|
||||
val maxLongQuota: Int,
|
||||
val knownShortQuota: Int,
|
||||
val knownLongQuota: Int
|
||||
)
|
||||
) : Comparable<LimitsState> {
|
||||
override fun compareTo(other: LimitsState): Int = knownShortQuota.compareTo(other.knownShortQuota)
|
||||
}
|
||||
|
Reference in New Issue
Block a user