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

namespace Observer_GoF
{
    class ConcreteSubject : Subject
    {
        
        private string _subjectState="";

        public string Name { get; set; }

        // Gets or sets subject state
        public string SubjectState
        {
            get { return _subjectState; }
            set
            {
                if (_subjectState!=value )
                {
                    _subjectState = value;
                    Notify();
                }
                
            }
        }
    }

}
