package com.mstar.android.tvapi.dtv.vo;

import com.mstar.android.tvapi.common.exception.TvOutOfBoundException;
import java.util.Hashtable;

/* JADX INFO: loaded from: classes.dex */
public enum EnumEpgFunctionStatus {
    E_EPG_FUNC_STATUS_SUCCESS(0),
    E_EPG_FUNC_STATUS_INVALID(1),
    E_EPG_FUNC_STATUS_NO_EVENT(2),
    E_EPG_FUNC_STATUS_NO_STRING(3),
    E_EPG_FUNC_STATUS_NO_CHANNEL(4),
    E_EPG_FUNC_STATUS_CRID_NOT_FOUND(5),
    E_EPG_FUNC_STATUS_DB_NO_CONNECT(10),
    E_EPG_FUNC_STATUS_DB_NO_LOCK(11),
    E_EPG_FUNC_STATUS_DB_NO_CHANNEL_DB(12),
    E_EPG_FUNC_STATUS_NO_FUNCTION(255);

    private final int value;
    private static int seq = 0;
    private static Hashtable<Integer, Integer> enumhash = new Hashtable<>();

    EnumEpgFunctionStatus(int i2) {
        this.value = i2;
        setHashtableValue(i2);
    }

    public static int getOrdinalThroughValue(int i2) throws TvOutOfBoundException {
        Integer num = enumhash.get(Integer.valueOf(i2));
        if (num != null) {
            return num.intValue();
        }
        throw new TvOutOfBoundException();
    }

    private static void setHashtableValue(int i2) {
        enumhash.put(new Integer(i2), new Integer(seq));
        seq++;
    }

    public int getValue() {
        return this.value;
    }
}
