-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor #1465: migrated savedcards from java to kotlin
- Loading branch information
1 parent
dd45c0b
commit a0bfa15
Showing
10 changed files
with
810 additions
and
888 deletions.
There are no files selected for viewing
53 changes: 0 additions & 53 deletions
53
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/CardsContract.java
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/CardsContract.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,37 @@ | ||
package org.mifos.mobilewallet.mifospay.savedcards | ||
|
||
import org.mifos.mobilewallet.core.data.fineract.entity.savedcards.Card | ||
import org.mifos.mobilewallet.mifospay.base.BasePresenter | ||
import org.mifos.mobilewallet.mifospay.base.BaseView | ||
|
||
/** | ||
* This a contract class working as an Interface for UI | ||
* and Presenter components of the SavedCards Architecture. | ||
* | ||
* @author ankur | ||
* @since 19/May/2018 | ||
*/ | ||
interface CardsContract { | ||
/** | ||
* Defines all the functions in UI Component. | ||
*/ | ||
interface CardsView : BaseView<CardsPresenter?> { | ||
fun showSavedCards(cards: List<Card>) | ||
fun showToast(message: String?) | ||
fun showProgressDialog(message: String?) | ||
fun hideProgressDialog() | ||
fun showErrorStateView(drawable: Int, title: Int, subtitle: Int) | ||
fun showFetchingProcess() | ||
fun hideSwipeProgress() | ||
} | ||
|
||
/** | ||
* Defines all the functions in Presenter Component. | ||
*/ | ||
interface CardsPresenter : BasePresenter { | ||
fun fetchSavedCards() | ||
fun addCard(card: Card?) | ||
fun editCard(card: Card?) | ||
fun deleteCard(position: Int) | ||
} | ||
} |
233 changes: 0 additions & 233 deletions
233
...ay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/presenter/CardsPresenter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.