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.Dvb.DataBroadcasting.DataCarouselDescriptors
{
	[SkyscraperPlugin]
	[TsDescriptor(0x71,"DataCarousel")]
    class CachingPriorityDescriptor : TsDescriptor
    {
        public CachingPriorityDescriptor(byte[] buffer)
        {
            PriorityValue = buffer[0];
            TransparencyLevel = (TransparencyLevelValue)buffer[1];
        }

        public TransparencyLevelValue TransparencyLevel { get; private set; }

        public byte PriorityValue { get; private set; }

        public enum TransparencyLevelValue : byte
        {
            TransparentCaching = 1,
            SemiTransparentCaching = 2,
            StaticCaching = 3
        }
    }
}
