Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/com/checkmarx/ast/results/Results.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ public class Results {

int totalCount;
List<Result> results;
String scanId;

@JsonCreator
public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List<Result> results) {
public Results(@JsonProperty("totalCount") int totalCount, @JsonProperty("results") List<Result> results, @JsonProperty("scanId") String scanId) {
this.totalCount = totalCount;
this.results = results;
this.scanId = scanId;
}
}
16 changes: 15 additions & 1 deletion src/main/java/com/checkmarx/ast/results/ResultsSummary.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -28,6 +30,10 @@ public class ResultsSummary {
private String createdAt;
private String projectId;
private String baseURI;
private Map<String, String> tags;
private String projectName;
private String branchName;
private String scanInfoMessage;


public ResultsSummary(@JsonProperty("TotalIssues") int totalIssues,
Expand All @@ -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<String, String> tags,
@JsonProperty("ProjectName") String projectName,
@JsonProperty("BranchName") String branchName,
@JsonProperty("ScanInfoMessage") String scanInfoMessage) {
this.totalIssues = totalIssues;
this.highIssues = highIssues;
this.mediumIssues = mediumIssues;
Expand All @@ -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;
}
}