package com.iformall.enums;

/**
 * Created by luozukai
 * 预览账单0否1是
 */
public enum EnumIsPreview {

    NO(0, "否"),
    YES(1, "是")
    ;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
