mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 22:25:12 +00:00
Refactor to a RepositoryHooksClient
This commit is contained in:
25
Octokit/Models/Request/NewRepositoryHook.cs
Normal file
25
Octokit/Models/Request/NewRepositoryHook.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user