blob: 1a2edc748481c614638f4ef49c4e868b76626c57 [file] [log] [blame]
package com.mifos.apache.fineract.ui.online.identification.uploadidentificationscan;
import android.graphics.Bitmap;
import com.mifos.apache.fineract.ui.base.MvpView;
import java.io.File;
/**
* @author Rajan Maurya
* On 01/08/17.
*/
public interface UploadIdentificationCardContract {
interface View extends MvpView {
void showUserInterface();
void checkCameraPermission();
void openCamera();
void requestPermission();
void saveImageInCache(Bitmap bitmap);
void showScanUploadedSuccessfully();
void showProgressDialog();
void hideProgressDialog();
void showError(String message);
boolean validateIdentifier();
boolean validateDescription();
boolean validateSelectFile();
}
interface Presenter {
void uploadIdentificationCardScan(String customerIdentifier,
String identificationNumber, String scanIdentifier, String description,
File file);
}
}