package com.dji.sdk.config.version;

/**
 * @author sean
 * @version 1.7
 * @date 2023/5/22
 */
public enum CloudSDKVersionEnum {

    V0_0_1("0.0.1"),

    V1_0_0("1.0.0"),

    V1_0_1("1.0.1"),

    V1_0_2("1.0.2"),

    V1_0_3("1.0.3"),

    V1_3_0("1.3.0"),

    DEFAULT("1.0.3"),

    V99("99");

    private final String version;

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

    public String getVersion() {
        return version;
    }

    public boolean isSupported(CloudSDKVersionEnum version) {
        return this.version.compareTo(version.getVersion()) >= 0;
    }

    public boolean isDeprecated(CloudSDKVersionEnum version) {
        return this.version.compareTo(version.getVersion()) >= 0;
    }
}
