using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThoughtWorks.CruiseControl.Remote;

namespace CCNetLogReader
{
    public class ServerBuild
    {
        public string ProjectName { get; private set; }
        public IntegrationStatus BuildStatus { get; private set; }
        public string LastSuccessfulBuildLabel { get; private set; }
        public DateTime LastBuildDate { get; private set; }
        public DateTime? PublishedDate { get; private set; }
        public ServerBuild(string projectName, IntegrationStatus buildStatus, string lastSuccessfulBuildLabel, DateTime lastBuildDate, DateTime? publishedDate = null)
        {
            ProjectName = projectName;
            BuildStatus = buildStatus;
            LastSuccessfulBuildLabel = lastSuccessfulBuildLabel;
            LastBuildDate = lastBuildDate;
            PublishedDate = publishedDate;
        }
    }
}
