mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 06:35:11 +00:00
29 lines
752 B
C#
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();
|
|
}
|
|
}
|
|
}
|