!wip work in progress for the theme presets

This commit is contained in:
Jamie 2017-11-06 16:30:44 +00:00
parent fa774784c0
commit c8f00c4e8a
11 changed files with 131 additions and 2 deletions

View file

@ -0,0 +1,25 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Ombi.Api.Github.Models;
namespace Ombi.Api.Github
{
public class GithubApi : IGithubApi
{
public GithubApi(IApi api)
{
_api = api;
}
private readonly IApi _api;
private const string BaseUrl = "https://api.github.com/";
public async Task<CakeThemesContainer> GetCakeThemes()
{
var request = new Request("repos/leram84/layer.Cake/contents/Themes", BaseUrl, HttpMethod.Get);
return await _api.Request<CakeThemesContainer>(request);
}
}
}