Create event file.

This commit is contained in:
Hyperling 2025-01-09 14:15:15 -07:00
parent 6c95d33526
commit bf61d878cc

View File

@ -0,0 +1,12 @@
package com.hyperling.expensetracker
sealed interface ExpenseEvent {
object SaveExpense: ExpenseEvent
data class SetName(val name: String): ExpenseEvent
data class SetCost(val cost: Double): ExpenseEvent
data class SetRate(val rate: Rate): ExpenseEvent
object ShowDialog: ExpenseEvent
object HideDialog: ExpenseEvent
data class SortExpenses(val rate: Rate): ExpenseEvent
data class DeleteExpense(val expense: Expense): ExpenseEvent
}