renamed SearchResponse to ServiceItem and moved to shared package

This commit is contained in:
2026-06-30 04:52:45 +02:00
parent 47466a6c61
commit 3086b7e2ca
6 changed files with 18 additions and 14 deletions
@@ -0,0 +1,18 @@
package com.vaessl.app.shared;
import java.util.Map;
import jakarta.validation.constraints.NotNull;
public record ServiceItem(String id, @NotNull String title, String description,
Map<String, Object> extraData) {
public String getExtra(String key) {
if (extraData == null) {
return null;
} else {
Object value = extraData.get(key);
return value != null ? String.valueOf(value) : null;
}
}
}