Translate IoTGateway.Model

This commit is contained in:
UserX 2023-12-23 11:34:58 +02:00
parent 28c58d9700
commit c09dc77fdd
9 changed files with 72 additions and 72 deletions

View File

@ -4,26 +4,26 @@ namespace IoTGateway.Model
{
public enum DeviceTypeEnum
{
[Display(Name = "采集组")]
[Display(Name = "Collection Group")]
Group = 0,
[Display(Name = "采集点")]
[Display(Name = "Collection Device")]
Device = 1
}
public enum AccessEnum
{
[Display(Name = "只读")]
[Display(Name = "Read Only")]
ReadOnly = 0,
[Display(Name = "读写")]
[Display(Name = "Read and write")]
ReadAndWrite = 1
}
public enum DataSide
{
[Display(Name ="共享属性")]
[Display(Name = "Shared Properties")]
AnySide=0,
//ServerSide=1,
[Display(Name = "客户端属性")]
[Display(Name = "Client Properties")]
ClientSide =2,
}
}

View File

@ -7,41 +7,41 @@ namespace IoTGateway.Model
{
public class Device : TreePoco<Device>, IBasePoco
{
[Display(Name = "名称")]
[Display(Name = "Name")]
public string DeviceName { get; set; }
[Display(Name = "排序")]
[Display(Name = "sort")]
public uint Index { get; set; }
[Display(Name = "描述")]
[Display(Name = "describe")]
public string Description { get; set; }
public Driver Driver { get; set; }
[Display(Name = "驱动")]
[Display(Name = "drive")]
public Guid? DriverId { get; set; }
[Display(Name = "启动")]
[Display(Name = "start up")]
public bool AutoStart { get; set; }
[Display(Name = "变化上传")]
[Display(Name = "Change upload")]
public bool CgUpload { get; set; }
[Display(Name = "归档周期ms")]
[Display(Name = "Archiving cycle ms")]
public uint EnforcePeriod { get; set; }
[Display(Name = "指令间隔ms")]
[Display(Name = "Command interval ms")]
public uint CmdPeriod { get; set; }
[Display(Name = "类型")]
[Display(Name = "Type")]
public DeviceTypeEnum DeviceTypeEnum { get; set; }
[Display(Name = "创建时间")]
[Display(Name = "Creation time")]
public DateTime? CreateTime { get; set; }
[Display(Name = "创建人")]
[Display(Name = "Founder")]
public string CreateBy { get; set; }
[Display(Name = "更新时间")]
[Display(Name = "Update time")]
public DateTime? UpdateTime { get; set; }
[Display(Name = "更新人")]
[Display(Name = "updater")]
public string UpdateBy { get; set; }
public List<DeviceConfig> DeviceConfigs { get; set; }

View File

@ -6,18 +6,18 @@ namespace IoTGateway.Model
{
public class DeviceConfig : BasePoco
{
[Display(Name = "名称")]
[Display(Name = "Name")]
public string DeviceConfigName { get; set; }
[Display(Name = "属性侧")]
[Display(Name = "attribute side")]
public DataSide DataSide { get; set; }
[Display(Name = "描述")]
[Display(Name = "Description")]
public string Description { get; set; }
[Display(Name = "")]
[Display(Name = "Value")]
public string Value { get; set; }
[Display(Name = "备注")]
[Display(Name = "Remark")]
public string EnumInfo { get; set; }
public Device Device { get; set; }
[Display(Name = "设备")]
[Display(Name = "ID")]
public Guid? DeviceId { get; set; }
}
}

View File

@ -10,61 +10,61 @@ namespace IoTGateway.Model
{
public class DeviceVariable : TopBasePoco, IVariable
{
[Display(Name = "变量名")]
[Display(Name = "Tag Name")]
public string Name { get; set; }
[Display(Name = "描述")]
[Display(Name = "Description")]
public string Description { get; set; }
[Display(Name = "方法")]
[Display(Name = "Method")]
public string Method { get; set; }
[Display(Name = "地址")]
[Display(Name = "Address")]
public string DeviceAddress { get; set; }
[Display(Name = "类型")]
[Display(Name = "DataType")]
public DataTypeEnum DataType { get; set; }
[Display(Name = "大小端")]
[Display(Name = "EndianType")]
public EndianEnum EndianType { get; set; }
[Display(Name = "表达式")]
[Display(Name = "Expressions")]
public string Expressions { get; set; }
[Display(Name = "上传")]
[Display(Name = "Upload")]
public bool IsUpload { get; set; }
[Display(Name = "权限")]
[Display(Name = "Permissions")]
public ProtectTypeEnum ProtectType { get; set; }
[Display(Name = "排序")]
[Display(Name = "sort")]
public uint Index { get; set; }
[Newtonsoft.Json.JsonIgnore]
public Device Device { get; set; }
[Display(Name = "设备")]
[Display(Name = "ID")]
public Guid? DeviceId { get; set; }
[Display(Name = "别名")]
[Display(Name = "Alias")]
public string Alias { get; set; }
[NotMapped]
[Display(Name = "原值")]
[Display(Name = "Value")]
public object Value { get; set; }
[NotMapped]
[Display(Name = "")]
[Display(Name = "CookedValue")]
public object CookedValue { get; set; }
[NotMapped]
public string Message { get; set; }
[NotMapped]
[Display(Name = "更新时间")]
[Display(Name = "Update time")]
public DateTime Timestamp { get; set; }
[NotMapped]
[Display(Name = "状态")]
[Display(Name = "State")]
[JsonConverter(typeof(StringEnumConverter))]
public VaribaleStatusTypeEnum StatusType { get; set; } = VaribaleStatusTypeEnum.UnKnow;
[NotMapped][Display(Name = "最近几次的值")] public object[] Values { get; set; } = new object[3];
[NotMapped][Display(Name = "The Most Recent Values")] public object[] Values { get; set; } = new object[3];
public void EnqueueVariable(object value)
{
Values[2] = Values[1];

View File

@ -6,13 +6,13 @@ namespace IoTGateway.Model
{
public class Driver : BasePoco
{
[Display(Name = "驱动名")]
[Display(Name = "Name")]
public string DriverName { get; set; }
[Display(Name = "文件名")]
[Display(Name = "FileName")]
public string FileName { get; set; }
[Display(Name = "程序集名")]
[Display(Name = "AssembleName")]
public string AssembleName { get; set; }
[Display(Name = "剩余授权数量")]
[Display(Name = "Number of licenses remaining")]
public int AuthorizesNum { get; set; }
}
}

View File

@ -5,22 +5,22 @@ namespace IoTGateway.Model
{
public interface IVariable
{
[Display(Name = "变量名")]
[Display(Name = "Variable Name")]
public string Name { get; set; }
[Display(Name = "描述")]
[Display(Name = "Description")]
public string Description { get; set; }
[Display(Name = "地址")]
[Display(Name = "Address")]
public string DeviceAddress { get; set; }
[Display(Name = "数据类型")]
[Display(Name = "DataType")]
public PluginInterface.DataTypeEnum DataType { get; set; }
[Display(Name = "表达式")]
[Display(Name = "Expressions")]
public string Expressions { get; set; }
[Display(Name = "权限")]
[Display(Name = "Permissions")]
public ProtectTypeEnum ProtectType { get; set; }
}
}

View File

@ -10,38 +10,38 @@ namespace IoTGateway.Model
{
public class RpcLog:TopBasePoco
{
[Display(Name = "发起方")]
[Display(Name = "Initiator")]
public RpcSide RpcSide { get; set; }
[Display(Name = "开始时间")]
[Display(Name = "Starting Time")]
public DateTime StartTime { get; set; }
public Device Device { get; set; }
[Display(Name = "设备名")]
[Display(Name = "ID")]
public Guid? DeviceId { get; set; }
[Display(Name = "方法名")]
[Display(Name = "Method")]
public string Method { get; set; }
[Display(Name = "请求参数")]
[Display(Name = "Request Parameters")]
public string Params { get; set; }
[Display(Name = "结束时间")]
[Display(Name = "End Time")]
public DateTime EndTime { get; set; }
[Display(Name = "结果")]
[Display(Name = "Result")]
public bool IsSuccess { get; set; }
[Display(Name = "描述")]
[Display(Name = "Description")]
public string Description { get; set; }
}
public enum RpcSide
{
[Display(Name ="服务端请求")]
[Display(Name = "Server Request")]
ServerSide=1,
[Display(Name = "客户端请求")]
[Display(Name = "Client Request")]
ClientSide =1
}
}

View File

@ -5,19 +5,19 @@ namespace IoTGateway.Model
{
public class SystemConfig : BasePoco
{
[Display(Name = "网关名称")]
[Display(Name = "Gateway Name")]
public string GatewayName { get; set; }
[Display(Name = "ClientId")]
public string ClientId { get; set; }
[Display(Name = "Mqtt服务器")]
[Display(Name = "Mqtt Server ")]
public string MqttIp { get; set; }
[Display(Name = "Mqtt端口")]
[Display(Name = "Mqtt Port")]
public int MqttPort { get; set; }
[Display(Name = "Mqtt用户名")]
[Display(Name = "Mqtt UserName")]
public string MqttUName { get; set; }
[Display(Name = "Mqtt密码")]
[Display(Name = "Mqtt Password")]
public string MqttUPwd { get; set; }
[Display(Name = "输出平台")]
[Display(Name = "Output platform")]
public IoTPlatformType IoTPlatformType { get; set; }
}
public enum IoTPlatformType
@ -26,17 +26,17 @@ namespace IoTGateway.Model
ThingsBoard =0,
[Display(Name = "IoTSharp")]
IoTSharp =1,
[Display(Name = "阿里物联网平台")]
[Display(Name = "Alibaba Internet of Things Platform")]
AliCloudIoT=2,
[Display(Name = "腾讯智能云")]
[Display(Name = "Tencent Intelligent Cloud")]
TencentIoTHub =3,
[Display(Name = "百度物联网通信")]
[Display(Name = "Baidu Internet of Things Communication")]
BaiduIoTCore =4,
[Display(Name = "中移OneNet")]
OneNET = 5,
[Display(Name = "ThingsCloud")]
ThingsCloud = 6,
[Display(Name = "华为云")]
[Display(Name = "Huawei Cloud")]
HuaWei = 7,
[Display(Name = "IoTGateway")]
IoTGateway = 8

Binary file not shown.