Skip to content

Commit

Permalink
refactor #1465: migrated savedcards from java to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushSingh07 authored and therajanmaurya committed Jan 13, 2024
1 parent dd45c0b commit a0bfa15
Show file tree
Hide file tree
Showing 10 changed files with 810 additions and 888 deletions.

This file was deleted.

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)
}
}

This file was deleted.

Loading

0 comments on commit a0bfa15

Please sign in to comment.