using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class CombinedCommitStatus { public CombinedCommitStatus() { } public CombinedCommitStatus(CommitState state, string sha, int totalCount, IReadOnlyList statuses, Repository repository) { State = state; Sha = sha; TotalCount = totalCount; Statuses = statuses; Repository = repository; } /// /// The combined state of the commits. /// public CommitState State { get; protected set; } /// /// The SHA of the reference. /// public string Sha { get; protected set; } /// /// The total number of statuses. /// public int TotalCount { get; protected set; } /// /// The statuses. /// public IReadOnlyList Statuses { get; protected set; } /// /// The repository of the reference. /// public Repository Repository { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "SHA: {0}, State: {1}, TotalCount: {2}", Sha, State, TotalCount); } } } }