using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using skyscraper5.Skyscraper.Plugins;

namespace skyscraper5.Docsis.MacManagement
{
	[SkyscraperPlugin]
	[MacManagementMessageType(4,48)]
    internal class StatusReportAcknowledge : MacManagementMessage
    {
        public StatusReportAcknowledge(PhysicalAddress source, PhysicalAddress destination, byte[] buffer) : base(source, destination, buffer)
        {
            (buffer[0], buffer[1]) = (buffer[1], buffer[0]);
            TransactionId = BitConverter.ToUInt16(buffer, 0);
            EventType = buffer[2];
            Valid = true;
        }
        

        public byte EventType { get; set; }

        public ushort TransactionId { get; set; }
    }
}
