ReceivedEvents() public static method

Returns the Uri for the received events for a user.
public static ReceivedEvents ( string user ) : Uri
user string The login of the user
return System.Uri
Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
        /// <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)));
        }