using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.Data {
    /// <summary>
    /// 远程节点信息
    /// </summary>
    public class RemoteNodeInfo {

        /// <summary>
        /// 模块类型ID
        /// </summary>
        public int moduleId {
            get; set;
        }

        /// <summary>
        /// 模块节点ID
        /// </summary>
        public int nodenum {
            get; set;
        }

        /// <summary>
        /// 模块本地磁盘路径
        /// </summary>
        public string path {
            get; set;
        }

        public override string ToString() {
            return $"模块ID:{moduleId}, 节点ID:{nodenum}, 远程文件路径:{path}";
            ;
        }

        /// <summary>
        /// Clone
        /// </summary>
        /// <returns>RemoteNodeInfo</returns>
        public RemoteNodeInfo Clone() {
            return new RemoteNodeInfo { moduleId = moduleId, nodenum = nodenum, path = path };
        }
    }

    /// <summary>
    /// 服务器指令
    /// </summary>
    public class ServerCmd {

        /// <summary>
        /// 命令
        /// </summary>
        public string cmd;

        /// <summary>
        /// 参数
        /// </summary>
        public RemoteNodeInfo parameter;
    }

}
