/// <summary> /// Sets the authenticated user's subscription settings for a given thread. /// </summary> /// <param name="id">The Id of the thread to update.</param> /// <param name="threadSubscription">The subscription parameters to set.</param> /// <remarks>http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription</remarks> public Task<ThreadSubscription> SetThreadSubscription(int id, NewThreadSubscription threadSubscription) { Ensure.ArgumentNotNull(threadSubscription, "threadSubscription"); return ApiConnection.Put<ThreadSubscription>(ApiUrls.NotificationSubscription(id), threadSubscription); }
/// <summary> /// Sets the authenticated user's subscription settings for a given thread. /// </summary> /// <param name="id">The Id of the thread to update.</param> /// <param name="threadSubscription">The subscription parameters to set.</param> /// <remarks>http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription</remarks> public Task <ThreadSubscription> SetThreadSubscription(int id, NewThreadSubscription threadSubscription) { Ensure.ArgumentNotNull(threadSubscription, "threadSubscription"); return(ApiConnection.Put <ThreadSubscription>(ApiUrls.NotificationSubscription(id), threadSubscription)); }