package com.iformall.enums;


/**
 * Created by Stormeye on 2018/08/09.
 */
public enum EnumBillTypeStr {

    RENT(1, "租金"),
    RENT_D(2, "租赁押金"),
    PROPERTY(3,"物业费"),
    PROPERTY_D(4, "物业押金"),
    W(5, "水费"),
    D(6, "电费"),
    K(9, "空调费"),
    O(7, "其他"),
    O_D(8, "其他押金"),
    ;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
