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

namespace skyscraper5.Rds.Messages
{
    [RdsMessage(0x07,RdsMessageHeaderType.DsnPsn)]
    public class PTY : RdsMessage, IDsn, IPsn
    {
        public PTY(byte[] buffer)
        {
            Pty = (ProgrammeTypeCodes)buffer[0];
        }

        public ProgrammeTypeCodes Pty { get; private set; }

        public enum ProgrammeTypeCodes : byte
        {
            News = 1,
            CurrentAffairs = 2,
            Information = 3,
            Sport = 4,
            Education = 5,
            Drama = 6,
            Culture = 7,
            Science = 8,
            Varied = 9,
            PopMusic = 10,
            RockMusic = 11,
            EasyListeningMusic = 12,
            LightClassical = 13,
            SeriousClassical = 14,
            OtherMusic = 15,
            Weather = 16,
            Finance = 17,
            ChildrensProgrammes = 18,
            SocialAffairs = 19,
            Religion = 20,
            PhoneIn = 21,
            Travel = 22,
            Leisure = 23,
            JazzMusic = 24,
            CountryMusic = 25,
            NationalMusic = 26,
            OldiesMusic = 27,
            FolkMusic = 28,
            Documentary = 29,
            AlarmTest = 30,
            Alarm = 31
        }

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