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