using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
///
/// Used to retrieve and filter lists of stars.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class StarredRequest : RequestParameters
{
///
/// Initializes a new instance of the class.
///
public StarredRequest()
{
SortProperty = StarredSort.Created;
SortDirection = SortDirection.Ascending;
}
///
/// Gets or sets the sort property.
///
///
/// The sort property.
///
[Parameter(Key = "sort")]
public StarredSort SortProperty { get; set; }
///
/// Gets or sets the sort direction.
///
///
/// The sort direction.
///
[Parameter(Key = "direction")]
public SortDirection SortDirection { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "SortProperty: {0} SortDirection: {1}", SortProperty, SortDirection);
}
}
}
///
/// Property to sort stars by.
///
public enum StarredSort
{
///
/// Sort y the date the star was created.
///
Created,
///
/// Sort by the date the star was last updated.
///
Updated
}
}