-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
7 changed files
with
236 additions
and
86 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
23 changes: 23 additions & 0 deletions
23
...ived/src/main/java/com/susu/feature/received/envelopeedit/ReceivedEnvelopeEditContract.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,23 @@ | ||
package com.susu.feature.received.envelopeedit | ||
|
||
import com.susu.core.model.Envelope | ||
import com.susu.core.model.Relationship | ||
import com.susu.core.ui.base.SideEffect | ||
import com.susu.core.ui.base.UiState | ||
import com.susu.feature.received.envelopeadd.content.relationship.RelationShipSideEffect | ||
import kotlinx.collections.immutable.PersistentList | ||
import kotlinx.collections.immutable.persistentListOf | ||
|
||
data class ReceivedEnvelopeEditState( | ||
val envelope: Envelope = Envelope(), | ||
val relationshipConfig: PersistentList<Relationship> = persistentListOf(Relationship()), | ||
val showCustomRelationButton: Boolean = false, | ||
val showDateBottomSheet: Boolean = false, | ||
val isRelationSaved: Boolean = false, | ||
) : UiState { | ||
} | ||
|
||
sealed interface ReceivedEnvelopeEditSideEffect : SideEffect { | ||
data object PopBackStack : ReceivedEnvelopeEditSideEffect | ||
data class HandleException(val throwable: Throwable, val retry: () -> Unit) : ReceivedEnvelopeEditSideEffect | ||
} |
Oops, something went wrong.