using System;
using System.Threading;
using SHJX.Service.Model.Control;
using SHJX.Service.ServerClient;
using SHJX.Service.Control.PortOperate.Interface;
namespace SHJX.Service.Control.PortOperate
{
public class FasLowOperate : PortOperateImp
{
///
/// 硫酸亚铁铵
///
///
public FasLowOperate(OptClient client) : base(client)
{
OpName = "FAS";
}
public override bool LiquidOperation(string pipeName, long quantity)
{
PortArgs switchArg = new()
{
TypeName = OpName,
WriteWay = WriteWay.Normotopia
};
_client.Factory(OpName).Write(switchArg);
Thread.Sleep(1000);
return MotorWrite(quantity); //吸液
}
}
}