using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Server.Data { /// /// 远程节点信息 /// public class RemoteNodeInfo { /// /// 模块类型ID /// public int moduleId { get; set; } /// /// 模块节点ID /// public int nodenum { get; set; } /// /// 模块本地磁盘路径 /// public string path { get; set; } public override string ToString() { return $"模块ID:{moduleId}, 节点ID:{nodenum}, 远程文件路径:{path}"; ; } /// /// Clone /// /// RemoteNodeInfo public RemoteNodeInfo Clone() { return new RemoteNodeInfo { moduleId = moduleId, nodenum = nodenum, path = path }; } } /// /// 服务器指令 /// public class ServerCmd { /// /// 命令 /// public string cmd; /// /// 参数 /// public RemoteNodeInfo parameter; } }