iotgateway/IoTGateway.Model/SystemConfig.cs

44 lines
1.4 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
{
2023-12-23 09:34:58 +00:00
[Display(Name = "Gateway Name")]
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; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Mqtt Server ")]
2021-12-12 06:55:48 +00:00
public string MqttIp { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Mqtt Port")]
2021-12-12 06:55:48 +00:00
public int MqttPort { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Mqtt UserName")]
2021-12-12 06:55:48 +00:00
public string MqttUName { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Mqtt Password")]
2021-12-12 06:55:48 +00:00
public string MqttUPwd { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Output platform")]
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,
2023-12-23 09:34:58 +00:00
[Display(Name = "Alibaba Internet of Things Platform")]
2022-01-24 15:10:56 +00:00
AliCloudIoT=2,
2023-12-23 09:34:58 +00:00
[Display(Name = "Tencent Intelligent Cloud")]
2022-01-24 15:10:56 +00:00
TencentIoTHub =3,
2023-12-23 09:34:58 +00:00
[Display(Name = "Baidu Internet of Things Communication")]
2022-01-24 15:10:56 +00:00
BaiduIoTCore =4,
[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,
2023-12-23 09:34:58 +00:00
[Display(Name = "Huawei Cloud")]
HuaWei = 7,
[Display(Name = "IoTGateway")]
IoTGateway = 8
2021-12-12 06:55:48 +00:00
}
}