Skip to content

Commit

Permalink
Merge pull request #21 from spyrkob/JBEAP-27348
Browse files Browse the repository at this point in the history
Add manifest versions to the history result
  • Loading branch information
yersan authored Jul 18, 2024
2 parents 5417c38 + 910c93d commit 469bc76
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,23 @@
package org.wildfly.installationmanager;

import java.time.Instant;
import java.util.List;
import java.util.Objects;

public class HistoryResult {

private final List<ManifestVersion> versions;
private String hash;
private Instant timestamp;
private String type;
private String description;

public HistoryResult(String hash, Instant timestamp, String type, String description) {
public HistoryResult(String hash, Instant timestamp, String type, String description, List<ManifestVersion> versions) {
this.hash = hash;
this.timestamp = timestamp;
this.type = type;
this.description = description;
this.versions = versions;
}

public String getType() {
Expand All @@ -51,6 +54,10 @@ public String getDescription() {
return description;
}

public List<ManifestVersion> getVersions() {
return versions;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down

0 comments on commit 469bc76

Please sign in to comment.