From f5e4a8c5837fab76ce6b753faad10c110f75e407 Mon Sep 17 00:00:00 2001 From: Haroon Date: Fri, 22 Nov 2013 10:44:06 +0000 Subject: [PATCH] better documentation add missing file to mono and touch projs --- .../Request/SearchRepositoriesRequest.cs | 25 +++++++++++++++++-- Octokit/Octokit-MonoAndroid.csproj | 1 + Octokit/Octokit-Monotouch.csproj | 1 + 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Octokit/Models/Request/SearchRepositoriesRequest.cs b/Octokit/Models/Request/SearchRepositoriesRequest.cs index 03840097..3b35994d 100644 --- a/Octokit/Models/Request/SearchRepositoriesRequest.cs +++ b/Octokit/Models/Request/SearchRepositoriesRequest.cs @@ -7,6 +7,7 @@ namespace Octokit { /// /// Searching Repositories + /// http://developer.github.com/v3/search/#search-repositories /// public class SearchRepositoriesRequest { @@ -33,12 +34,12 @@ namespace Octokit /// /// The search terms. This can be any combination of the supported repository search parameters: - /// http://developer.github.com/v3/search/#search-code + /// http://developer.github.com/v3/search/#search-repositories /// public string Term { get; set; } /// - /// For http://developer.github.com/v3/search/#search-repositories + /// For https://help.github.com/articles/searching-repositories#sorting /// Optional Sort field. One of stars, forks, or updated. If not provided, results are sorted by best match. /// public RepoSearchSort? Sort { get; set; } @@ -250,21 +251,33 @@ namespace Octokit } } + /// + /// Helper class that build a with a LessThan comparator used for filtering results + /// public static Range LessThan(int size) { return new Range(size, SearchQualifierOperator.LessThan); } + /// + /// Helper class that build a with a LessThanOrEqual comparator used for filtering results + /// public static Range LessThanOrEquals(int size) { return new Range(size, SearchQualifierOperator.LessOrEqualTo); } + /// + /// Helper class that build a with a GreaterThan comparator used for filtering results + /// public static Range GreaterThan(int size) { return new Range(size, SearchQualifierOperator.GreaterThan); } + /// + /// Helper class that build a with a GreaterThanOrEqualTo comparator used for filtering results + /// public static Range GreaterThanOrEquals(int size) { return new Range(size, SearchQualifierOperator.GreaterOrEqualTo); @@ -720,6 +733,10 @@ namespace Octokit Yaml } + /// + /// sorting repositories by any of below + /// https://help.github.com/articles/searching-repositories#sorting + /// public enum RepoSearchSort { /// @@ -736,6 +753,10 @@ namespace Octokit Updated } + /// + /// https://help.github.com/articles/searching-repositories#forks + /// Specifying whether forked repositories should be included in results or not. + /// public enum ForkQualifier { /// diff --git a/Octokit/Octokit-MonoAndroid.csproj b/Octokit/Octokit-MonoAndroid.csproj index 6279a5d5..199a49d1 100644 --- a/Octokit/Octokit-MonoAndroid.csproj +++ b/Octokit/Octokit-MonoAndroid.csproj @@ -236,6 +236,7 @@ + \ No newline at end of file diff --git a/Octokit/Octokit-Monotouch.csproj b/Octokit/Octokit-Monotouch.csproj index aa2eebad..318caf08 100644 --- a/Octokit/Octokit-Monotouch.csproj +++ b/Octokit/Octokit-Monotouch.csproj @@ -231,6 +231,7 @@ + \ No newline at end of file