All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.lunasaw.gb28181.common.entity.enums.TransModeEnum Maven / Gradle / Ivy

The newest version!
package io.github.lunasaw.gb28181.common.entity.enums;

/**
 * @author luna
 * @date 2023/10/13
 */
public enum TransModeEnum {

    /**
     * 传输模式
     */
    UDP("UDP", "UDP"),
    TCP("TCP", "TCP"),

    ;

    private final String type;
    private final String desc;

    TransModeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static boolean isValid(String sort) {
        return UDP.getType().equals(sort) || TCP.getType().equals(sort);
    }

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy