using eSuite.WorkBench.WpfHelper;
using System.Collections.Generic;

namespace eSuite.WorkBench.Models
{
    public class Branch : ViewModelBase
    {
        private IEnumerable<Branch> _branchVersions;

        public string BranchName { get; set; }
        public Branch Parent { get; set; }

        public Branch(string branchName, IEnumerable<Branch> branchVersions, Branch parent)
        {
            BranchName = branchName;
            BranchVersions = branchVersions;
            Parent = parent;
        }

        public IEnumerable<Branch> BranchVersions
        {
            get
            {
                return _branchVersions;
            }
            set
            {
                _branchVersions = value;
                OnPropertyChanged("BranchVersions");
            }
        }
    }
}
