using System;
using System.Reactive.Threading.Tasks;
namespace Octokit.Reactive
{
///
/// A client for GitHub's Feeds API.
///
///
/// See the Feeds API documentation for more information
///
public class ObservableFeedsClient : IObservableFeedsClient
{
readonly IFeedsClient _client;
public ObservableFeedsClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");
_client = client.Activity.Feeds;
}
///
/// Gets all the feeds available to the authenticating user
///
///
/// http://developer.github.com/v3/activity/feeds/#list-feeds
///
/// All the public s for the particular user.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public IObservable GetFeeds()
{
return _client.GetFeeds().ToObservable();
}
}
}