-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b9adf7
commit 0409bd0
Showing
10 changed files
with
341 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletions
14
src/main/java/edu/stanford/protege/gateway/dto/EntityHistorySummary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package edu.stanford.protege.gateway.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public record EntityHistorySummary(List<EntityChange> changes) { | ||
public static EntityHistorySummary create(List<EntityChange> changes) { | ||
return new EntityHistorySummary(changes); | ||
public record EntityHistorySummary( | ||
@JsonProperty("entityUri") String entityUri, | ||
@JsonProperty("projectId") String projectId, | ||
@JsonProperty("changes") List<EntityChange> changes | ||
) { | ||
public static EntityHistorySummary create(String entityUri, | ||
String projectId, | ||
List<EntityChange> changes) { | ||
return new EntityHistorySummary(entityUri, projectId, changes); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.