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

namespace skyscraper5.Mhp.Descriptors
{
    [TsDescriptor(0x69,"AIT")]
    [SkyscraperPlugin]
	class OcapApplicationStorageDescriptor : TsDescriptor
    {
        public OcapApplicationStorageDescriptor(byte[] buffer)
        {
            (buffer[1], buffer[0]) = (buffer[0], buffer[1]);
            StoragePriority = BitConverter.ToUInt16(buffer, 0);
            LaunchOrder = buffer[2];
            Valid = true;
        }

        public byte LaunchOrder { get; private set; }

        public ushort StoragePriority { get; private set; }
    }
}
