Class GetPopularOrRecentEntitiesRequest

java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.GetPopularOrRecentEntitiesRequest
Direct Known Subclasses:
GetPopularEntitiesRequest, GetRecentEntitiesRequest

public abstract class GetPopularOrRecentEntitiesRequest extends Request
Base class for requests to get the most popular or most recent entities.
  • Field Details

    • CURRENT_USER_PLACEHOLDER

      public static final String CURRENT_USER_PLACEHOLDER
      Represents a placeholder value used in `GetRecentEntitiesRequest` and `GetPopularEntitiesRequest` to indicate that the request should target the current user's data.
      See Also:
    • behaviorType

      public String behaviorType
      The interaction or navigation type to include (such as click, purchase or search).
    • forUserId

      public String forUserId
      A user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities. CURRENT_USER_PLACEHOLDER can be specified to use the user ID from the User-Id request header.
    • entityType

      public List<String> entityType
      The entity types to include (such as Product or Query) or null for all.
    • resultsOptions

      public final EntityCollectionParameters resultsOptions
      Parameters for specifying which recommendations results to retrieve and how to format them.
  • Constructor Details

    • GetPopularOrRecentEntitiesRequest

      protected GetPopularOrRecentEntitiesRequest(String behaviorType, String forUserId, List<String> entityType)