using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Model
{
public partial class DataDockingConfigure
{
///
/// 映射
///
public class Mapper : JsonList
{
///
///
///
public Mapper() { }
///
///
///
public Mapper(long sysId, string signId)
{
this.SysId = sysId;
this.SignId = signId;
}
///
///
///
public Mapper(Mapper rhs)
{
this.SysId = rhs.SysId;
this.SignId = rhs.SignId;
}
///
/// 系统标识
///
public long SysId { get; set; }
///
/// 外部标识
///
public string SignId { get; set; }
}
///
/// 标准配置参数
///
public class StandardConfigureParameters : JsonModel
{
///
///
///
public StandardConfigureParameters() { }
///
///
///
public StandardConfigureParameters(StandardConfigureParameters rhs)
{
this.RegisterCode = rhs.RegisterCode;
}
///
/// 注册码
///
public string RegisterCode { get; set; }
}
///
/// 接口配置参数
///
public class ApiConfigureParameters : JsonModel
{
///
///
///
public ApiConfigureParameters() { }
///
///
///
public ApiConfigureParameters(ApiConfigureParameters rhs)
{
this.Frequency = rhs.Frequency;
this.DependencyFile = rhs.DependencyFile;
}
///
/// 轮询频率 秒
///
public int Frequency { get; set; }
///
/// 依赖文件
///
public string DependencyFile { get; set; }
}
///
/// 中间库配置参数
///
public class MiddleLibConfigureParameters : JsonModel
{
///
///
///
public MiddleLibConfigureParameters() { }
///
///
///
public MiddleLibConfigureParameters(MiddleLibConfigureParameters rhs)
{
this.Frequency = rhs.Frequency;
this.DependencyFile = rhs.DependencyFile;
}
///
/// 轮询频率 秒
///
public int Frequency { get; set; }
///
/// 依赖文件
///
public string DependencyFile { get; set; }
}
///
/// 协议配置参数
///
public class SocketConfigureParameters : JsonModel
{
///
///
///
public SocketConfigureParameters() { }
///
///
///
public SocketConfigureParameters(SocketConfigureParameters rhs)
{
this.ServerPort = rhs.ServerPort;
this.RegisterCode = rhs.RegisterCode;
this.Heartbeat = rhs.Heartbeat;
this.DependencyFile = rhs.DependencyFile;
this.IsCustom = rhs.IsCustom;
}
///
/// 服务端口
///
public int ServerPort { get; set; }
///
/// 注册码
///
public string RegisterCode { get; set; }
///
/// 心跳包
///
public string Heartbeat { get; set; }
///
/// 依赖文件
///
public string DependencyFile { get; set; }
///
/// 是否自定义
///
public bool IsCustom { get; set; }
}
}
}