mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
33 lines
920 B
C#
33 lines
920 B
C#
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RepositoriesResponse
|
|
{
|
|
public RepositoriesResponse()
|
|
{
|
|
}
|
|
|
|
public RepositoriesResponse(int totalCount, IReadOnlyList<Repository> repositories)
|
|
{
|
|
TotalCount = totalCount;
|
|
Repositories = repositories;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The total number of repositories
|
|
/// </summary>
|
|
public int TotalCount { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The retrieved repositories
|
|
/// </summary>
|
|
public IReadOnlyList<Repository> Repositories { get; private set; }
|
|
|
|
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "TotalCount: {0}, Repositories: {1}", TotalCount, Repositories.Count);
|
|
}
|
|
}
|