AppVeyor.Api.ProjectApi.GetProjectHistory C# (CSharp) Method

GetProjectHistory() public method

public GetProjectHistory ( string accountName, string projectSlug, int noOfrecordsPerPage = 10, System.Guid buildId = default(Guid), string branchName = null ) : Task
accountName string
projectSlug string
noOfrecordsPerPage int
buildId System.Guid
branchName string
return Task
        public Task<ProjectHistory> GetProjectHistory(string accountName, string projectSlug, int noOfrecordsPerPage = 10, Guid buildId = default(Guid), string branchName = null)
        {
            var request = new RestRequest("projects/{accountName}/{projectSlug}/history", Method.GET);
            request.AddUrlSegment("accountName", accountName);
            request.AddUrlSegment("projectSlug", projectSlug);
            request.AddParameter("recordsNumber", noOfrecordsPerPage);
            if (buildId != Guid.Empty)
            {
                request.AddParameter("startBuildId", buildId);
            }
            if (!string.IsNullOrEmpty(branchName))
            {
                request.AddParameter("branch", branchName);
            }
            return ExecuteAsync<ProjectHistory>(request);
        }