Files
octokit.net/Octokit.Reactive/Clients/ObservableMiscellaneousClient.cs
2013-10-31 15:01:31 +11:00

29 lines
752 B
C#

using System;
using System.Collections.Generic;
using System.Reactive.Threading.Tasks;
namespace Octokit.Reactive
{
public class ObservableMiscellaneousClient : IObservableMiscellaneousClient
{
readonly IMiscellaneousClient _client;
public ObservableMiscellaneousClient(IMiscellaneousClient client)
{
Ensure.ArgumentNotNull(client, "client");
_client = client;
}
public IObservable<IReadOnlyDictionary<string, Uri>> GetEmojis()
{
return _client.GetEmojis().ToObservable();
}
public IObservable<string> RenderRawMarkdown(string markdown)
{
return _client.RenderRawMarkdown(markdown).ToObservable();
}
}
}