// Path: app/src/main/java/com/createchance/doorgod/util/FingerprintAuthResponse.java
// public class FingerprintAuthResponse {
//     public static final int MSG_AUTH_SUCCESS = 100;
//     public static final int MSG_AUTH_FAILED = 101;
//     public static final int MSG_AUTH_ERROR = 102;
//     public static final int MSG_AUTH_HELP = 103;
// 
//     private final int result;
// 
//     public FingerprintAuthResponse(int result) {
//         this.result = result;
//     }
// 
//     public int getResult() {
//         return result;
//     }
// }


import android.support.v4.hardware.fingerprint.FingerprintManagerCompat;
import com.createchance.doorgod.util.FingerprintAuthResponse;
import org.greenrobot.eventbus.EventBus;
package com.createchance.doorgod.fingerprint;




/**
 * Fingerprint auth result callback.
 */
public class MyAuthCallback extends FingerprintManagerCompat.AuthenticationCallback {

    public MyAuthCallback() {
        super();
    }

    @Override
    public void onAuthenticationError(int errMsgId, CharSequence errString) {
        super.onAuthenticationError(errMsgId, errString);

        EventBus.getDefault().
// Path: app/src/main/java/com/createchance/doorgod/util/FingerprintAuthResponse.java
// public class FingerprintAuthResponse {
//     public static final int MSG_AUTH_SUCCESS = 100;
//     public static final int MSG_AUTH_FAILED = 101;
//     public static final int MSG_AUTH_ERROR = 102;
//     public static final int MSG_AUTH_HELP = 103;
// 
//     private final int result;
// 
//     public FingerprintAuthResponse(int result) {
//         this.result = result;
//     }
// 
//     public int getResult() {
//         return result;
//     }
// }


// Path: app/src/main/java/com/createchance/doorgod/fingerprint/MyAuthCallback.java
import android.support.v4.hardware.fingerprint.FingerprintManagerCompat;
import com.createchance.doorgod.util.FingerprintAuthResponse;
import org.greenrobot.eventbus.EventBus;

package com.createchance.doorgod.fingerprint;




/**
 * Fingerprint auth result callback.
 */
public class MyAuthCallback extends FingerprintManagerCompat.AuthenticationCallback {

    public MyAuthCallback() {
        super();
    }

    @Override
    public void onAuthenticationError(int errMsgId, CharSequence errString) {
        super.onAuthenticationError(errMsgId, errString);

        EventBus.getDefault().
                post(new FingerprintAuthResponse(FingerprintAuthResponse.MSG_AUTH_ERROR));