package com.iformall.enums;


/**
 * @author gongbiao
 */
public enum EnumActivityEnrollStatus {

    NOT_START(0, "报名未开始"),
    NORMAL(1, "正常报名"),
    END(2, "报名结束"),
    JOINED(3, "已报名"),;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
