mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-28 00:52:08 +00:00
329ef960ed
Add Projects API client (preview)
37 lines
948 B
C#
37 lines
948 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class NewProject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NewProject"/> class.
|
|
/// </summary>
|
|
/// <param name="name">The name of the project.</param>
|
|
public NewProject(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required. Gets or sets the name of the project.
|
|
/// </summary>
|
|
public string Name { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Optional. Gets or sets the body of the project.
|
|
/// </summary>
|
|
public string Body { get; set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Name: {0}, Body: {1}", Name, Body);
|
|
}
|
|
}
|
|
}
|
|
}
|