using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Describes a new pre-receive environment.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewPreReceiveEnvironment
{
///
/// Initializes a new instance of the class.
///
/// The name of the environment as displayed in the UI.
/// URL to the tarball that will be downloaded and extracted.
public NewPreReceiveEnvironment(string name, string imageUrl)
{
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNullOrEmptyString(imageUrl, nameof(imageUrl));
Name = name;
ImageUrl = imageUrl;
}
///
/// The name of the environment as displayed in the UI.
///
public string Name { get; set; }
///
/// URL to the tarball that will be downloaded and extracted.
///
public string ImageUrl { get; set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} ImageUrl: {1}", Name, ImageUrl); }
}
}
}