| 123456789101112131415161718192021222324252627282930 | using Houdar.PLC.Driver.Simenss.Protocol.Common;using Houdar.PLC.Driver.Simenss.Protocol.DateTime;using Houdar.PLC.Driver.Simenss.Protocol.Header;using Houdar.PLC.Driver.Simenss.Protocol.Security;namespace Houdar.PLC.Driver.Simenss.ProtocolHandle{    public class SetPasswordHandle:IPacketHandle    {        public SetPasswordRequest Request { get; set; }        public HandleResponse<HeaderPacket> Response { get; set; }        public string Password { get; set; }        public ResultCode ResultCode { get; set; }                public SetPasswordHandle()        {            ResultCode = ResultCode.Unknown;             Request = new SetPasswordRequest();        }        public void Handle(IIsoSender sender)        {            Request.Password = Password;            Response = sender.IsoSend<SetPasswordRequest, HandleResponse<HeaderPacket>>(Request);            if(Response==null) return;            ResultCode = Response.Params.Err;        }    }}
 |