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

Returns the Uri for the organization.
public static OrganizationEvents ( string organization ) : Uri
organization string The name of the organization
Результат System.Uri
Пример #1
0
        /// <summary>
        /// Gets all the events that are associated with an organization.
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
        /// </remarks>
        /// <param name="user">The login of the user</param>
        /// <param name="organization">The name of the organization</param>
        /// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
        public Task <IReadOnlyList <Activity> > GetForAnOrganization(string user, string organization)
        {
            Ensure.ArgumentNotNullOrEmptyString(user, "user");
            Ensure.ArgumentNotNullOrEmptyString(organization, "organization");

            return(ApiConnection.GetAll <Activity>(ApiUrls.OrganizationEvents(user, organization)));
        }
Пример #2
0
        /// <summary>
        /// Gets all the events for a given organization
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization
        /// </remarks>
        /// <param name="organization">The name of the organization</param>
        /// <param name="options">Options for changing the API response</param>
        public Task <IReadOnlyList <Activity> > GetAllForOrganization(string organization, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(organization, "organization");
            Ensure.ArgumentNotNull(options, "options");

            return(ApiConnection.GetAll <Activity>(ApiUrls.OrganizationEvents(organization), options));
        }
        public Task <IReadOnlyList <Activity> > GetAllForAnOrganization(string user, string organization, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(user, nameof(user));
            Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <Activity>(ApiUrls.OrganizationEvents(user, organization), options));
        }