Skip to content

Commit

Permalink
Create #11: Home Intent
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Dec 17, 2024
1 parent b8abd7f commit f13b9b0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/src/main/java/org/sopt/and/feature/home/HomeIntent.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.sopt.and.feature.home

sealed class HomeIntent {
data object LoadHomeContent : HomeIntent()
data class ClickBanner(val bannerId: Int) : HomeIntent()
data class ClickRecommendation(val contentId: Int) : HomeIntent()
data class ClickRankContent(val contentId: Int) : HomeIntent()
data object ClickMoreRecommendations : HomeIntent()
data object ClickMoreRankings : HomeIntent()
}
9 changes: 9 additions & 0 deletions app/src/main/java/org/sopt/and/feature/home/HomeState.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.sopt.and.feature.home

data class HomeState(
val banners: List<Int> = emptyList(),
val recommendedContents: List<Int> = emptyList(),
val rankContents: List<Int> = emptyList(),
val isLoading: Boolean = false,
val error: String? = null
)

0 comments on commit f13b9b0

Please sign in to comment.