package com.iformall.enums;


/**
 * @author gongbiao
 */

public enum EnumContractType {

    RENT(1, "租赁合同"),
    PROPERTY(2, "物业合同"),
    ALL(0,"租赁及物业合同")
    ;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
