added versions to analyze result

This commit is contained in:
Timo 2021-04-16 15:52:17 +03:00
parent 5cb4ea287c
commit 93d75e2f1c
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,8 @@ public class AnalyzeResult {
private boolean hasRedactions;
private boolean hasImages;
private boolean hasUpdates;
private long dictionaryVersion;
private long rulesVersion;
}

View File

@ -36,6 +36,9 @@ public class AnalyzeResponseService {
.hasRedactions(hasRedactions)
.hasRequests(hasRequests)
.hasImages(hasImages)
.hasUpdates(hasUpdates).build();
.hasUpdates(hasUpdates)
.rulesVersion(redactionLog.getRulesVersion())
.dictionaryVersion(redactionLog.getDictionaryVersion())
.build();
}
}