diff --git a/src/main/java/com/checkmarx/ast/results/Results.java b/src/main/java/com/checkmarx/ast/results/Results.java index 8ea7e522..d19cd707 100644 --- a/src/main/java/com/checkmarx/ast/results/Results.java +++ b/src/main/java/com/checkmarx/ast/results/Results.java @@ -18,10 +18,12 @@ public class Results { int totalCount; List results; + String scanId; @JsonCreator - public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List results) { + public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List results, @JsonProperty("scanId") String scanId) { this.totalCount = totalCount; this.results = results; + this.scanId = scanId; } } diff --git a/src/main/java/com/checkmarx/ast/results/ResultsSummary.java b/src/main/java/com/checkmarx/ast/results/ResultsSummary.java index 73478e67..55fda3d9 100644 --- a/src/main/java/com/checkmarx/ast/results/ResultsSummary.java +++ b/src/main/java/com/checkmarx/ast/results/ResultsSummary.java @@ -1,5 +1,7 @@ package com.checkmarx.ast.results; +import java.util.Map; + import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -28,6 +30,10 @@ public class ResultsSummary { private String createdAt; private String projectId; private String baseURI; + private Map tags; + private String projectName; + private String branchName; + private String scanInfoMessage; public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues, @@ -45,7 +51,11 @@ public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues, @JsonProperty("ScanTime") String scanTime, @JsonProperty("CreatedAt") String createdAt, @JsonProperty("ProjectID") String projectId, - @JsonProperty("BaseURI") String baseURI) { + @JsonProperty("BaseURI") String baseURI, + @JsonProperty("Tags") Map tags, + @JsonProperty("ProjectName") String projectName, + @JsonProperty("BranchName") String branchName, + @JsonProperty("ScanInfoMessage") String scanInfoMessage) { this.totalIssues = totalIssues; this.highIssues = highIssues; this.mediumIssues = mediumIssues; @@ -62,5 +72,9 @@ public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues, this.createdAt = createdAt; this.projectId = projectId; this.baseURI = baseURI; + this.tags = tags; + this.projectName = projectName; + this.branchName = branchName; + this.scanInfoMessage = scanInfoMessage; } }