/// <summary> /// Gets all the events for a given repository /// </summary> /// <remarks> /// https://developer.github.com/v3/activity/events/#list-repository-events /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Activity> > GetAllForRepository(string owner, string name, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Activity>(ApiUrls.Events(owner, name), options)); }
/// <summary> /// Gets all the events for a given repository /// </summary> /// <remarks> /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Activity> > GetAllForRepository(long repositoryId, ApiOptions options) { Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Activity>(ApiUrls.Events(repositoryId), options)); }
/// <summary> /// Gets all the public events /// </summary> /// <remarks> /// http://developer.github.com/v3/activity/events/#list-public-events /// </remarks> /// <param name="options">Options for changing the API response</param> /// <returns>All the public <see cref="Activity"/>s for the particular user.</returns> public Task <IReadOnlyList <Activity> > GetAll(ApiOptions options) { Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Activity>(ApiUrls.Events(), options)); }
/// <summary> /// Gets all the public events /// </summary> /// <remarks> /// http://developer.github.com/v3/activity/events/#list-public-events /// </remarks> /// <returns>All the public <see cref="Activity"/>s for the particular user.</returns> public Task <IReadOnlyList <Activity> > GetAll() { return(ApiConnection.GetAll <Activity>(ApiUrls.Events())); }