/// <summary> /// Gets all the events that have been received by a given user. /// </summary> /// <remarks> /// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received /// </remarks> /// <param name="user">The login of the user</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Activity> > GetAllUserReceivedPublic(string user, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Activity>(ApiUrls.ReceivedEvents(user, true), options)); }
/// <summary> /// Gets all the events that have been received by a given user. /// </summary> /// <remarks> /// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received /// </remarks> /// <param name="user">The login of the user</param> /// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns> public Task <IReadOnlyList <Activity> > GetUserReceived(string user) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); return(ApiConnection.GetAll <Activity>(ApiUrls.ReceivedEvents(user))); }