Initial hack at supporting Notifications API

This commit is contained in:
Paul Betts
2013-05-22 02:56:53 -04:00
committed by Haacked
parent f7596243b5
commit f4e50c071a
9 changed files with 70 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Octokit
{
public class NotificationsClient : ApiClient, INotificationsClient
{
public NotificationsClient(IApiConnection client) : base(client)
{
}
public async Task<IReadOnlyCollection<Notification>> ListNotifications()
{
return await Client.GetAll<Notification>(new Uri("/notifications", UriKind.Relative));
}
}
}