using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class TreeResponse { public TreeResponse() { } public TreeResponse(string sha, string url, IReadOnlyList tree, bool truncated) { Sha = sha; Url = url; Tree = tree; Truncated = truncated; } /// /// The SHA for this Tree response. /// public string Sha { get; protected set; } /// /// The URL for this Tree response. /// public string Url { get; protected set; } /// /// The list of Tree Items for this Tree response. /// public IReadOnlyList Tree { get; protected set; } /// /// Whether the response was truncated due to GitHub API limits. /// public bool Truncated { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Sha: {0}", Sha); } } } }