Refactor to a RepositoryHooksClient

This commit is contained in:
Andy Cross
2014-01-20 14:36:36 +00:00
parent 8223bade57
commit a13c9fa3cc
12 changed files with 195 additions and 20 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewRepositoryHook
{
public string Name { get; set; }
public dynamic Config { get; set; }
public IEnumerable<string> Events { get; set; }
public bool Active { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture,
"Repository Hook: Name: {0}, Events: {1}", Name,string.Join(", ", Events));
}
}
}
}