namespace Ropin.Environmentally.DcsService.AppSetingModel
{
public class CmdModel
{
public MqttOptions Mqtt { get; set; } = new MqttOptions();
public HttpOptions Http { get; set; } = new HttpOptions();
}
public class MqttOptions
{
///
/// mqtt服务器
///
public string Ip { get; set; } = string.Empty;
///
/// 端口
///
public int Port { get; set; } = 0;
///
/// 用户名
///
public string UserName { get; set; } = string.Empty;
///
/// 密码
///
public string Password { get; set; } = string.Empty;
///
/// 订阅主题
///
public string Theme { get; set; }
///
/// json参数配置
///
public string JsonConfig { get; set; }
}
public class HttpOptions
{
public string clientId { get; set; } = string.Empty;
public string clientSecret { get; set; } = string.Empty;
///
/// url
///
public string Api { get; set; } = string.Empty;
}
}