package com.bcxin.Infrastructures.enums;

public enum GradeLevel {

    One{
        @Override
        public String getTypeName(){return "高级保安师";}

        @Override
        public String getTypeValue(){return "1";}
    },
    Two{
        @Override
        public String getTypeName(){return "保安师";}
        @Override
        public String getTypeValue(){return "2";}
    },
    Three{
        @Override
        public String getTypeName(){return "高级保安员";}
        @Override
        public String getTypeValue(){return "3";}
    },
    Four{
        @Override
        public String getTypeName(){return "中级保安员";}
        @Override
        public String getTypeValue(){return "4";}
    },
    Five{
        @Override
        public String getTypeName(){return "初级保安员";}
        @Override
        public String getTypeValue(){return "5";}
    };

    public abstract String getTypeName();
    public abstract String getTypeValue();


    public static GradeLevel coventTypeValue(String typeValue){
        switch (typeValue){
            case "1":
                return GradeLevel.One;
            case "2":
                return GradeLevel.Two;
            case "3":
                return GradeLevel.Three;
            case "4":
                return GradeLevel.Four;
            case "5":
                return GradeLevel.Five;
        }

        return GradeLevel.One;
    }
}
