Last active
May 11, 2021 09:41
-
-
Save mrahimygk/ed9e6fe071162888e9078cd4481b1920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun map(eventData: AboutData, club: ClubSupportItem, matches: LatestMatchItem?, | |
subData: EventFragmentBundleCapsule?, match: Match?, news: SearchResult<SMNews>?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
news?.data?.let { newsData -> | |
items.add(HeaderNews(App.get().getString(R.string.mdl_st_common_news), App.get().getString(R.string.mdl_st_common_see_all_news))) | |
items.addAll(newsData.take(5).map { NewsItemSmall(it) }.toTypedArray()) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return@combineWith if (event == null || club == null || capsuleData == null) null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment