/// The first successful build after the failures.
/// </summary>
[DataMember]
publicIssueBuildNextSuccessfulBuild;
/// <summary>
/// Constructs a new history for a particular stream
/// </summary>
publicIssueHistory(IssueBuildPrevSuccessfulBuild)
{
this.PrevSuccessfulBuild=PrevSuccessfulBuild;
}
/// <summary>
/// Adds a failed build to this object
/// </summary>
/// <param name="Build">The failed build</param>
publicvoidAddFailedBuild(IssueBuildBuild)
{
intIndex=FailedBuilds.BinarySearch(Build);
if(Index<0)
{
FailedBuilds.Insert(~Index,Build);
}
}
/// <summary>
/// Determines whether a given build can be added to an issue. This filters cases where an issue does not already have builds for the given stream, or where there is a successful build between the new build and known failures for this issue.
/// </summary>
/// <param name="Build">The build to add</param>
publicboolCanAddFailedBuild(intChange)
{
// Check that this build is not after a succesful build