-
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 #1450: edit profile migrated from java to kotlin
- Loading branch information
1 parent
b362832
commit 0a0347a
Showing
6 changed files
with
732 additions
and
791 deletions.
There are no files selected for viewing
75 changes: 0 additions & 75 deletions
75
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/editprofile/EditProfileContract.java
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/editprofile/EditProfileContract.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,44 @@ | ||
package org.mifos.mobilewallet.mifospay.editprofile | ||
|
||
import org.mifos.mobilewallet.mifospay.base.BasePresenter | ||
import org.mifos.mobilewallet.mifospay.base.BaseView | ||
|
||
/** | ||
* Created by ankur on 27/June/2018 | ||
*/ | ||
interface EditProfileContract { | ||
interface EditProfilePresenter : BasePresenter { | ||
fun fetchUserDetails() | ||
fun handleNecessaryDataSave() | ||
fun updateInputById(id: Int, content: String?) | ||
fun updateEmail(email: String?) | ||
fun updateMobile(fullNumber: String?) | ||
fun handleProfileImageChangeRequest() | ||
fun handleProfileImageRemoved() | ||
fun handleClickProfileImageRequest() | ||
fun handleExitOnUnsavedChanges() | ||
fun onDialogNegative() | ||
fun onDialogPositive() | ||
} | ||
|
||
interface EditProfileView : BaseView<EditProfilePresenter?> { | ||
fun showDefaultImageByUsername(fullName: String?) | ||
fun showUsername(username: String?) | ||
fun showEmail(email: String?) | ||
fun showVpa(vpa: String?) | ||
fun showMobileNumber(mobileNumber: String?) | ||
fun removeProfileImage() | ||
fun changeProfileImage() | ||
fun clickProfileImage() | ||
fun onUpdateEmailError(message: String?) | ||
fun onUpdateMobileError(message: String?) | ||
fun showToast(message: String?) | ||
fun showFab() | ||
fun hideFab() | ||
fun hideKeyboard() | ||
fun startProgressBar() | ||
fun stopProgressBar() | ||
fun showDiscardChangesDialog() | ||
fun closeActivity() | ||
} | ||
} |
188 changes: 0 additions & 188 deletions
188
...main/java/org/mifos/mobilewallet/mifospay/editprofile/presenter/EditProfilePresenter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.