Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrated savedcards from java to kotlin #1466

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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
Loading