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.Descriptors
{
	[SkyscraperPlugin]
	[TsDescriptor(0x7E,"NIT","BAT","SDT","EIT")]
    class FtaContentManagementDescriptor : TsDescriptor
    {
        public FtaContentManagementDescriptor(byte[] buffer)
        {
            DoNotScramble = (buffer[0] & 0x08) != 0;
            ControlRemoteAccessOverInternet = (buffer[0] & 0x06) >> 1;
            DoNotApplyRevocation = (buffer[0] & 0x01) != 0;
        }

        public bool DoNotApplyRevocation { get; private set; }

        public int ControlRemoteAccessOverInternet { get; private set; }

        public bool DoNotScramble { get; private set; }
    }
}
