package com.dji.sample.configuration;

import com.dji.sdk.cloudapi.storage.OssTypeEnum;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author hqjiang
 * @version 0.1
 * @date 2024/7/24
 */
@ConfigurationProperties(prefix = "custom-config")
@Component
public class CustomConfiguration {

    /**
     * 航点采集频次
     */
    public static int frequency;

    /**
     * 加密密钥
     * @param frequency
     */
    public static String key;


    /**
     * 加密密钥
     * @param signKey
     */
    public static String signKey;

    /**
     * 获取token地址
     * @param smspTokenUrl
     */
    public static String smspTokenUrl;

    /**
     * 获取URL地址
     * @param smspRtmpUrl
     */
    public static String smspRtmpUrl;

    /**
     * 获取token地址
     * @param smspTokenUrl
     */
    public static String smspTokenUrl2;

    /**
     * 获取URL地址
     * @param smspRtmpUrl
     */
    public static String smspRtmpUrl2;


    /**
     * 获取clientId
     * @param smspRtmpUrl
     */
    public static String clientId;

    /**
     * 上级系统clientId
     * @param parentSysClientId
     */
    public static String parentSysClientId;

    public void setFrequency(int frequency) {

        CustomConfiguration.frequency = frequency;
    }

    public void setKey(String key) {
        CustomConfiguration.key = key;
    }

    public void setSignKey(String signKey) {
        CustomConfiguration.signKey = signKey;
    }

    public void setSmspTokenUrl(String smspTokenUrl) {
        CustomConfiguration.smspTokenUrl = smspTokenUrl;
    }

    public void setSmspRtmpUrl(String smspRtmpUrl) {
        CustomConfiguration.smspRtmpUrl = smspRtmpUrl;
    }

    public void setSmspTokenUrl2(String smspTokenUrl) {
        CustomConfiguration.smspTokenUrl2 = smspTokenUrl;
    }

    public void setSmspRtmpUrl2(String smspRtmpUrl) {
        CustomConfiguration.smspRtmpUrl2 = smspRtmpUrl;
    }

    public void setClientId(String clientId) {
        CustomConfiguration.clientId = clientId;
    }

    public void setParentSysClientId(String clientId) {
        CustomConfiguration.parentSysClientId = clientId;
    }
}



