mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-25 15:42:55 +00:00
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class TreeResponse
|
|
{
|
|
public TreeResponse() { }
|
|
|
|
public TreeResponse(string sha, Uri url, IReadOnlyList<TreeItem> tree, bool truncated)
|
|
{
|
|
Sha = sha;
|
|
Url = url;
|
|
Tree = tree;
|
|
Truncated = truncated;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The SHA for this Tree response.
|
|
/// </summary>
|
|
public string Sha { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The URL for this Tree response.
|
|
/// </summary>
|
|
public Uri Url { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The list of Tree Items for this Tree response.
|
|
/// </summary>
|
|
public IReadOnlyList<TreeItem> Tree { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Whether the response was truncated due to GitHub API limits.
|
|
/// </summary>
|
|
public bool Truncated { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Sha: {0}", Sha);
|
|
}
|
|
}
|
|
}
|
|
} |