-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8633d98
commit ca573b8
Showing
41 changed files
with
618 additions
and
394 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
5 changes: 2 additions & 3 deletions
5
...koreatechboard/ui/article/ArticleEvent.kt → ...techboard/ui/article/ArticleSideEffect.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package com.kongjak.koreatechboard.ui.article | ||
|
||
import com.kongjak.koreatechboard.ui.base.UiEvent | ||
import java.util.UUID | ||
|
||
sealed class ArticleEvent : UiEvent { | ||
data class FetchData(val department: String, val uuid: UUID) : ArticleEvent() | ||
sealed class ArticleSideEffect { | ||
data class FetchData(val department: String, val uuid: UUID) : ArticleSideEffect() | ||
} |
This file contains 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
89 changes: 55 additions & 34 deletions
89
app/src/main/java/com/kongjak/koreatechboard/ui/article/ArticleViewModel.kt
This file contains 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
21 changes: 0 additions & 21 deletions
21
app/src/main/java/com/kongjak/koreatechboard/ui/base/BaseViewModel.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
app/src/main/java/com/kongjak/koreatechboard/ui/base/UiEvent.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
app/src/main/java/com/kongjak/koreatechboard/ui/base/UiState.kt
This file was deleted.
Oops, something went wrong.
This file contains 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
9 changes: 4 additions & 5 deletions
9
...ngjak/koreatechboard/ui/main/MainEvent.kt → .../koreatechboard/ui/main/MainSideEffect.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package com.kongjak.koreatechboard.ui.main | ||
|
||
import com.kongjak.koreatechboard.model.BottomNavigationItem | ||
import com.kongjak.koreatechboard.ui.base.UiEvent | ||
import com.kongjak.koreatechboard.util.routes.Department | ||
|
||
sealed class MainEvent : UiEvent { | ||
data class SetDefaultScreen(val defaultScreen: BottomNavigationItem) : MainEvent() | ||
data class SetDefaultDepartment(val defaultDepartment: Department) : MainEvent() | ||
data object SetOpenedFromNotification : MainEvent() | ||
sealed class MainSideEffect { | ||
data class SetDefaultScreen(val defaultScreen: BottomNavigationItem) : MainSideEffect() | ||
data class SetDefaultDepartment(val defaultDepartment: Department) : MainSideEffect() | ||
data object SetOpenedFromNotification : MainSideEffect() | ||
} |
3 changes: 1 addition & 2 deletions
3
app/src/main/java/com/kongjak/koreatechboard/ui/main/MainState.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package com.kongjak.koreatechboard.ui.main | ||
|
||
import com.kongjak.koreatechboard.model.BottomNavigationItem | ||
import com.kongjak.koreatechboard.ui.base.UiState | ||
import com.kongjak.koreatechboard.util.routes.Department | ||
|
||
data class MainState( | ||
val defaultScreen: BottomNavigationItem = BottomNavigationItem.Home, | ||
val defaultDepartment: Department? = null, | ||
val isOpenedFromNotification: Boolean = false | ||
) : UiState | ||
) |
Oops, something went wrong.