mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
Creates constructors for all Models.Response.
Resolves https://github.com/octokit/octokit.net/issues/677. Removes obscolete properties (gravatar). Makes Models.Response properties all be protected (most were already).
This commit is contained in:
@@ -7,6 +7,15 @@ namespace Octokit.Internal
|
||||
{
|
||||
public abstract class SearchResult<T>
|
||||
{
|
||||
protected SearchResult() { }
|
||||
|
||||
protected SearchResult(int totalCount, bool incompleteResults, IReadOnlyList<T> items)
|
||||
{
|
||||
TotalCount = totalCount;
|
||||
IncompleteResults = incompleteResults;
|
||||
Items = items;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Total number of matching items.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user