Package com.loop54.model.response
Class ContentResponse
java.lang.Object
com.loop54.model.response.Response
com.loop54.model.response.ContentResponse
- Direct Known Subclasses:
SearchResponse,SuggestResponse
Base class for responses that can contain Content Search results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionResults from Content Search, one entry per content entity type that was searched.Fields inherited from class com.loop54.model.response.Response
customData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentSearchResults(String entityType) Gets the Content Search results for the given entity type.Methods inherited from class com.loop54.model.response.Response
getCustomDataOrDefault, getCustomDataOrThrow
-
Field Details
-
contentSearchResults
Results from Content Search, one entry per content entity type that was searched. Only set when Content Search is enabled and content results were requested.
-
-
Constructor Details
-
ContentResponse
public ContentResponse()
-
-
Method Details
-
getContentSearchResults
Gets the Content Search results for the given entity type.- Parameters:
entityType- The content entity type, e.g. "Brand". Case-sensitive.- Returns:
- The results for that entity type, or null if that type was not searched.
-