mirror of
https://github.com/InsanusMokrassar/SauceNaoAPI.git
synced 2026-10-29 07:13:01 +00:00
LimitsState take comparison operator
This commit is contained in:
1 parent
7727d2400e
commit
5f8e410531
1 file changed
+3
-1
@@ -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