using PlcSiemens.O;
using PlcSiemens.Protocol.Header;

namespace PlcSiemens.Protocol.Szl
{
    public class SzlResponse : IBuildResponse
    {
        public HeaderPacket Header { get; set; }
        public ParamsResponse Params { get; set; }
        public SzlDataResponse Data { get; set; }

        public SzlResponse()
        {
            Header = new HeaderPacket();
            Params = new ParamsResponse();
            Data = new SzlDataResponse();
        }

        public void Build(ByteBuffer buffer)
        {
            Header.Build(buffer);
            Params.Build(buffer);
            Data.Build(buffer);
        }
    }
}
