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

com.dingtalk.baymax.framework.sdk.mercury.constant.ApiVersion Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.dingtalk.baymax.framework.sdk.mercury.constant;

/**
 * @Author xiaoyan
 * @Date 2023-06-21 19:36:32
 */
public enum ApiVersion {
    DEFAULT("default"),
    MERCURY("mercury"),
    ;

    private final String version;

    ApiVersion(String version) {
        this.version = version;
    }

    public String getVersion() {
        return version;
    }

    public static ApiVersion of(String version) {
        for (ApiVersion value : values()) {
            if (value.version.equals(version)) {
                return value;
            }
        }
        return DEFAULT;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy