Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 5232140

Browse files
committed
Added shopEntries and isBundle to shop entries
1 parent 0b7da3f commit 5232140

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

com/thoo/api/model/BRItemShopData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class BRItemShopData {
66

77
val hash: String = ""
88
val date: Date? = null
9-
val featured: Array<BRItem>? = null
10-
val daily: Array<BRItem>? = null
9+
val featured: Array<BRShopEntry>? = null
10+
val daily: Array<BRShopEntry>? = null
1111

1212
}

com/thoo/api/model/BRItem.kt renamed to com/thoo/api/model/BRShopEntry.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.thoo.api.model
22

3-
class BRItem {
3+
class BRShopEntry {
44

55
val regularPrice: Int = 0
66
val finalPrice: Int = 0
7+
val isBundle: Boolean = false
78
val panel: Int = 0
9+
val sortPriority: Int = 0
810
val banner:String = ""
911
val items: Array<BRCosmeticData>? = null
1012

example/Main.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ fun main(args : Array<String>){
1212
println(it.id)
1313
}
1414

15+
api.getItemShop()?.data?.featured?.forEach {
16+
println("${it.isBundle} : ${it.sortPriority}")
17+
}
18+
1519
}

0 commit comments

Comments
 (0)