mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
* ChecksClient ctor takes IApiConnection interface Instead of requiring the concrete implementation type * Ensure all clients nested under GitHubClient have a concrete implementation with a matching ctor. An api client ctor should take either an IConnection or IApiConnection interface as argument.
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Checks API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/checks/">Checks API documentation</a> for more information.
|
|
/// </remarks>
|
|
public class ChecksClient : IChecksClient
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new GitHub Checks API client.
|
|
/// </summary>
|
|
/// <param name="apiConnection">An API connection</param>
|
|
public ChecksClient(IApiConnection apiConnection)
|
|
{
|
|
Run = new CheckRunsClient(apiConnection);
|
|
Suite = new CheckSuitesClient(apiConnection);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Check Runs API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/checks/runs/">Check Runs API documentation</a> for more information.
|
|
/// </remarks>
|
|
public ICheckRunsClient Run { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Check Suites API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/checks/suites/">Check Suites API documentation</a> for more information.
|
|
/// </remarks>
|
|
public ICheckSuitesClient Suite { get; private set; }
|
|
}
|
|
} |