// Path: app/src/main/java/com/sampleapp/interfaces/OnDialogButtonClickListener.java
// public interface OnDialogButtonClickListener {
// 
//     void onPositiveButtonClicked();
// 
//     void onNegativeButtonClicked();
// }


import android.app.AlertDialog;
import android.content.Context;
import com.sampleapp.R;
import com.sampleapp.interfaces.OnDialogButtonClickListener;
package com.sampleapp.utils;



/**
 * Created by saveen_dhiman on 05-November-16.
 * contains Dialogs to be used in the application
 */
public class DialogsUtil {

    private Context mContext;

    public DialogsUtil(Context context) {
        this.mContext = context;
    }

    /**
     * Return an alert dialog
     *
     * @param message  message for the alert dialog
     * @param listener listener to trigger selection methods
     */
    public void openAlertDialog(Context context, String message, String positiveBtnText, String negativeBtnText,
// Path: app/src/main/java/com/sampleapp/interfaces/OnDialogButtonClickListener.java
// public interface OnDialogButtonClickListener {
// 
//     void onPositiveButtonClicked();
// 
//     void onNegativeButtonClicked();
// }


// Path: app/src/main/java/com/sampleapp/utils/DialogsUtil.java
import android.app.AlertDialog;
import android.content.Context;
import com.sampleapp.R;
import com.sampleapp.interfaces.OnDialogButtonClickListener;

package com.sampleapp.utils;



/**
 * Created by saveen_dhiman on 05-November-16.
 * contains Dialogs to be used in the application
 */
public class DialogsUtil {

    private Context mContext;

    public DialogsUtil(Context context) {
        this.mContext = context;
    }

    /**
     * Return an alert dialog
     *
     * @param message  message for the alert dialog
     * @param listener listener to trigger selection methods
     */
    public void openAlertDialog(Context context, String message, String positiveBtnText, String negativeBtnText,
                                final OnDialogButtonClickListener listener) {