mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
46 lines
1019 B
C#
46 lines
1019 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RepositoryRequest : RequestParameters
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
|
|
public RepositoryType Type { get; set; }
|
|
|
|
public RepositorySort Sort { get; set; }
|
|
|
|
public SortDirection Direction { get; set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return String.Format(CultureInfo.InvariantCulture, "Type: {0}, Sort: {1}, Direction: {2}", Type, Sort, Direction);
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum RepositoryType
|
|
{
|
|
All,
|
|
Owner,
|
|
Public,
|
|
Private,
|
|
Member
|
|
}
|
|
|
|
public enum RepositorySort
|
|
{
|
|
Created,
|
|
Updated,
|
|
Pushed,
|
|
|
|
[Parameter(Value = "full_name")]
|
|
FullName
|
|
}
|
|
}
|