namespace Edge.Core.Domain.FccNozzleInfo.Input
{
    public class UploadNozzleInfoInput
    {
        /// <summary>
        /// 油枪id
        /// </summary>
        public long? Id { get; set; }

        /// <summary>
        /// 油机ip
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 加油点
        /// </summary>
        public int FuelPoint { get; set; }

        /// <summary>
        /// 内部枪号
        /// </summary>
        public int InternalNum { get; set; }

        /// <summary>
        /// 外部枪号
        /// </summary>
        public int NozzleNum { get; set; }

        /// <summary>
        /// 关联油罐id
        /// </summary>
        public long TankId { get; set; }

        /// <summary>
        /// 关联油罐号
        /// </summary>
        public int TankNum { get; set; }

        public FccNozzleInfo ToComponent()
        {
            return new FccNozzleInfo()
            {
                MachineIp = Ip,
                FuelPoint = FuelPoint,
                InternalNum = InternalNum,
                ExternalNum = NozzleNum,
                TankId = TankId,
                TankNum = TankNum
            };
        }
    }
}
