using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.TFS
{
public class Project
{
public Guid ID { get; set; }
public String Name { get; set; }
public String Description { get; set; }
public String URL { get; set; }
public List Areas { get; set; }
public List Iterations { get; set; }
public List UserStories { get; set; }
public List Members { get; set; }
public List Tags { get; set; }
public Area GetAreaByName(String name)
{
return GetAreaByName(Areas, name);
}
private Area GetAreaByName(List areas, String name)
{
foreach (var area in areas)
{
if (area.Name == name) return area;
var a = GetAreaByName(area.SubAreas, name);
if (a != null)
{
return a;
}
}
return null;
}
public Project()
{
Areas = new List();
Iterations = new List();
UserStories = new List();
Members = new List();
Tags = new List();
}
}
}