forked from openMF/mifos-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed openMF#2442 :When Recent Transactions is opened without connect…
…ion of internet…
- Loading branch information
Showing
45 changed files
with
1,213 additions
and
352 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
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
10 changes: 5 additions & 5 deletions
10
app/src/main/java/org/mifos/mobile/repositories/ClientChargeRepository.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.mifos.mobile.repositories | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
import org.mifos.mobile.models.Charge | ||
import org.mifos.mobile.models.Page | ||
import retrofit2.Response | ||
|
||
interface ClientChargeRepository { | ||
|
||
suspend fun getClientCharges(clientId: Long): Response<Page<Charge?>?>? | ||
suspend fun getLoanCharges(loanId: Long): Response<List<Charge?>?>? | ||
suspend fun getSavingsCharges(savingsId: Long): Response<List<Charge?>?>? | ||
suspend fun clientLocalCharges(): Response<Page<Charge?>?> | ||
suspend fun getClientCharges(clientId: Long): Flow<Page<Charge>> | ||
suspend fun getLoanCharges(loanId: Long): Flow<List<Charge>> | ||
suspend fun getSavingsCharges(savingsId: Long): Flow<List<Charge>> | ||
suspend fun clientLocalCharges(): Flow<Page<Charge?>> | ||
} |
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
app/src/main/java/org/mifos/mobile/repositories/RecentTransactionRepository.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package org.mifos.mobile.repositories | ||
|
||
|
||
import kotlinx.coroutines.flow.Flow | ||
import org.mifos.mobile.models.Page | ||
import org.mifos.mobile.models.Transaction | ||
import retrofit2.Response | ||
|
||
interface RecentTransactionRepository { | ||
|
||
suspend fun recentTransactions( | ||
offset: Int?, | ||
limit: Int? | ||
): Response<Page<Transaction?>?>? | ||
): Flow<Page<Transaction>> | ||
} |
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
Oops, something went wrong.