Class ContentResponse

java.lang.Object
com.loop54.model.response.Response
com.loop54.model.response.ContentResponse
Direct Known Subclasses:
SearchResponse, SuggestResponse

public abstract class ContentResponse extends Response
Base class for responses that can contain Content Search results.
  • Field Details

    • contentSearchResults

      public List<ContentSearchResultItem> 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

      public EntityCollection getContentSearchResults(String entityType)
      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.