You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Api.Mattermost/MattermostApi.cs

24 lines
526 B

using System;
using System.Net.Http;
using System.Threading.Tasks;
using Ombi.Api.Mattermost.Models;
namespace Ombi.Api.Mattermost
{
public class MattermostApi : IMattermostApi
{
public MattermostApi(IApi api)
{
_api = api;
}
private readonly IApi _api;
public async Task PushAsync(string webhook, MattermostMessage message)
{
var client = new MatterhookClient(webhook);
await client.PostAsync(_api, message);
}
}
}