iotgateway/IoTGateway.Model/Common.cs

29 lines
615 B
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
using System.ComponentModel.DataAnnotations;
namespace IoTGateway.Model
{
public enum DeviceTypeEnum
{
2023-12-23 09:34:58 +00:00
[Display(Name = "Collection Group")]
2021-12-12 06:55:48 +00:00
Group = 0,
2023-12-23 09:34:58 +00:00
[Display(Name = "Collection Device")]
2021-12-12 06:55:48 +00:00
Device = 1
}
public enum AccessEnum
{
2023-12-23 09:34:58 +00:00
[Display(Name = "Read Only")]
2021-12-12 06:55:48 +00:00
ReadOnly = 0,
2023-12-23 09:34:58 +00:00
[Display(Name = "Read and write")]
2021-12-12 06:55:48 +00:00
ReadAndWrite = 1
}
2022-03-24 13:38:11 +00:00
public enum DataSide
{
2023-12-23 09:34:58 +00:00
[Display(Name = "Shared Properties")]
2022-03-24 13:38:11 +00:00
AnySide=0,
//ServerSide=1,
2023-12-23 09:34:58 +00:00
[Display(Name = "Client Properties")]
2022-04-13 14:43:13 +00:00
ClientSide =2,
2022-03-24 13:38:11 +00:00
}
2021-12-12 06:55:48 +00:00
}