package com.avg.zaap.crashlibrary;

import android.support.annotation.NonNull;

/**
 * This interface denotes the common behavior for the bin packer callbacks.
 * <p>
 * Created by marek.osvald on 30.6.2016.
 */
public interface IBinPackerCallback {

    /**
     * This method is called whenever a binary packer successfully packs its files.
     *
     * @param reportData crash report data structure
     * @param filePath   file path of the packed archive
     */
    void onBinPackerSuccess(@NonNull ReportData reportData, String filePath);

    /**
     * This method is called whenever binary packer fails to pack its files.
     *
     * @param reportData crash report data structure
     * @param cause throwable instance which caused the failure
     */
    void onBinPackerFailure(@NonNull ReportData reportData, Throwable cause);

}
