Notification() публичный статический Метод

Returns the Uri for the specified notification.
public static Notification ( int id ) : Uri
id int The Id of the notification.
Результат System.Uri
Пример #1
0
 /// <summary>
 /// Marks a single notification as read.
 /// </summary>
 /// <param name="id">The id of the notification.</param>
 /// <remarks>http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read</remarks>
 public Task MarkAsRead(int id)
 {
     return(ApiConnection.Patch(ApiUrls.Notification(id)));
 }
Пример #2
0
 /// <summary>
 /// Retrives a single <see cref="Notification"/> by Id.
 /// </summary>
 /// <param name="id">The Id of the notification to retrieve.</param>
 /// <remarks>http://developer.github.com/v3/activity/notifications/#view-a-single-thread</remarks>
 public Task <Notification> Get(int id)
 {
     return(ApiConnection.Get <Notification>(ApiUrls.Notification(id)));
 }