mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
329ef960ed
Add Projects API client (preview)
31 lines
767 B
C#
31 lines
767 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Used to filter requests for lists of projects
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ProjectRequest : RequestParameters
|
|
{
|
|
public ProjectRequest(ItemStateFilter state)
|
|
{
|
|
State = state;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Which projects to get. The default is <see cref="ItemStateFilter.Open"/>.
|
|
/// </summary>
|
|
public ItemStateFilter State { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "State {0} ", State);
|
|
}
|
|
}
|
|
}
|
|
}
|