Skip to content

Commit 6e995a7

Browse files
authored
update wrapper with new fields (#121)
* update wrapper with new fields * changed the parameter
1 parent 981d26e commit 6e995a7

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/main/java/com/checkmarx/ast/results/Results.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ public class Results {
1818

1919
int totalCount;
2020
List<Result> results;
21+
String scanId;
2122

2223
@JsonCreator
23-
public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List<Result> results) {
24+
public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List<Result> results, @JsonProperty("scanId") String scanId) {
2425
this.totalCount = totalCount;
2526
this.results = results;
27+
this.scanId = scanId;
2628
}
2729
}

src/main/java/com/checkmarx/ast/results/ResultsSummary.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.checkmarx.ast.results;
22

3+
import java.util.Map;
4+
35
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
46
import com.fasterxml.jackson.annotation.JsonInclude;
57
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -28,6 +30,10 @@ public class ResultsSummary {
2830
private String createdAt;
2931
private String projectId;
3032
private String baseURI;
33+
private Map<String, String> tags;
34+
private String projectName;
35+
private String branchName;
36+
private String scanInfoMessage;
3137

3238

3339
public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues,
@@ -45,7 +51,11 @@ public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues,
4551
@JsonProperty("ScanTime") String scanTime,
4652
@JsonProperty("CreatedAt") String createdAt,
4753
@JsonProperty("ProjectID") String projectId,
48-
@JsonProperty("BaseURI") String baseURI) {
54+
@JsonProperty("BaseURI") String baseURI,
55+
@JsonProperty("Tags") Map<String, String> tags,
56+
@JsonProperty("ProjectName") String projectName,
57+
@JsonProperty("BranchName") String branchName,
58+
@JsonProperty("ScanInfoMessage") String scanInfoMessage) {
4959
this.totalIssues = totalIssues;
5060
this.highIssues = highIssues;
5161
this.mediumIssues = mediumIssues;
@@ -62,5 +72,9 @@ public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues,
6272
this.createdAt = createdAt;
6373
this.projectId = projectId;
6474
this.baseURI = baseURI;
75+
this.tags = tags;
76+
this.projectName = projectName;
77+
this.branchName = branchName;
78+
this.scanInfoMessage = scanInfoMessage;
6579
}
6680
}

0 commit comments

Comments
 (0)