package com.iformall.enums;

/**
 * Created by luozukai
 */
public enum EnumTaskType {


    NORMAL(1, "普通"),
    AND(2, "会签"),
    OR(3,"或签"),
    ;

    public static EnumTaskType getEnum(Integer code) {
        for (EnumTaskType value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    private Integer code;
    private String message;

    EnumTaskType(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
