using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
///
/// Represents the requested changes to an edit repository hook.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class EditOrganizationHook
{
///
/// Initializes a new instance of the class.
///
public EditOrganizationHook() : this(null)
{ }
///
/// Initializes a new instance of the class.
///
/// The configuration.
public EditOrganizationHook(IDictionary config)
{
Config = config;
}
public IDictionary Config { get; private set; }
///
/// Gets or sets the events.
///
///
/// The events.
///
public IEnumerable Events { get; set; }
///
/// Gets or sets the active.
///
///
/// The active.
///
public bool? Active { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture,
"Organizaton Hook: Events: {0}", Events == null ? "no" : string.Join(", ", Events));
}
}
}
}