Package com.loop54.model.request
Class GetRecentEntitiesRequest
java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.GetPopularOrRecentEntitiesRequest
com.loop54.model.request.GetRecentEntitiesRequest
This class used to perform a request to get entities that a user (or all users) most recently interacted with or navigated to.
-
Field Summary
Fields inherited from class com.loop54.model.request.GetPopularOrRecentEntitiesRequest
behaviorType, CURRENT_USER_PLACEHOLDER, entityType, forUserId, resultsOptionsFields inherited from class com.loop54.model.request.Request
customData -
Constructor Summary
ConstructorsConstructorDescriptionGetRecentEntitiesRequest(String behaviorType) Retrieve the globally most recent productsGetRecentEntitiesRequest(String behaviorType, String forUserId) Retrieve the globally most recent products for a specfic userGetRecentEntitiesRequest(String behaviorType, String forUserId, List<String> entityType) -
Method Summary
Modifier and TypeMethodDescriptionstatic GetRecentEntitiesRequestforCurrentUser(String behaviorType, List<String> entityType) Creates a request to get the most recent entities for the current user.Methods inherited from class com.loop54.model.request.Request
addCustomData
-
Constructor Details
-
GetRecentEntitiesRequest
- Parameters:
behaviorType- interaction or navigation type to include (such as click, purchase or search).forUserId- a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.GetPopularOrRecentEntitiesRequest.CURRENT_USER_PLACEHOLDERcan be specified to use the user ID from the User-Id request header.entityType- entity types to include (such as Product or Query)
-
GetRecentEntitiesRequest
Retrieve the globally most recent products for a specfic user- Parameters:
behaviorType- interaction or navigation type to include (such as click, purchase or search).forUserId- a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.GetPopularOrRecentEntitiesRequest.CURRENT_USER_PLACEHOLDERcan be specified to use the user ID from the User-Id request header.
-
GetRecentEntitiesRequest
Retrieve the globally most recent products- Parameters:
behaviorType- interaction or navigation type to include (such as click, purchase or search).
-
-
Method Details
-
forCurrentUser
Creates a request to get the most recent entities for the current user.- Parameters:
behaviorType- interaction or navigation type to include (such as click, purchase, or search).entityType- entity types to include (such as Product or Query).- Returns:
- a new instance of
GetRecentEntitiesRequestfor the current user.
-