Files
octokit.net/Octokit/Models/Response/RepositoryContentChangeSet.cs
Micah c3a67ae777 Creates constructors for all Models.Response.
Resolves https://github.com/octokit/octokit.net/issues/677.

Removes obscolete properties (gravatar).
Makes Models.Response properties all be protected (most were already).
2015-01-24 16:07:03 -08:00

36 lines
1.0 KiB
C#

using System.Diagnostics;
namespace Octokit
{
/// <summary>
/// The response from the Repository Contents API. The API assumes a dynamic client type so we need
/// to model that.
/// </summary>
/// <remarks>https://developer.github.com/v3/repos/contents/</remarks>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryContentChangeSet
{
public RepositoryContentChangeSet() { }
public RepositoryContentChangeSet(RepositoryContentInfo content, Commit commit)
{
Content = content;
Commit = commit;
}
/// <summary>
/// The content of the response.
/// </summary>
public RepositoryContentInfo Content { get; protected set; }
/// <summary>
/// The commit information for the content change.
/// </summary>
public Commit Commit { get; protected set; }
internal string DebuggerDisplay
{
get { return Content.DebuggerDisplay; }
}
}
}