DroidKaigi / conference-app-2021

The Official App for DroidKaigi 2021
https://droidkaigi.jp/
Apache License 2.0
641 stars 181 forks source link

Refactoring around TimetableItemList #719

Open takahirom opened 3 years ago

takahirom commented 3 years ago

Kind (Required)

Currently, I am using List for TimetableItemList. However, I would like to use "favorites" in TimetableItemList. Currently, we are using timetableContents.favorites.contains(timetableItemId). For example, TimetableItemList has a pair of TimetableItem and isFavorited. TimetableItemList(timetableItems, favorites).get(0) returns Pair<TimetableItem, Boolean>

https://github.com/DroidKaigi/conference-app-2021/blob/main/model/src/commonMain/kotlin/io/github/droidkaigi/feeder/TimetableContents.kt#L8

Links

-