public BuildInfo( BuildKey buildKey, BuildDefinitionInfo buildDefinitionInfo, GitHubPullRequestKey pullRequestKey, DateTime?startTime, DateTime?finishTime) { Key = buildKey; DefinitionInfo = buildDefinitionInfo; GitHubInfo = new GitHubInfo(pullRequestKey.Organization, pullRequestKey.Repository); PullRequestNumber = pullRequestKey.Number; StartTime = startTime; FinishTime = finishTime; }
public BuildInfo( BuildKey buildKey, BuildDefinitionInfo buildDefinitionInfo, string?gitHubOrganization, string?gitHubRepository, int?pullRequestNumber, DateTime?startTime, DateTime?finishTime) { Key = buildKey; DefinitionInfo = buildDefinitionInfo; if (gitHubOrganization is object && gitHubRepository is object) { GitHubInfo = new GitHubInfo(gitHubOrganization, gitHubRepository); PullRequestNumber = pullRequestNumber; } StartTime = startTime; FinishTime = finishTime; }