package com.avg.zaap.crashlibrary.offline;

/**
 * This enumeration stores all the possible connection values.
 * <p/>
 * Created by marek.osvald on 26.7.2016.
 */
public enum Connection {

    NONE(Level.NONE), OTHER(Level.OTHER), MOBILE(Level.MOBILE), WIFI(Level.WIFI);

    private int mLevel;

    /**
     * Parametric constructor. Sets level.
     *
     * @param level connection level
     */
    Connection(int level) {
        mLevel = level;
    }

    /**
     * Returns a connection level.
     *
     * @return a connection level
     */
    public int getLevel() {
        return mLevel;
    }

    private static final class Level {

        public static final int NONE = 0;
        public static final int OTHER = 1;
        public static final int MOBILE = 2;
        public static final int WIFI = 3;

    }

}
