mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Used to filter requests for lists of milestones
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class MilestoneRequest : RequestParameters
|
|
{
|
|
public MilestoneRequest()
|
|
{
|
|
State = ItemState.Open;
|
|
SortProperty = MilestoneSort.DueDate;
|
|
SortDirection = SortDirection.Ascending;
|
|
}
|
|
|
|
public ItemState State { get; set; }
|
|
|
|
[Parameter(Key = "sort")]
|
|
public MilestoneSort SortProperty { get; set; }
|
|
|
|
[Parameter(Key = "direction")]
|
|
public SortDirection SortDirection { get; set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "State {0} ", State);
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum MilestoneSort
|
|
{
|
|
[Parameter(Value = "due_date")]
|
|
DueDate,
|
|
Completeness
|
|
}
|
|
}
|