aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/io
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-01-19 15:45:18 +0100
committernea <nea@nea.moe>2023-01-19 15:45:18 +0100
commit3ebdac823fdb5dcbbbf80b36c9370878a1cbb1d2 (patch)
treee754ecf7ff8a9ae6b361781e12c14b7b0f934fd7 /src/main/kotlin/io
parent82d3c94ddd024d38bd594787c2779a3cc1935462 (diff)
downloadNotEnoughUpdates-3ebdac823fdb5dcbbbf80b36c9370878a1cbb1d2.tar.gz
NotEnoughUpdates-3ebdac823fdb5dcbbbf80b36c9370878a1cbb1d2.tar.bz2
NotEnoughUpdates-3ebdac823fdb5dcbbbf80b36c9370878a1cbb1d2.zip
Make use of new collections api in collectionspagepvlevel
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt
index 2f2419eb..b2c7fcec 100644
--- a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt
+++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt
@@ -23,8 +23,21 @@ import com.google.gson.JsonArray
import com.google.gson.JsonObject
import io.github.moulberry.notenoughupdates.NotEnoughUpdates
import java.math.BigInteger
-import java.util.*
import java.util.concurrent.CompletableFuture
+import kotlin.collections.List
+import kotlin.collections.Map
+import kotlin.collections.component1
+import kotlin.collections.component2
+import kotlin.collections.filter
+import kotlin.collections.flatMap
+import kotlin.collections.groupBy
+import kotlin.collections.mapNotNull
+import kotlin.collections.mapValues
+import kotlin.collections.maxOf
+import kotlin.collections.sumOf
+import kotlin.collections.toList
+import kotlin.collections.toMap
+import kotlin.collections.toSet
data class ProfileCollectionInfo(
val collections: Map<String, CollectionInfo>,