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

Returns the Uri for the received events for a user.
public static ReceivedEvents ( string user ) : Uri
user string The login of the user
Результат System.Uri
Пример #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));
        }
Пример #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)));
        }