Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Last active May 14, 2024 19:33
Show Gist options
  • Save MkhytarMkhoian/b5f3a6dd6773e7aad1d4ef39baba88a9 to your computer and use it in GitHub Desktop.
Save MkhytarMkhoian/b5f3a6dd6773e7aad1d4ef39baba88a9 to your computer and use it in GitHub Desktop.
@Parcelize
data class FareListState(
val status: ScreenContentStatus = ScreenContentStatus.Idle,
val showRequestLoading: Boolean = false,
val fares: List<FareModel> = emptyList(),
) : Parcelable
sealed class FareListEffect {
data class GoToConfirmation(val ryderId: String, val fare: FareModel) : FareListEffect()
data object ShowGeneralNetworkError : FareListEffect()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment