-
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.
moved: errorMessages usage from UiState to Events and its usages updated
- Loading branch information
Showing
17 changed files
with
113 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
3 changes: 2 additions & 1 deletion
3
feature/details/src/main/java/dev/enesky/feature/details/helpers/DetailsEvents.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,13 @@ | ||
package dev.enesky.feature.details.helpers | ||
|
||
import dev.enesky.core.common.delegate.IErrorEvent | ||
import dev.enesky.core.common.delegate.IEvent | ||
|
||
/** | ||
* Created by Enes Kamil YILMAZ on 07/12/2023 | ||
*/ | ||
|
||
sealed interface DetailsEvents : IEvent { | ||
data class OnError(val errorMessage: String) : DetailsEvents | ||
data class OnError(override val errorMessage: String) : DetailsEvents, IErrorEvent | ||
data class OnTrailerPlayClick(val animeId: String) : DetailsEvents | ||
} |
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
3 changes: 2 additions & 1 deletion
3
feature/home/src/main/java/dev/enesky/feature/home/helpers/HomeEvents.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,13 +1,14 @@ | ||
package dev.enesky.feature.home.helpers | ||
|
||
import dev.enesky.core.common.delegate.IErrorEvent | ||
import dev.enesky.core.common.delegate.IEvent | ||
|
||
/** | ||
* Created by Enes Kamil YILMAZ on 07/12/2023 | ||
*/ | ||
|
||
sealed interface HomeEvents : IEvent { | ||
data class OnError(val errorMessage: String) : HomeEvents | ||
data class OnError(override val errorMessage: String) : HomeEvents, IErrorEvent | ||
data class OnItemOptionsClick(val animeId: String) : HomeEvents | ||
data class NavigateToDetails(val animeId: String) : HomeEvents | ||
} |
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
4 changes: 3 additions & 1 deletion
4
feature/login/src/main/java/dev/enesky/feature/login/signin/helpers/SignInEvents.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,13 +1,15 @@ | ||
package dev.enesky.feature.login.signin.helpers | ||
|
||
import dev.enesky.core.common.delegate.IErrorEvent | ||
import dev.enesky.core.common.delegate.IEvent | ||
|
||
/** | ||
* Created by Enes Kamil YILMAZ on 28/11/2023 | ||
*/ | ||
|
||
sealed interface SignInEvents : IEvent { | ||
data class OnError(val errorMessage: String) : SignInEvents | ||
data class OnError(override val errorMessage: String) : SignInEvents, IErrorEvent | ||
data object NavigateToHome : SignInEvents | ||
data object NavigateToSignUp : SignInEvents | ||
|
||
} |
Oops, something went wrong.