Esempio n. 1
0
        /// <summary>
        /// List of repositories associated with the account. If the caller is properly authenticated and authorized,
        /// this method returns a collection containing public and private repositories.
        /// Otherwise, this method returns a collection of the public repositories.
        /// </summary>
        /// <param name="parameters">Parameters for the query.</param>
        public List <Repository> ListRepositories(ListRepositoriesParameters parameters)
        {
            _ = parameters ?? throw new ArgumentNullException(nameof(parameters));

            return(_sharpBucketV2.GetPaginatedValues <Repository>(
                       _baseUrl, parameters.Max, parameters.ToDictionary()));
        }
        internal override IDictionary <string, object> ToDictionary()
        {
            var dictionary = base.ToDictionary();

            dictionary = ListRepositoriesParameters.AddRole(dictionary, this.Role);
            return(dictionary);
        }