//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.dialog.newsegment.presentation/NewSegmentComponent
NewSegmentComponent
[jvm]
interface NewSegmentComponent : MviModel<NewSegmentComponent.Intent, NewSegmentComponent.UiState, NewSegmentComponent.Effect>
New segment component contract.
Types
Name | Summary |
---|---|
Effect | [jvm] interface Effect Effects. |
Intent | [jvm] interface Intent View intents. |
UiState | [jvm] data class UiState(val key: String = "", val keyError: String = "", val text: String = "", val textError: String = "", val isLoading: Boolean = false) New segment dialog UI state. |
Properties
Name | Summary |
---|---|
effects | [jvm] abstract val effects: SharedFlow<NewSegmentComponent.Effect> |
language | [jvm] abstract var language: LanguageModel Language for which the message should be added |
projectId | [jvm] abstract var projectId: Int Current project ID |
uiState | [jvm] abstract val uiState: StateFlow<NewSegmentComponent.UiState> |
Functions
Name | Summary |
---|---|
reduce | [jvm] abstract fun reduce(intent: NewSegmentComponent.Intent) |