平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 line
1.1 KiB

  1. namespace SafeCampus.Plugin.Mqtt
  2. {
  3. /// <summary>
  4. /// mqtt登录参数输出
  5. /// </summary>
  6. public class MqttParameterOutput
  7. {
  8. /// <summary>
  9. /// 地址
  10. /// </summary>
  11. public string Url { get; set; }
  12. /// <summary>
  13. /// 用户名
  14. /// </summary>
  15. public string UserName { get; set; }
  16. /// <summary>
  17. /// 密码
  18. /// </summary>
  19. public string Password { get; set; }
  20. /// <summary>
  21. /// 客户端ID
  22. /// </summary>
  23. public string ClientId { get; set; }
  24. /// <summary>
  25. /// 主题列表
  26. /// </summary>
  27. public List<string> Topics { get; set; }
  28. }
  29. /// <summary>
  30. /// mqtt认证输出
  31. /// </summary>
  32. public class MqttAuthOutput
  33. {
  34. /// <summary>
  35. /// 结果 "allow" | "deny" | "ignore", // Default `"ignore"`
  36. /// </summary>
  37. public string Result { get; set; } = "deny";
  38. /// <summary>
  39. /// 是否超级管理员
  40. /// </summary>
  41. public bool Is_superuser { get; set; } = false;
  42. }
  43. }