Esempio n. 1
0
        /// <summary>
        ///     Returns the list of all pages in a project wiki.
        /// </summary>
        /// <param name="projectId">The project id or identifier.</param>
        /// <returns></returns>
        public List <WikiPage> GetAllWikiPages(string projectId)
        {
            var url    = UrlHelper.GetWikisUrl(this, projectId);
            var result = WebApiHelper.ExecuteDownloadList <WikiPage>(this, url, "GetAllWikiPages");

            return(result != null ? result.Objects : null);
        }
Esempio n. 2
0
        /// <summary>
        ///     Gets the paginated objects.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="parameters">The parameters.</param>
        /// <returns></returns>
        public PaginatedObjects <T> GetPaginatedObjects <T>(NameValueCollection parameters) where T : class, new()
        {
            var url = UrlHelper.GetListUrl <T>(this, parameters);

            return(WebApiHelper.ExecuteDownloadList <T>(this, url, "GetObjectList", parameters));
        }