package com.epson.iprint.shared;

import android.os.Bundle;

import java.io.Serializable;
import java.util.ArrayList;

public class SharedParamStatus extends SharedParam implements Serializable {
    private static final long serialVersionUID = 1810612490181007537L;
    private ArrayList<String> arrayOutInkName = null;
    private ArrayList<Integer> arrayOutInkRemain = null;
    private ArrayList<Integer> mEscprLibInkStatus = null;
    private String mcsModelName = null;
    private int miReturnStatus = 4;

    public void setParam(Bundle bundle) throws SharedDataException {
    }

    public /* bridge */ /* synthetic */ String getPackage_name() {
        return super.getPackage_name();
    }

    public /* bridge */ /* synthetic */ boolean isAvailable() {
        return super.isAvailable();
    }

    public void setPrinter_name(String str) {
        mcsModelName = str;
    }

    public void setPrinter_status(int i) {
        miReturnStatus = i;
    }

    public String getPrinter_name() {
        return mcsModelName;
    }

    public int getPrinter_status() {
        return miReturnStatus;
    }

    public ArrayList<String> getArrayOutInkName() {
        return arrayOutInkName;
    }

    public void setArrayOutInkName(ArrayList<String> arrayList) {
        arrayOutInkName = arrayList;
    }

    public void clearArrayOutInkName() {
        arrayOutInkName.clear();
    }

    public ArrayList<Integer> getArrayOutInkRemain() {
        return arrayOutInkRemain;
    }

    public void setArrayOutInkRemain(ArrayList<Integer> arrayList) {
        arrayOutInkRemain = arrayList;
    }

    public void clearArrayOutInkRemain() {
        arrayOutInkRemain.clear();
    }

    public ArrayList<Integer> getExternInkStatus() {
        ArrayList<Integer> arrayList = mEscprLibInkStatus;
        if (arrayList == null) {
            return null;
        }
        ArrayList<Integer> arrayList2 = new ArrayList<>(arrayList.size());
        for (int i = 0; i < mEscprLibInkStatus.size(); i++) {
            int intValue = mEscprLibInkStatus.get(i).intValue();
            if (intValue != -3) {
                switch (intValue) {
                    case -1:
                        break;
                    case 0:
                        if (arrayOutInkRemain.get(i).intValue() != 0) {
                            arrayList2.add(0);
                            break;
                        } else {
                            arrayList2.add(2);
                            continue;
                        }
                    case 1:
                        arrayList2.add(1);
                        continue;
                    case 2:
                        arrayList2.add(2);
                        continue;
                    default:
                        arrayList2.add(-1);
                        continue;
                }
            }
            arrayList2.add(2);
        }
        return arrayList2;
    }

    public void setEscprlibInkStatus(ArrayList<Integer> arrayList) {
        mEscprLibInkStatus = arrayList;
    }
}
