-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate category month detail into two one for expenses and one for …
…incomes
- Loading branch information
Showing
40 changed files
with
904 additions
and
249 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
9 changes: 9 additions & 0 deletions
9
...in/src/commonMain/kotlin/com.carlosgub.myfinances/domain/model/MonthDetailExpenseModel.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,9 @@ | ||
package com.carlosgub.myfinances.domain.model | ||
|
||
import kotlinx.datetime.LocalDateTime | ||
|
||
data class MonthDetailExpenseModel( | ||
val monthAmount: Long = 0L, | ||
val daySpent: Map<LocalDateTime, Long> = mapOf(), | ||
val expenseModelList: List<ExpenseModel> = listOf(), | ||
) |
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
4 changes: 2 additions & 2 deletions
4
...commonMain/kotlin/com.carlosgub.myfinances/domain/usecase/GetExpenseMonthDetailUseCase.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
4 changes: 2 additions & 2 deletions
4
.../commonMain/kotlin/com.carlosgub.myfinances/domain/usecase/GetIncomeMonthDetailUseCase.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
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
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
12 changes: 12 additions & 0 deletions
12
...on/src/commonMain/kotlin/com/carlosgub/myfinances/presentation/model/IncomeScreenModel.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,12 @@ | ||
package com.carlosgub.myfinances.presentation.model | ||
|
||
import kotlinx.datetime.LocalDateTime | ||
|
||
data class IncomeScreenModel( | ||
val id: Long, | ||
val amount: Long, | ||
val note: String, | ||
val category: String, | ||
val localDateTime: LocalDateTime, | ||
val date: String, | ||
) |
11 changes: 11 additions & 0 deletions
11
...nMain/kotlin/com/carlosgub/myfinances/presentation/model/MonthDetailExpenseScreenModel.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,11 @@ | ||
package com.carlosgub.myfinances.presentation.model | ||
|
||
import kotlinx.collections.immutable.ImmutableMap | ||
import kotlinx.collections.immutable.persistentMapOf | ||
import kotlinx.datetime.LocalDateTime | ||
|
||
data class MonthDetailExpenseScreenModel( | ||
val monthAmount: Long = 0L, | ||
val daySpent: ImmutableMap<LocalDateTime, Long> = persistentMapOf(), | ||
val expenseScreenModelList: List<ExpenseScreenModel> = listOf(), | ||
) |
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
Oops, something went wrong.