package it.integry.integrywmsnative.core.barcode_reader;

import it.integry.barcode_base_android_library.model.BarcodeScanDTO;
import it.integry.integrywmsnative.core.expansion.RunnableArgs;

public class BarcodeCallbackDTO {

    private int ID = -1;

    private RunnableArgs<BarcodeScanDTO> onScanSuccessfull;
    private RunnableArgs<Exception> onScanFailed;

    public int getID() {
        return ID;
    }

    public BarcodeCallbackDTO setID(int ID) {
        this.ID = ID;
        return this;
    }

    public RunnableArgs<BarcodeScanDTO> getOnScanSuccessfull() {
        return onScanSuccessfull;
    }

    public BarcodeCallbackDTO setOnScanSuccessful(RunnableArgs<BarcodeScanDTO> onScanSuccessfull) {
        this.onScanSuccessfull = onScanSuccessfull;
        return this;
    }

    public RunnableArgs<Exception> getOnScanFailed() {
        return onScanFailed;
    }

    public BarcodeCallbackDTO setOnScanFailed(RunnableArgs<Exception> onScanFailed) {
        this.onScanFailed = onScanFailed;
        return this;
    }
}
