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

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
Результат System.Uri
Пример #1
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="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)));
        }
Пример #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)));
        }
Пример #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)));
 }
Пример #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));
 }
Пример #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)));
 }