using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Commit : GitReference { public Commit() { } public Commit(string url, string label, string @ref, string sha, User user, Repository repository, string message, Committer author, Committer committer, GitReference tree, IEnumerable parents, int commentCount) : base(url, label, @ref, sha, user, repository) { Ensure.ArgumentNotNull(parents, "parents"); Message = message; Author = author; Committer = committer; Tree = tree; Parents = new ReadOnlyCollection(parents.ToList()); CommentCount = commentCount; } public string Message { get; protected set; } public Committer Author { get; protected set; } public Committer Committer { get; protected set; } public GitReference Tree { get; protected set; } public IReadOnlyList Parents { get; protected set; } public int CommentCount { get; protected set; } public Verification Verification { get; protected set; } } }