mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Initial hack at supporting Notifications API
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user