package com.mvc.service.aiiden;

import com.mvc.netty.dealconstant.TaskRemoteIdentifier;

public enum DnType {
    DN15(3, "DN15"),
    DN20(5, "DN20"),
    DN25(8, "DN25"),
    DN32(12, "DN32"),
    DN40(20, "DN40"),
    DN50(32, "DN50"),
    DN65(60, "DN65"),
    DN80(79, "DN80"),
    DN100(125, "DN100"),
    DN125(200, "DN125"),
    DN150(312, "DN150"),
    DN200(500, "DN200"),
    DN250(787, "DN250"),
    DN300(1250, "DN300"),
    DN400(2000, "DN400"),
    DN500(3125, "DN500"),
    DN600(5000, "DN600"),
    DN800(7875, "DN800");

    private int value;
    private String type;

    DnType(int value, String type) {
        this.value=value;
        this.type=type;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static DnType getElement(int value) {
        for (DnType msg : DnType.values()) {
            if (msg.value==value) {
                return msg;
            }
        }
        return null;
    }
}
