Exemplo n.º 1
0
        internal override IDictionary <string, object> ToDictionary()
        {
            var dictionary = base.ToDictionary();

            dictionary = ListPullRequestsParameters.AddState(dictionary, this.States);
            return(dictionary);
        }
Exemplo n.º 2
0
 /// <summary>
 /// List pull requests on the repository.
 /// </summary>
 /// <param name="parameters">Parameters for the query.</param>
 public List <PullRequest> ListPullRequests(ListPullRequestsParameters parameters)
 {
     if (parameters == null)
     {
         throw new ArgumentNullException(nameof(parameters));
     }
     return(GetPaginatedValues <PullRequest>(_baseUrl, parameters.Max, parameters.ToDictionary()));
 }