-
-
Notifications
You must be signed in to change notification settings - Fork 376
Expand file tree
/
Copy pathSeaCreatureJson.kt
More file actions
28 lines (25 loc) · 1.12 KB
/
Copy pathSeaCreatureJson.kt
File metadata and controls
28 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package at.hannibal2.skyhanni.data.jsonobjects.repo
import at.hannibal2.skyhanni.utils.LorenzRarity
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import com.google.gson.reflect.TypeToken
import java.lang.reflect.Type
data class SeaCreatureJson(
@Expose @SerializedName("chat_color") val chatColor: String,
@Expose @SerializedName("sea_creatures") val seaCreatures: Map<String, SeaCreatureInfo>,
) {
companion object {
val TYPE: Type = object : TypeToken<Map<String?, SeaCreatureJson>>() {}.type
}
}
data class SeaCreatureInfo(
@Expose @SerializedName("chat_message") val chatMessage: String,
@Expose @SerializedName("alternate_messages") val alternateMessages: List<String>?,
@Expose @SerializedName("fishing_experience") val fishingExperience: Int,
@Expose val rare: Boolean = false,
@Expose val rarity: LorenzRarity,
@Expose
@SerializedName(value = "lootshare_sphere_override", alternate = ["lootshareSphereOverride"])
val lootshareSphereOverride: Boolean? = null,
@Expose @SerializedName("old_names") val oldNames: List<String>?,
)