/// <summary>
        /// Returns the source files for a library within a given project.
        /// </summary>
        /// <param name="projectToken">The project token.</param>
        /// <param name="uuid">The UUID for the library to retrieve source files for.</param>
        /// <returns>Returns the source files for a library within the given project token.</returns>
        /// <exception cref="WhitesourceRequestException">Thrown if an exception occurs calling Whitesource service.</exception>
        public async Task <List <SourceFile> > GetLibrarySourceFilesAsync(ProjectToken projectToken, string uuid)
        {
            var request  = new ProjectUuidRequest("getLibrarySourceFiles", UserKey, projectToken, uuid);
            var response = await request.MakeRequestAsync <SourceFilesResponse>(this);

            return(response.Data.SourceFiles);
        }
        /// <summary>
        /// Returns the dependencies for a library within a given project.
        /// </summary>
        /// <param name="projectToken">The project token.</param>
        /// <param name="uuid">The UUID for the library to retrieve the dependencies for.</param>
        /// <returns>Returns the source files for a library within the given project token.</returns>
        /// <exception cref="WhitesourceRequestException">Thrown if an exception occurs calling Whitesource service.</exception>
        public async Task <List <Dependency> > GetProjectLibraryDependenciesAsync(ProjectToken projectToken, string uuid)
        {
            var request  = new ProjectUuidRequest("getProjectLibraryDependencies", UserKey, projectToken, uuid);
            var response = await request.MakeRequestAsync <DependenciesResponse>(this);

            return(response.Data.Dependencies);
        }
Esempio n. 3
0
        /// <summary>
        /// Returns the source files for a library within a given project.
        /// </summary>
        /// <param name="projectToken">The project token.</param>
        /// <param name="uuid">The UUID for the library to retrieve source files for.</param>
        /// <returns>Returns the source files for a library within the given project token.</returns>
        /// <exception cref="WhitesourceRequestException">Thrown if an exception occurs calling Whitesource service.</exception>
        public List <SourceFile> GetLibrarySourceFiles(ProjectToken projectToken, string uuid)
        {
            var request  = new ProjectUuidRequest("getLibrarySourceFiles", UserKey, projectToken, uuid);
            var response = request.MakeRequest <SourceFilesResponse>(this);

            return(response.Data.SourceFiles);
        }