-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converting the transaction create screen
- Loading branch information
Showing
7 changed files
with
521 additions
and
358 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
51 changes: 51 additions & 0 deletions
51
...otlin/com/naveenapps/expensemanager/feature/transaction/create/TransactionCreateAction.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,51 @@ | ||
package com.naveenapps.expensemanager.feature.transaction.create | ||
|
||
import com.naveenapps.expensemanager.core.model.AccountUiModel | ||
import com.naveenapps.expensemanager.core.model.Category | ||
import com.naveenapps.expensemanager.core.model.TransactionType | ||
import java.util.Date | ||
|
||
sealed class TransactionCreateAction { | ||
|
||
data object ClosePage : TransactionCreateAction() | ||
|
||
data object ShowDeleteDialog : TransactionCreateAction() | ||
|
||
data object DismissDeleteDialog : TransactionCreateAction() | ||
|
||
data class OpenAccountCreate(val account: AccountUiModel?) : TransactionCreateAction() | ||
|
||
data class SelectAccount(val account: AccountUiModel) : TransactionCreateAction() | ||
|
||
data object DismissAccountSelection : TransactionCreateAction() | ||
|
||
data class ShowAccountSelection(val type: AccountSelection) : TransactionCreateAction() | ||
|
||
data class OpenCategoryCreate(val category: Category?) : TransactionCreateAction() | ||
|
||
data class SelectCategory(val category: Category) : TransactionCreateAction() | ||
|
||
data object DismissCategorySelection : TransactionCreateAction() | ||
|
||
data object ShowCategorySelection : TransactionCreateAction() | ||
|
||
data object Delete : TransactionCreateAction() | ||
|
||
data object Save : TransactionCreateAction() | ||
|
||
data class SetNumberPadValue(val amount: String?) : TransactionCreateAction() | ||
|
||
data object ShowNumberPad : TransactionCreateAction() | ||
|
||
data object DismissNumberPad : TransactionCreateAction() | ||
|
||
data class ChangeTransactionType(val type: TransactionType) : TransactionCreateAction() | ||
|
||
data class SelectDate(val date: Date) : TransactionCreateAction() | ||
|
||
data object ShowDateSelection : TransactionCreateAction() | ||
|
||
data object DismissDateSelection : TransactionCreateAction() | ||
|
||
data object ShowTimeSelection : TransactionCreateAction() | ||
} |
Oops, something went wrong.