iotgateway/IoTGateway.Model/SystemConfig.cs

44 lines
1.3 KiB
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
public class SystemConfig : BasePoco
{
2024-01-08 14:18:16 +00:00
[Display(Name = "GatewayName")]
2021-12-12 06:55:48 +00:00
public string GatewayName { get; set; }
2022-08-10 08:55:44 +00:00
[Display(Name = "ClientId")]
public string ClientId { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "MqttServer ")]
2021-12-12 06:55:48 +00:00
public string MqttIp { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "MqttPort")]
2021-12-12 06:55:48 +00:00
public int MqttPort { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "UserName")]
2021-12-12 06:55:48 +00:00
public string MqttUName { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "Password")]
2021-12-12 06:55:48 +00:00
public string MqttUPwd { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "OutputPlatform")]
2022-01-24 15:10:56 +00:00
public IoTPlatformType IoTPlatformType { get; set; }
}
public enum IoTPlatformType
{
[Display(Name = "ThingsBoard")]
ThingsBoard =0,
[Display(Name = "IoTSharp")]
IoTSharp =1,
2024-01-08 14:18:16 +00:00
[Display(Name = "AliIoT")]
2022-01-24 15:10:56 +00:00
AliCloudIoT=2,
2024-01-08 14:18:16 +00:00
[Display(Name = "TencentIoTHub")]
2022-01-24 15:10:56 +00:00
TencentIoTHub =3,
2024-01-08 14:18:16 +00:00
[Display(Name = "BaiduIoTCore")]
2022-01-24 15:10:56 +00:00
BaiduIoTCore =4,
2024-01-08 14:18:16 +00:00
[Display(Name = "OneNet")]
2022-04-20 06:05:44 +00:00
OneNET = 5,
[Display(Name = "ThingsCloud")]
2022-06-06 07:15:19 +00:00
ThingsCloud = 6,
2024-01-08 14:18:16 +00:00
[Display(Name = "HuaWeiCloud")]
HuaWei = 7,
[Display(Name = "IoTGateway")]
IoTGateway = 8
2021-12-12 06:55:48 +00:00
}
}