using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace skyscraper5.Rds.Messages
{
    [RdsMessage(0x03,RdsMessageHeaderType.DsnPsn)]
    class TA_TP : RdsMessage, IDsn, IPsn
    {
        public TA_TP(byte[] buffer)
        {
            this.TP = (buffer[0] & 0x02) != 0;
            this.TA = (buffer[0] & 0x01) != 0;
        }

        public bool TA { get; private set; }

        public bool TP { get; private set; }

        public byte DataSetNumber { get; set; }
        public byte ProgrammeServiceNumber { get; set; }
    }
}
