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
29
30
31
32
33
34
35
36
|
package at.hannibal2.skyhanni.data.bazaar
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class BazaarApiResponseJson(
@Expose val success: Boolean,
@Expose val cause: String,
@Expose val lastUpdated: Long,
@Expose val products: Map<String, BazaarProduct>,
)
data class BazaarProduct(
@Expose @SerializedName("product_id") val productId: String,
@Expose @SerializedName("quick_status") val quickStatus: BazaarQuickStatus,
@Expose @SerializedName("sell_summary") val sellSummary: List<BazaarSummary>,
@Expose @SerializedName("buy_summary") val buySummary: List<BazaarSummary>,
)
class BazaarQuickStatus(
@Expose val productId: String,
@Expose val sellPrice: Double,
@Expose val sellVolume: Long,
@Expose val sellMovingWeek: Long,
@Expose val sellOrders: Long,
@Expose val buyPrice: Double,
@Expose val buyVolume: Long,
@Expose val buyMovingWeek: Long,
@Expose val buyOrders: Long,
)
data class BazaarSummary(
@Expose val amount: Long,
@Expose val pricePerUnit: Double,
@Expose val orders: Long,
)
|