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

namespace CD_Samlung {
    class CD {
        private String name;
        private int year;
        private int songCunt;
        private List<Song> songList;


        public List<Song> getSongs() {
            return this.songList;
        }
        public void setSongs(List<Song> SongList) {
            this.songList = SongList;
        }

        public String getName() {
            return this.name;
        }
        public void setName(String Name) {
            this.name = Name;
        }

        public int getSongCount() {
            return this.songCunt;
        }
        public void setSongCount(List<Song> tmpSongList) {

            this.songCunt = tmpSongList.Count() - 4;
        }

        public int getYear() {
            return this.year;
        }
        public void setYear(int Year) {
            this.year = Year;
        }


        CD(String Songname, String Artist, int Songs, List<Song> SongList, int Year) {
            this.name = Songname;
            this.songCunt = Songs;
            this.songList = SongList;
            this.year = Year;
        }

        public CD() { }
        ~CD() { }

    }
}
