mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System.Threading.Tasks;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Feeds API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/activity/feeds/">Feeds API documentation</a> for more information
|
|
/// </remarks>
|
|
public class FeedsClient : ApiClient, IFeedsClient
|
|
{
|
|
/// <summary>
|
|
/// Instantiates a new GitHub Feeds API client.
|
|
/// </summary>
|
|
/// <param name="apiConnection">An API connection</param>
|
|
public FeedsClient(IApiConnection apiConnection)
|
|
: base(apiConnection)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets all the feeds available to the authenticating user
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/activity/feeds/#list-feeds
|
|
/// </remarks>
|
|
/// <returns>All the public <see cref="Feed"/>s for the particular user.</returns>
|
|
[ManualRoute("GET", "/feeds")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
|
public Task<Feed> GetFeeds()
|
|
{
|
|
return ApiConnection.Get<Feed>(ApiUrls.Feeds());
|
|
}
|
|
}
|
|
}
|