Files
octokit.net/Octokit/Models/Response/GitReference.cs
T
Kristian Hellang 21ca33817d Fixed failing tests
2015-01-06 00:27:16 +01:00

50 lines
1.3 KiB
C#

using System;
using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GitReference
{
/// <summary>
/// The URL associated with this reference.
/// </summary>
public string Url { get; protected set; }
/// <summary>
/// The reference label.
/// </summary>
public string Label { get; protected set; }
/// <summary>
/// The reference identifier.
/// </summary>
public string Ref { get; protected set; }
/// <summary>
/// The sha value of the reference.
/// </summary>
public string Sha { get; protected set; }
/// <summary>
/// The user associated with this reference.
/// </summary>
public User User { get; protected set; }
/// <summary>
/// The repository associated with this reference.
/// </summary>
[Parameter(Key = "repo")]
public Repository Repository { get; protected set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Sha: {0}", Sha);
}
}
}
}