generated from AND-SOPT-ANDROID/and-sopt-android-template
-
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
6ec409c
commit b3118ee
Showing
7 changed files
with
107 additions
and
93 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
5 changes: 0 additions & 5 deletions
5
app/src/main/java/org/sopt/and/presentation/mypage/MyPageSideEffect.kt
This file was deleted.
Oops, something went wrong.
115 changes: 55 additions & 60 deletions
115
app/src/main/java/org/sopt/and/presentation/mypage/MyPageViewModel.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
7 changes: 7 additions & 0 deletions
7
app/src/main/java/org/sopt/and/presentation/mypage/contract/MyPageSideEffect.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.sopt.and.presentation.mypage.contract | ||
|
||
import org.sopt.and.core.viewmodel.UiSideEffect | ||
|
||
sealed class MyPageSideEffect: UiSideEffect { | ||
data object OnLogout : MyPageSideEffect() | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/org/sopt/and/presentation/mypage/contract/MyPageUiEvent.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.sopt.and.presentation.mypage.contract | ||
|
||
import org.sopt.and.core.viewmodel.UiEvent | ||
import org.sopt.and.domain.entity.Program | ||
|
||
sealed class MyPageUiEvent: UiEvent { | ||
data object OnLogoutButtonClick: MyPageUiEvent() | ||
data object OnFAButtonClick: MyPageUiEvent() | ||
data class OnStarredProgramPressed(val program: Program): MyPageUiEvent() | ||
data object OnSearchDialogDismissed: MyPageUiEvent() | ||
data class OnSearchProgramSelected(val program: Program): MyPageUiEvent() | ||
data object OnDeleteDialogDismissed: MyPageUiEvent() | ||
data object OnDeleteProgramConfirmed: MyPageUiEvent() | ||
} |
7 changes: 3 additions & 4 deletions
7
...resentation/mypage/state/MyPageUiState.kt → ...entation/mypage/contract/MyPageUiState.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,12 +1,11 @@ | ||
package org.sopt.and.presentation.mypage.state | ||
package org.sopt.and.presentation.mypage.contract | ||
|
||
import org.sopt.and.core.viewmodel.UiState | ||
import org.sopt.and.domain.entity.Program | ||
|
||
data class MyPageUiState( | ||
val hobby: String = "", | ||
val searchDialogVisibility: Boolean = false, | ||
val deleteDialogVisibility: Boolean = false, | ||
val pressedProgram: Program? = null, | ||
val starredProgram: List<Program> = emptyList() | ||
|
||
) | ||
): UiState |
10 changes: 0 additions & 10 deletions
10
app/src/main/java/org/sopt/and/presentation/mypage/state/MyPageInteractionState.kt
This file was deleted.
Oops, something went wrong.