IssuesEvent() public static méthode

Returns the Uri that returns the issue/pull request event and issue info for the specified event.
public static IssuesEvent ( long repositoryId, int id ) : Uri
repositoryId long The Id of the repository
id int The event id
Résultat System.Uri
        /// <summary>
        /// Gets a single event
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/issues/events/#get-a-single-event
        /// </remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="number">The event id</param>
        /// <returns></returns>
        public Task <IssueEvent> Get(string owner, string name, int number)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(ApiConnection.Get <IssueEvent>(ApiUrls.IssuesEvent(owner, name, number)));
        }
Exemple #2
0
        /// <summary>
        /// Gets a single event
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/issues/events/#get-a-single-event
        /// </remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="eventId">The event id</param>
        public Task <IssueEvent> Get(string owner, string name, long eventId)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));

            return(ApiConnection.Get <IssueEvent>(ApiUrls.IssuesEvent(owner, name, eventId)));
        }
Exemple #3
0
 /// <summary>
 /// Gets a single event
 /// </summary>
 /// <remarks>
 /// http://developer.github.com/v3/issues/events/#get-a-single-event
 /// </remarks>
 /// <param name="repositoryId">The Id of the repository</param>
 /// <param name="number">The event id</param>
 public Task <IssueEvent> Get(long repositoryId, int number)
 {
     return(ApiConnection.Get <IssueEvent>(ApiUrls.IssuesEvent(repositoryId, number)));
 }
Exemple #4
0
 /// <summary>
 /// Gets a single event
 /// </summary>
 /// <remarks>
 /// http://developer.github.com/v3/issues/events/#get-a-single-event
 /// </remarks>
 /// <param name="repositoryId">The Id of the repository</param>
 /// <param name="eventId">The event id</param>
 public Task <IssueEvent> Get(long repositoryId, long eventId)
 {
     return(ApiConnection.Get <IssueEvent>(ApiUrls.IssuesEvent(repositoryId, eventId),
                                           null,
                                           AcceptHeaders.IssueEventsApiPreview));
 }
Exemple #5
0
 /// <summary>
 /// Gets a single event
 /// </summary>
 /// <remarks>
 /// http://developer.github.com/v3/issues/events/#get-a-single-event
 /// </remarks>
 /// <param name="repositoryId">The Id of the repository</param>
 /// <param name="eventId">The event id</param>
 public Task <IssueEvent> Get(long repositoryId, long eventId)
 {
     return(ApiConnection.Get <IssueEvent>(ApiUrls.IssuesEvent(repositoryId, eventId)));
 }